Skip to content

Conversation

@0xrushi
Copy link
Contributor

@0xrushi 0xrushi commented Apr 30, 2025

the params don't match test task message

test_message = {
        "content": {
            "type": "function_call",
            "name": "calculate",
            "parameters": [
                {"name": "operation", "value": "add"},
                {"name": "a", "value": 5},
                {"name": "b", "value": 3}
            ]
        },
        "role": "user"
    }

the params don't match test task message

```
test_message = {
        "content": {
            "type": "function_call",
            "name": "calculate",
            "parameters": [
                {"name": "operation", "value": "add"},
                {"name": "a", "value": 5},
                {"name": "b", "value": 3}
            ]
        },
        "role": "user"
    }
```
@0xrushi 0xrushi changed the title fix params Fix tool calling params Apr 30, 2025
@themanojdesai
Copy link
Owner

tested, not working as expected. can you double check .? @0xrushi .?

@0xrushi
Copy link
Contributor Author

0xrushi commented May 3, 2025

@themanojdesai
after this pr:
image

before this pr:
image

I'm running

python simple_client.py --external http://localhost:5000

python function_calling.py

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.

2 participants