Skip to main content

Versioning

The Context API supports two payload formats:

  • v1 (Legacy): Flat structure with top-level classes, maxWordCount, and kSimilarMetadata properties. Optionally, may contain an instructions field at the top-level for any action except generate embeddings.
  • v2 (Current): Structured format with action-specific instructions embedded in action objects (using camelCase action names). The instructions field may be present for all actions except generate embeddings.