generated from deepgram/oss-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 120
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Following your migration guide, I started updating to the new API version using the Python SDK.
According to your latest specification, a FunctionCallRequest now looks like this:
{
"type": "FunctionCallRequest",
"functions": [
{
"id": "fc_12345678-90ab-cdef-1234-567890abcdef",
"name": "get_weather",
"arguments": "{\"location\": \"Fremont, CA 94539\"}",
"client_side": true
}
]
}
However, the SDK's corresponding dataclass that handles this structure and deserializes it from JSON appears to be outdated:
@dataclass
class FunctionCallRequest(BaseResponse):
"""
The FunctionCallRequest message is used to call a function from the server to the client.
"""
type: str
function_name: str
function_call_id: str
input: strIt looks like the SDK needs to be updated to reflect the new schema.
Upd: The same issue with FunctionCallResponse
Upd2.0: It feels like no one cares. For those who will be reading this issue, I recommend not using the Agent SDK, but using the API instead to save time.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working