Update to the error message Rohit and I were discu...
# proj-sdk
s
Update to the error message Rohit and I were discussing earlier: https://github.com/OpenHands/software-agent-sdk/pull/1301 Changes the error message from:
Copy code
Input 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:
Copy code
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.
🙏
✅ 1