straight-sundown-84319
12/02/2025, 11:32 PMInput tag 'UnknownTool' found using kind_of() does not match any of the expected tags: 'FinishTool', 'MCPToolDefinition', 'ThinkTool' [type=union_tag_invalid, input_value=ToolDefinition(kind='UnknownTool'), input_type=openhands.sdk.tool.ToolDefinition]
For further information visit https://errors.pydantic.dev/2.11/v/union_tag_invalid
To:
Unexpected kind 'UnknownTool' for ToolDefinition. Expected one of: FinishTool, MCPToolDefinition, ThinkTool.
If you receive this error when trying to wrap a DiscriminatedUnion instance inside another pydantic model,
you may need to use OpenHandsModel instead of BaseModel to make sure that an invalid schema has not been cached.
🙏