Skip to content

FunctionCallRequest seems outdated for new API version #528

@ArturZhukovets

Description

@ArturZhukovets

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: str

It 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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions