-
Notifications
You must be signed in to change notification settings - Fork 907
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(typespec,agents-api): Rename integration providers
Signed-off-by: Diwank Singh Tomer <[email protected]>
- Loading branch information
Showing
4 changed files
with
57 additions
and
19 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
2 changes: 1 addition & 1 deletion
2
agents-api/migrations/migrate_1727235852_add_forward_tool_calls_option.py
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,44 @@ | ||
name: Simple multi step task | ||
|
||
input_schema: | ||
type: object | ||
properties: | ||
topics: | ||
type: array | ||
items: | ||
type: string | ||
|
||
tools: | ||
- type: function | ||
function: | ||
name: generate_questions | ||
description: Generate a list of questions for a given topic | ||
parameters: | ||
type: object | ||
properties: | ||
topic: | ||
type: string | ||
description: The topic to generate questions for | ||
|
||
- type: integration | ||
name: duckduckgo_search | ||
integration: | ||
provider: duckduckgo | ||
setup: | ||
api_key: <something> | ||
arguments: | ||
language: en-US | ||
|
||
main: | ||
- foreach: | ||
in: _["topics"] | ||
do: | ||
prompt: | ||
- role: system | ||
content: |- | ||
Generate a list of 10 questions for the topic {{_}} as valid yaml. | ||
unwrap: true | ||
|
||
- tool: duckduckgo_search | ||
arguments: | ||
query: "'\n'.join(_)" |
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