67 _WASM_OBJ_CALL errc_t setAttrString(ObjectId
id,
const std::string& name,
const std::string& value);
68 _WASM_OBJ_CALL errc_t setAttrDouble(ObjectId
id,
const std::string& name,
double value);
69 _WASM_OBJ_CALL errc_t setAttrInt(ObjectId
id,
const std::string& name,
int value);
70 _WASM_OBJ_CALL errc_t setAttrBool(ObjectId
id,
const std::string& name,
bool value);
71 _WASM_OBJ_CALL errc_t setAttrObject(ObjectId
id,
const std::string& name, ObjectId value);
77 _WASM_OBJ_CALL std::optional<std::string> getAttrString(ObjectId
id,
const std::string& name);
78 _WASM_OBJ_CALL std::optional<double> getAttrDouble(ObjectId
id,
const std::string& name);
79 _WASM_OBJ_CALL std::optional<int> getAttrInt(ObjectId
id,
const std::string& name);
80 _WASM_OBJ_CALL std::optional<bool> getAttrBool(ObjectId
id,
const std::string& name);
81 _WASM_OBJ_CALL std::optional<ObjectId> getAttrObject(ObjectId
id,
const std::string& name);
86 _WASM_OBJ_CALL std::optional<std::string> objectType(ObjectId
id);
91 _WASM_OBJ_CALL std::optional<WasmObjectInfo> objectInfo(ObjectId
id);
97 _WASM_OBJ_CALL std::vector<ObjectId> allObjects();
102 _WASM_OBJ_CALL std::vector<WasmObjectInfo> allObjectInfoList();
108 _WASM_OBJ_CALL std::optional<ObjectId> newObject(
const std::string& typeName, std::optional<ObjectId> parentId = std::nullopt);
113 _WASM_OBJ_CALL errc_t removeObject(ObjectId
id);
119 _WASM_OBJ_CALL std::optional<std::string> objectToJsonStr(ObjectId
id);
125 _WASM_OBJ_CALL std::optional<std::string> classJsonSchemaStr(
const std::string& typeName);
131 _WASM_OBJ_CALL std::vector<std::string> getAllClassNames();
135 _WASM_OBJ_CALL std::string handleToolCall(
const std::string& toolCallJsonStr);