You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Use discriminated unions for MCP schema validation in build_context
- Convert type fields to Literal types for EntitySummary, RelationSummary, ObservationSummary
- Use Annotated[Union[...], Field(discriminator='type')] for union fields
- This generates proper anyOf/oneOf schemas that MCP clients can validate correctly
- Fixes schema validation failures where EntitySummary was missing relation_type/category fields
Resolves#263
Co-authored-by: Paul Hernandez <phernandez@users.noreply.github.com>
0 commit comments