param callbacks: Callbacks = None¶
Callbacks to be called during tool execution.
param description: str = "\nCreate an app in the AINetwork Blockchain database by creating the /apps/<appName> path.\nAn address set as `admin` can grant `owner` rights to other addresses (refer to `AINownerOps` for more details).\nAlso, `admin` is initialized to have all `owner` permissions and `rule` allowed for that path.\n\n## appName Rule\n- [a-z_0-9]+\n\n## address Rules\n- 0x[0-9a-fA-F]{40}\n- Defaults to the current session's address\n- Multiple addresses can be specified if needed\n\n## SET_ADMIN Example 1\n- type: SET_ADMIN\n- appName: ain_project\n\n### Result:\n1. Path /apps/ain_project created.\n2. Current session's address registered as admin.\n\n## SET_ADMIN Example 2\n- type: SET_ADMIN\n- appName: test_project\n- address: [<address1>, <address2>]\n\n### Result:\n1. Path /apps/test_project created.\n2. <address1> and <address2> registered as admin.\n\n"¶
Used to tell the model how/when/why to use the tool.
You can provide few-shot examples as a part of the description.
param handle_tool_error: Optional[Union[bool, str, Callable[[ToolException], str]]] = False¶
Handle the content of the ToolException thrown.
param interface: Ain [Optional]¶
The interface object for the AINetwork Blockchain.
param metadata: Optional[Dict[str, Any]] = None¶
Optional metadata associated with the tool. Defaults to None
This metadata will be associated with each call to this tool,