-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now custom tools are enum with mode value: http_request, custom. Custom mode runs on raw_mode() will only return function calls and won't execute the tool.
- Loading branch information
1 parent
a3693ad
commit 09f8579
Showing
6 changed files
with
228 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"config": { | ||
"max_steps": 50, | ||
"max_time": 200, | ||
"tools": [ | ||
"ALL" | ||
] | ||
}, | ||
"external_memory": {}, | ||
"tasks": [ | ||
{ | ||
"id": "fibonacci", | ||
"name": "Task", | ||
"description": "Task Description", | ||
"prompt": "Write fibonnaci sequence method with memoization in rust", | ||
"inputs": [], | ||
"operator": "generation", | ||
"outputs": [ | ||
{ | ||
"type": "push", | ||
"key": "code", | ||
"value": "__result" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "_end", | ||
"name": "Task", | ||
"description": "Task Description", | ||
"prompt": "", | ||
"inputs": [], | ||
"operator": "end", | ||
"outputs": [] | ||
} | ||
], | ||
"steps": [ | ||
{ | ||
"source": "fibonacci", | ||
"target": "_end" | ||
} | ||
], | ||
"return_value": { | ||
"input": { | ||
"type": "get_all", | ||
"key": "code" | ||
}, | ||
"to_json": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"name": "Custom Tool", | ||
"description": "This is a simple workflow for custom tools", | ||
"config":{ | ||
"max_steps": 5, | ||
"max_time": 100, | ||
"max_tokens": 1024, | ||
"tools": [], | ||
"custom_tools":[{ | ||
"name": "google_search_tool", | ||
"description": "Conducts a web search using a specified search type and returns the results.", | ||
"mode":"custom", | ||
"parameters":{ | ||
"type": "object", | ||
"properties": { | ||
"website": { | ||
"type": "string", | ||
"description": "The URL of the website to scrape" | ||
} | ||
}, | ||
"required": ["website"] | ||
} | ||
}] | ||
}, | ||
"tasks":[ | ||
{ | ||
"id": "A", | ||
"name": "Get prices", | ||
"description": "Get price feed", | ||
"prompt": "What are the current prices for $APPL?", | ||
"inputs":[], | ||
"operator": "function_calling_raw", | ||
"outputs":[ | ||
{ | ||
"type": "write", | ||
"key": "prices", | ||
"value": "__result" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "__end", | ||
"name": "end", | ||
"description": "End of the task", | ||
"prompt": "End of the task", | ||
"inputs": [], | ||
"operator": "end", | ||
"outputs": [] | ||
} | ||
], | ||
"steps":[ | ||
{ | ||
"source":"A", | ||
"target":"_end" | ||
} | ||
], | ||
"return_value":{ | ||
"input":{ | ||
"type": "read", | ||
"key": "prices" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters