Conversations
Manage persisted conversations and their items. Deleting a conversation does not delete its items.
Default implementations throw UnsupportedOperationException so existing custom OpenAI implementations can remain source compatible without implementing this optional capability. Clients created by the SDK implement all operations.
Inheritors
Functions
Retrieves a conversation, or null when it does not exist.
Creates a conversation, optionally with initial items.
Retrieves an item, or null when it does not exist. Include requests additional item data.
Lists conversation items. Pass lastId as after to request the next page.
Adds up to 20 items and returns the created items with pagination metadata.
Deletes a conversation. Returns false when it does not exist.
Removes an item and returns the updated conversation.
Updates the supplied metadata keys, preserving existing keys that are not included.