fix: allow variable message to be any (#13494)

This commit is contained in:
Yeuoly
2025-02-10 21:13:28 +08:00
committed by GitHub
parent 8281c688ca
commit 50cfb7c9ec

View File

@@ -125,7 +125,7 @@ class ToolInvokeMessage(BaseModel):
class VariableMessage(BaseModel):
variable_name: str = Field(..., description="The name of the variable")
variable_value: str = Field(..., description="The value of the variable")
variable_value: Any = Field(..., description="The value of the variable")
stream: bool = Field(default=False, description="Whether the variable is streamed")
@model_validator(mode="before")