class

Anthropic::BetaSessionThreads

Inherits Reference < Object

Session Threads API resource (beta)

Constructors

new(client : Client)
Source

Instance methods

archive(session_id : String, thread_id : String, betas : Array(String) = [] of String) : BetaManagedAgentsSessionThread

Archive a thread

Source
create(session_id : String, agent : BetaManagedAgentsAgentParamLike, parent_thread_id : String | Nil = nil, betas : Array(String) = [] of String) : BetaManagedAgentsSessionThread

Create a thread under a session

Source
events
Source
list(session_id : String, limit : Int32 = 20, page : String | Nil = nil, betas : Array(String) = [] of String) : BetaSessionThreadListResponse

List threads in a session

Source
retrieve(session_id : String, thread_id : String, betas : Array(String) = [] of String) : BetaManagedAgentsSessionThread

Retrieve a thread

Source