Beta
BetaAssistants
Build Assistants that can call models and use tools.
Delete assistant
Deprecated
client.Beta.Assistants.Delete(ctx, assistantID) (*AssistantDeleted, error)
DELETE/assistants/{assistant_id}
List assistants
Deprecated
client.Beta.Assistants.List(ctx, query) (*CursorPage[Assistant], error)
GET/assistants
Retrieve assistant
Deprecated
client.Beta.Assistants.Get(ctx, assistantID) (*Assistant, error)
GET/assistants/{assistant_id}
Modify assistant
Deprecated
client.Beta.Assistants.Update(ctx, assistantID, body) (*Assistant, error)
POST/assistants/{assistant_id}
BetaChatKitSessions
Cancel chat session
client.Beta.ChatKit.Sessions.Cancel(ctx, sessionID) (*ChatSession, error)
POST/chatkit/sessions/{session_id}/cancel
Create ChatKit session
client.Beta.ChatKit.Sessions.New(ctx, body) (*ChatSession, error)
POST/chatkit/sessions
BetaChatKitThreads
Delete ChatKit thread
client.Beta.ChatKit.Threads.Delete(ctx, threadID) (*BetaChatKitThreadDeleteResponse, error)
DELETE/chatkit/threads/{thread_id}
List ChatKit threads
client.Beta.ChatKit.Threads.List(ctx, query) (*ConversationCursorPage[ChatKitThread], error)
GET/chatkit/threads
List ChatKit thread items
client.Beta.ChatKit.Threads.ListItems(ctx, threadID, query) (*ConversationCursorPage[ChatKitThreadItemListDataUnion], error)
GET/chatkit/threads/{thread_id}/items
Retrieve ChatKit thread
client.Beta.ChatKit.Threads.Get(ctx, threadID) (*ChatKitThread, error)
GET/chatkit/threads/{thread_id}
BetaResponses
Cancel a response
client.Beta.Responses.Cancel(ctx, responseID, body) (*BetaResponse, error)
POST/responses/{response_id}/cancel
Compact a response
client.Beta.Responses.Compact(ctx, params) (*BetaCompactedResponse, error)
POST/responses/compact
Delete a model response
client.Beta.Responses.Delete(ctx, responseID, body) error
DELETE/responses/{response_id}
Get a model response
client.Beta.Responses.Get(ctx, responseID, params) (*BetaResponse, error)
GET/responses/{response_id}
BetaResponsesInput Items
List input items
client.Beta.Responses.InputItems.List(ctx, responseID, params) (*CursorPage[BetaResponseItemUnion], error)
GET/responses/{response_id}/input_items
BetaResponsesInput Tokens
Get input token counts
client.Beta.Responses.InputTokens.Count(ctx, params) (*BetaResponseInputTokenCountResponse, error)
POST/responses/input_tokens
BetaThreads
Build Assistants that can call models and use tools.
Create thread and run
Deprecated
client.Beta.Threads.NewAndRun(ctx, body) (*Run, error)
POST/threads/runs
Delete thread
Deprecated
client.Beta.Threads.Delete(ctx, threadID) (*ThreadDeleted, error)
DELETE/threads/{thread_id}
Retrieve thread
Deprecated
client.Beta.Threads.Get(ctx, threadID) (*Thread, error)
GET/threads/{thread_id}
Modify thread
Deprecated
client.Beta.Threads.Update(ctx, threadID, body) (*Thread, error)
POST/threads/{thread_id}
BetaThreadsMessages
Build Assistants that can call models and use tools.
Create message
Deprecated
client.Beta.Threads.Messages.New(ctx, threadID, body) (*Message, error)
POST/threads/{thread_id}/messages
Delete message
Deprecated
client.Beta.Threads.Messages.Delete(ctx, threadID, messageID) (*MessageDeleted, error)
DELETE/threads/{thread_id}/messages/{message_id}
List messages
Deprecated
client.Beta.Threads.Messages.List(ctx, threadID, query) (*CursorPage[Message], error)
GET/threads/{thread_id}/messages
Retrieve message
Deprecated
client.Beta.Threads.Messages.Get(ctx, threadID, messageID) (*Message, error)
GET/threads/{thread_id}/messages/{message_id}
Modify message
Deprecated
client.Beta.Threads.Messages.Update(ctx, threadID, messageID, body) (*Message, error)
POST/threads/{thread_id}/messages/{message_id}
BetaThreadsRuns
Build Assistants that can call models and use tools.
Cancel a run
Deprecated
client.Beta.Threads.Runs.Cancel(ctx, threadID, runID) (*Run, error)
POST/threads/{thread_id}/runs/{run_id}/cancel
Create run
Deprecated
client.Beta.Threads.Runs.New(ctx, threadID, params) (*Run, error)
POST/threads/{thread_id}/runs
Retrieve run
Deprecated
client.Beta.Threads.Runs.Get(ctx, threadID, runID) (*Run, error)
GET/threads/{thread_id}/runs/{run_id}
Submit tool outputs to run
Deprecated
client.Beta.Threads.Runs.SubmitToolOutputs(ctx, threadID, runID, body) (*Run, error)
POST/threads/{thread_id}/runs/{run_id}/submit_tool_outputs
Modify run
Deprecated
client.Beta.Threads.Runs.Update(ctx, threadID, runID, body) (*Run, error)
POST/threads/{thread_id}/runs/{run_id}
BetaThreadsRunsSteps
Build Assistants that can call models and use tools.
List run steps
Deprecated
client.Beta.Threads.Runs.Steps.List(ctx, threadID, runID, query) (*CursorPage[RunStep], error)
GET/threads/{thread_id}/runs/{run_id}/steps
Retrieve run step
Deprecated
client.Beta.Threads.Runs.Steps.Get(ctx, threadID, runID, stepID, query) (*RunStep, error)
GET/threads/{thread_id}/runs/{run_id}/steps/{step_id}