diff --git a/python/rtclient/models.py b/python/rtclient/models.py index cdef1ce..401af5b 100644 --- a/python/rtclient/models.py +++ b/python/rtclient/models.py @@ -32,10 +32,12 @@ class ServerVAD(ModelWithDefaults): TurnDetection = Annotated[Union[NoTurnDetection, ServerVAD], Field(discriminator="type")] +class FunctionName(BaseModel): + name: str class FunctionToolChoice(ModelWithDefaults): type: Literal["function"] = "function" - function: str + function: FunctionName ToolChoice = Literal["auto", "none", "required"] | FunctionToolChoice