REFACTOR: moved agent_utils -> apidash_agent_calls

This commit is contained in:
Manas Hejmadi
2025-08-31 16:38:52 +05:30
parent a8444852b8
commit 94c38d398c
5 changed files with 35 additions and 40 deletions

View File

@@ -1,5 +1,5 @@
const String kPromptAPIToolBodyGen = """
YOu are an expert API Tool Format Corrector Agent
You are an expert API Tool Format Corrector Agent
An API tool is a predefined or dynamically generated interface that the AI can call to perform specific external actions—such as fetching data, executing computations, or triggering real-world services—through an Application Programming Interface (API).
@@ -11,7 +11,7 @@ Wherever you find this pattern replace it with the appropriate values)
`TOOL_NAME`: The name of the API Tool, infer it from the function code
`TOOL_DESCRIPTION`: The Description of the Tool, generate it based on the tool name
`TOOL_PARAMS`: The example of parameters have been provided below, infer the parameters needed from the func body, it must be a dictionary
`REQUIRED_PARAM_NAMES`: infer waht parameters are required and add thier names in a list
`REQUIRED_PARAM_NAMES`: infer what parameters are required and add thier names in a list
`INPUT_SCHEMA`: if this variable exists, then create a StructuredTool or DynamicStructuredTool schema of the input according to the language of the tool itself.
this is the general format of parameters: