-
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.
feat: now multiple post-process can be done
feat: "ALL" keyword adds all tools based on availability of API keys
- Loading branch information
1 parent
67bf423
commit 06bde04
Showing
5 changed files
with
259 additions
and
20 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,75 @@ | ||
{ | ||
"name": "Simple", | ||
"description": "This is a simple workflow", | ||
"config":{ | ||
"max_steps": 5, | ||
"max_time": 100, | ||
"tools": ["ALL"] | ||
}, | ||
"tasks":[ | ||
{ | ||
"id": "A", | ||
"name": "Random Query", | ||
"description": "Writes a random question about Kapadokya.", | ||
"prompt": "Please write a random question about Kapadokya.", | ||
"inputs":[], | ||
"operator": "generation", | ||
"outputs":[ | ||
{ | ||
"type": "write", | ||
"key": "query", | ||
"value": "__result" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "B", | ||
"name": "Search", | ||
"description": "Searches query.", | ||
"prompt": "Find useful information about the query: {query}", | ||
"inputs":[ | ||
{ | ||
"name": "query", | ||
"value": { | ||
"type": "read", | ||
"key": "query" | ||
}, | ||
"required": true | ||
} | ||
], | ||
"operator": "function_calling", | ||
"outputs":[ | ||
{ | ||
"type": "write", | ||
"key": "search", | ||
"value": "__result" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "__end", | ||
"name": "end", | ||
"description": "End of the task", | ||
"prompt": "End of the task", | ||
"inputs": [], | ||
"operator": "end", | ||
"outputs": [] | ||
} | ||
], | ||
"steps":[ | ||
{ | ||
"source":"A", | ||
"target":"B" | ||
}, | ||
{ | ||
"source":"B", | ||
"target":"end" | ||
} | ||
], | ||
"return_value":{ | ||
"input":{ | ||
"type": "read", | ||
"key": "search" | ||
} | ||
} | ||
} |
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,64 @@ | ||
{ | ||
"name": "Simple", | ||
"description": "This is a simple workflow", | ||
"config":{ | ||
"max_steps": 5, | ||
"max_time": 100, | ||
"tools": [] | ||
}, | ||
"tasks":[ | ||
{ | ||
"id": "A", | ||
"name": "Random Poem", | ||
"description": "Writes a poem about Kapadokya.", | ||
"prompt": "Please write a poem about Kapadokya.", | ||
"inputs":[], | ||
"operator": "generation", | ||
"outputs":[ | ||
{ | ||
"type": "write", | ||
"key": "poem", | ||
"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": "poem" | ||
}, | ||
"post_process":[ | ||
{ | ||
"process_type": "replace", | ||
"lhs": "a", | ||
"rhs": "#" | ||
}, | ||
{ | ||
"process_type": "replace", | ||
"lhs": "b", | ||
"rhs": "$" | ||
}, | ||
{ | ||
"process_type": "to_upper", | ||
"lhs": "", | ||
"rhs": "" | ||
} | ||
] | ||
} | ||
} |