Stream Session Thread Events
beta.sessions.threads.events.stream(thread_id, **kwargs) -> BetaManagedAgentsStreamSessionThreadEventsGET/v1/sessions/{session_id}/threads/{thread_id}/stream
Stream Session Thread Events
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
beta_managed_agents_stream_session_thread_events = anthropic.beta.sessions.threads.events.stream(
"sthr_011CZkZVWa6oIjw0rgXZpnBt",
session_id: "sesn_011CZkZAtmR3yMPDzynEDxu7"
)
puts(beta_managed_agents_stream_session_thread_events){
"id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
"content": [
{
"text": "Where is my order #1234?",
"type": "text"
}
],
"type": "user.message",
"processed_at": "2026-03-15T10:00:00Z"
}Returns Examples
{
"id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
"content": [
{
"text": "Where is my order #1234?",
"type": "text"
}
],
"type": "user.message",
"processed_at": "2026-03-15T10:00:00Z"
}