| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [View Raw Code] [Original HTTPS Page] |
You can create custom tools to work with the tool parameter of the agentmake function.
An agentmake tool takes actions to resolve user requests through function calling.
Each tool is defined in a Python file (.py) specifying the following variables:
The JSON schema describing the parameters for function calling.
The function object called by the tool.
Arguments:
Return Values:
System message for running the tool.
Description of the tool.
Example Structure:
def my_tool_function(param1, **kwargs):
# Tool logic
return "Result"
TOOL_SCHEMA = {
"type": "object",
"properties": {
"param1": {"type": "string"}
}
}
TOOL_FUNCTION = my_tool_functionFor practical examples, check our built-in tools at https://github.com/eliranwong/agentmake/tree/main/agentmake/tools.
| Back | FazBrowse Home | New Git URL |