letta
letta copied to clipboard
refactor: patching openapi schema
Fix issues w/ autogenerated SDK workflow
API changes:
- Send message modified to only allow
List[MessageCreate]
instead ofUnion[List[Message], List[MessageCreate]]
- Get messages modified to be a
Union
over special types that have names, instead of just a union ofMessage
andLettaMessageUnion
Related error for (2):
Could not infer a name for the union variant.
openapi:2382Schema/CannotInferUnionVariantName
The name for a union variant is inferred from
* a model definition
* a title property on a schema
OpenAPI: #›paths›/v1/agents/{agent_id}/messages›get›responses›200›content›application/json›schema›anyOf›0