mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 18:28:25 +08:00
REFACTOR: moved agent_utils -> apidash_agent_calls
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user