-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
agents to use tools api #673
base: main
Are you sure you want to change the base?
Conversation
b260b0e
to
b36e8a4
Compare
3e25f7b
to
01b4319
Compare
bd5786d
to
6e78f55
Compare
452147f
to
c3b3cee
Compare
@@ -659,6 +689,123 @@ async def _run( | |||
|
|||
n_iter += 1 | |||
|
|||
async def _get_tool_defs( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe have a unit test just for this behavior, seems very key
llama_stack/providers/inline/agents/meta_reference/agent_instance.py
Outdated
Show resolved
Hide resolved
content_items.append(d) | ||
|
||
# Save the contents to a tempdir and use its path as a URL if code interpreter is present | ||
if code_interpreter_tool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we need to make sure the code interpreter tool has a filesystem API -- at least something minimal so we can pass auxilliary "content" to a remote provider for code execution
What does this PR do?
Agents to use tools API
Test Plan
run.yaml: https://gist.github.com/dineshyv/0365845ad325e1c2cab755788ccc5994
Notebook: https://colab.research.google.com/drive/1ck7hXQxRl6UvT-ijNRZ-gMZxH1G3cN2d?usp=sharing