Skip to content
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

[Bug]: Support api_call and integration tools in format_tool #798

Open
1 of 3 tasks
creatorrr opened this issue Nov 1, 2024 · 1 comment
Open
1 of 3 tasks

[Bug]: Support api_call and integration tools in format_tool #798

creatorrr opened this issue Nov 1, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@creatorrr
Copy link
Contributor

📜 Description

  • For api_call tools, simply set the parameters to tool.schema
  • For integrations, you need to get the correct arguments model from autogen/Tools.py based on the provider and method. Then convert to json schema and set parameters to it

relevant links

https://github.com/julep-ai/julep/blob/dev/agents-api/agents_api/activities/task_steps/prompt_step.py#L70

https://github.com/julep-ai/julep/blob/dev/agents-api/agents_api/autogen/Tools.py#L37

https://github.com/julep-ai/julep/blob/dev/agents-api/agents_api/autogen/Tools.py#L312

👟 Reproduction steps

No response

👀 Have you spent some time to check if this bug has been raised before?

  • I checked and didn't find similar issue
@creatorrr creatorrr added the bug Something isn't working label Nov 1, 2024
@Vedantsahai18
Copy link
Member

Right now, it just ignores and filters for the new computer use stuff. We should instead convert the tool to an Anthropic format.

openai

{type: function, function: {name, description, parameters: $schema}}

Anthropic

{name, description, input_schema: $schema}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants