letta icon indicating copy to clipboard operation
letta copied to clipboard

refactor: patching openapi schema

Open cpacker opened this issue 3 months ago • 0 comments

Fix issues w/ autogenerated SDK workflow

API changes:

  1. Send message modified to only allow List[MessageCreate] instead of Union[List[Message], List[MessageCreate]]
  2. Get messages modified to be a Union over special types that have names, instead of just a union of Message and LettaMessageUnion

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

cpacker avatar Nov 13 '24 22:11 cpacker