Skip to content

Chat

List Sessions
client.Beta.Chat.List(ctx, query) (*PaginatedCursor[BetaChatListResponse], error)
GET/api/v1/chat
Create Session
client.Beta.Chat.New(ctx, params) (*BetaChatNewResponse, error)
POST/api/v1/chat
Get Full Session
client.Beta.Chat.Get(ctx, sessionID, query) (*BetaChatGetResponse, error)
GET/api/v1/chat/{session_id}
Delete Session
client.Beta.Chat.Delete(ctx, sessionID, body) error
DELETE/api/v1/chat/{session_id}
Get Session Summary
client.Beta.Chat.GetSummary(ctx, sessionID, query) (*BetaChatGetSummaryResponse, error)
GET/api/v1/chat/{session_id}/summary
Generate Session Title
client.Beta.Chat.SetTitle(ctx, sessionID, params) (*BetaChatSetTitleResponse, error)
POST/api/v1/chat/{session_id}/title
Stream Messages
client.Beta.Chat.Stream(ctx, sessionID, params) (*BetaChatStreamResponse, error)
POST/api/v1/chat/{session_id}/messages/stream