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

Tools calling in bedrock #29

Open
2 tasks
swosty opened this issue Jul 2, 2024 · 0 comments
Open
2 tasks

Tools calling in bedrock #29

swosty opened this issue Jul 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@swosty
Copy link

swosty commented Jul 2, 2024

Describe the bug
In the schema
AssistantMessage(BaseModel):
role: Literal["assistant"] = "assistant"
content: str |list | None
tool_calls: list[ToolCall] | None = None.

The content should be a str or a list (for bedrock models) cause when we send the message and get the tool use request from response the assistant message has a list in the content s which can be passed as is.
Same can be done for UserMessage

Please complete the following information:

  • Which API you used: [e.g. /chat/completions] /chat/completions
  • Which model you used: [e.g. anthropic.claude-3-sonnet-20240229-v1:0] anthropic.claude-3-sonnet-20240229-v1:0

To Reproduce
Steps to reproduce the behavior. If possible, please share an example request.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem (please DO NOT include sensitive information).

Additional context
Add any other context about the problem here.

@swosty swosty added the bug Something isn't working label Jul 2, 2024
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

1 participant