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

feature: manage tool responses #276

Conversation

carlos-verdes
Copy link
Contributor

It implements the next flow:

  • human prompt
  • agent respond with tool call
  • tool is called
  • tool response is sent back to agent
  • assistant response is sent back to human

It works with OpenAI but I found an issue with DeepSeek and the serialization of content messages, when you send the tool call back to DeepSeek the content is empty and DeepSeek expects content: "", however current serialization (based on OpenAI) is sending content: [] which makes DeepSeek fail.

also fixes #274

@carlos-verdes carlos-verdes force-pushed the feature/openai-manage-tool-answer branch from 1723559 to 235bddb Compare February 6, 2025 13:33
@carlos-verdes
Copy link
Contributor Author

Created smaller PR covering only agent changes + fixing OpenAI issues (another PR fixing DeepSeek Message model is open which will make tool calls work)

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.

DeepSeek auth header is missing
1 participant