Skip to content

Bedrock: Tool input in response message is an object and not string #768

@narengogi

Description

@narengogi

What Happened?

tool calls response from bedrock should be like

                "tool_calls": [
                    {
                        "id": "toolu_01asdffAvgMRhMAD4Bnnt5W",
                        "type": "function",
                        "function": {
                            "name": "computer",
                            "arguments": "{\"action\":\"type\",\"coordinate\":[1, 2],\"text\":\"asda\",\"element\":\"asd\"}"
                        }
                    }
                ]

this is how they are currently

                "tool_calls": [
                    {
                        "id": "toolu_018x5pj9sdasdd54w9ejke8fg",
                        "type": "function",
                        "function": {
                            "name": "computer",
                            "arguments": {
                                "action": "type",
                                "coordinate": [
                                    1, 2
                                ],
                                "text": "asd",
                                "element": "asd"
                            }
                        }
                    }
                ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions