@tool
Use the @tool decorator for synchronous functions.
A clear and concise description of what the tool does. This description is used by the AI to understand when to call your tool.
@tool_async
Use the @tool_async decorator for asynchronous functions. These functions should be async and await any asynchronous operations.
A clear and concise description of what the asynchronous tool does. This description is used by the AI to understand when to call your tool.
Type Hinting and JSON Schema Generation
The SDK automatically generates JSON schemas for your tool parameters and return types based on Python type hints. This allows the Conversimple platform to understand the expected inputs and outputs of your tools. Supported types include:str(maps to"type": "string")int(maps to"type": "integer")float(maps to"type": "number")bool(maps to"type": "boolean")list(maps to"type": "array")dict(maps to"type": "object")Optional[T](e.g.,Optional[str]will be treated asstrbut marked as nullable in the schema)
required in the generated schema.