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

Refactor tool use response #75

Merged
merged 6 commits into from
Feb 20, 2025
Merged

Refactor tool use response #75

merged 6 commits into from
Feb 20, 2025

Conversation

rishsriv
Copy link
Member

Added tool_id to outputs

Added a tool_id to tool_outputs for better tracking. This only works for OpenAI and Anthropic, and is None for Gemini as Gemini (strangely) does not return a tool id – despite having a field for it.

Removed tools_used

Removed the tools_used field from LLMResponse, since those can be easily extracted from tool_outputs.

Upped all requirements to latest SDK version

We now use the latest version of the google-genai, openai, and anthropic libraries

@rishsriv rishsriv merged commit d5b5285 into main Feb 20, 2025
2 checks passed
@rishsriv rishsriv deleted the rishabh/refactor-utils branch February 20, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant