Package com.anthropic.models.beta.sessions.events
See: Description
-
Interface Summary Interface Description Visitor An interface that defines how to map each variant of BetaManagedAgentsAgentAutoEvaluatedPermission to a value of type T. Visitor An interface that defines how to map each variant of Content to a value of type T. Visitor An interface that defines how to map each variant of Content to a value of type T. Visitor An interface that defines how to map each variant of Content to a value of type T. Visitor An interface that defines how to map each variant of Content to a value of type T. Visitor An interface that defines how to map each variant of BetaManagedAgentsAgentToolEvaluation to a value of type T. Visitor An interface that defines how to map each variant of Content to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of Source to a value of type T. Visitor An interface that defines how to map each variant of BetaManagedAgentsEventParams to a value of type T. Visitor An interface that defines how to map each variant of Source to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of Data to a value of type T. Visitor An interface that defines how to map each variant of Error to a value of type T. Visitor An interface that defines how to map each variant of BetaManagedAgentsSessionEvent to a value of type T. Visitor An interface that defines how to map each variant of StopReason to a value of type T. Visitor An interface that defines how to map each variant of StopReason to a value of type T. Visitor An interface that defines how to map each variant of BetaManagedAgentsStreamSessionEvents to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of RetryStatus to a value of type T. Visitor An interface that defines how to map each variant of Content to a value of type T. Visitor An interface that defines how to map each variant of Content to a value of type T. Visitor An interface that defines how to map each variant of Rubric to a value of type T. Visitor An interface that defines how to map each variant of Rubric to a value of type T. Visitor An interface that defines how to map each variant of Content to a value of type T. Visitor An interface that defines how to map each variant of Content to a value of type T. Visitor An interface that defines how to map each variant of Content to a value of type T. Visitor An interface that defines how to map each variant of BetaManagedAgentsWorkflowRunError to a value of type T. Visitor An interface that defines how to map each variant of BetaManagedAgentsWorkflowRunResult to a value of type T. -
Enum Summary Enum Description Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing BetaManagedAgentsAgentEvaluatedPermission's known values. Value An enum containing BetaManagedAgentsAgentEvaluatedPermission's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing BetaManagedAgentsSessionEventType's known values. Value An enum containing BetaManagedAgentsSessionEventType's known values, as well as an _UNKNOWN member. Known An enum containing Category's known values. Value An enum containing Category's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Speed's known values. Value An enum containing Speed's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Result's known values. Value An enum containing Result's known values, as well as an _UNKNOWN member. Known An enum containing Result's known values. Value An enum containing Result's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Type's known values. Value An enum containing Type's known values, as well as an _UNKNOWN member. Known An enum containing Order's known values. Value An enum containing Order's known values, as well as an _UNKNOWN member. -
Class Summary Class Description Type BetaManagedAgentsAgentAutoEvaluatedPermission The server's per-invocation judgement under the auto permission policy. Builder A builder for BetaManagedAgentsAgentAutoEvaluatedPermissionAllow. BetaManagedAgentsAgentAutoEvaluatedPermissionAllow The server judged the invocation safe to execute without client approval. Builder A builder for BetaManagedAgentsAgentAutoEvaluatedPermissionAsk. BetaManagedAgentsAgentAutoEvaluatedPermissionAsk The server reached no judgement; the invocation is held for client approval. Builder A builder for BetaManagedAgentsAgentAutoEvaluatedPermissionDeny. BetaManagedAgentsAgentAutoEvaluatedPermissionDeny The server judged the invocation high-risk, or reached no judgement and did not hold it for client approval (for example, because the organization is out of credits or has reached a spend limit); it does not execute and a synthetic error tool result is appended. Builder A builder for BetaManagedAgentsAgentCustomToolUseEvent. Builder A builder for Input. Input Input parameters for the tool call. BetaManagedAgentsAgentCustomToolUseEvent Event emitted when the agent calls a custom tool. BetaManagedAgentsAgentEvaluatedPermission Builder A builder for BetaManagedAgentsAgentMcpToolResultEvent. Type Content Content block in a tool result. BetaManagedAgentsAgentMcpToolResultEvent Event representing the result of an MCP tool execution. Builder A builder for BetaManagedAgentsAgentMcpToolUseEvent. Builder A builder for Input. Input Input parameters for the tool call. BetaManagedAgentsAgentMcpToolUseEvent Event emitted when the agent invokes a tool provided by an MCP server. Builder A builder for BetaManagedAgentsAgentMessageEvent. Type Content Content block in an agent message. BetaManagedAgentsAgentMessageEvent An agent response event in the session conversation. Builder A builder for BetaManagedAgentsAgentThinkingEvent. BetaManagedAgentsAgentThinkingEvent Indicates the agent is making forward progress via extended thinking. Builder A builder for BetaManagedAgentsAgentThreadContextCompactedEvent. BetaManagedAgentsAgentThreadContextCompactedEvent Indicates that context compaction (summarization) occurred during the session. Builder A builder for BetaManagedAgentsAgentThreadMessageReceivedEvent. Type Content Content block in a user message. BetaManagedAgentsAgentThreadMessageReceivedEvent Delivery event written to the target thread's input stream when an agent-to-agent message arrives. Builder A builder for BetaManagedAgentsAgentThreadMessageSentEvent. Type Content Content block in a user message. BetaManagedAgentsAgentThreadMessageSentEvent Observability event emitted to the sender's output stream when an agent-to-agent message is sent. Type BetaManagedAgentsAgentToolEvaluation Names the resolved permission_policy that produced evaluated_permission, and under auto carries the judgement. Builder A builder for BetaManagedAgentsAgentToolEvaluationAlwaysAllow. BetaManagedAgentsAgentToolEvaluationAlwaysAllow The resolved permission_policy was always_allow; accompanies evaluated_permission "allow". Builder A builder for BetaManagedAgentsAgentToolEvaluationAlwaysAsk. BetaManagedAgentsAgentToolEvaluationAlwaysAsk The resolved permission_policy was always_ask; accompanies evaluated_permission "ask". Builder A builder for BetaManagedAgentsAgentToolEvaluationAuto. BetaManagedAgentsAgentToolEvaluationAuto The resolved permission_policy was auto: the server judged this invocation individually. Builder A builder for BetaManagedAgentsAgentToolResultEvent. Type Content Content block in a tool result. BetaManagedAgentsAgentToolResultEvent Event representing the result of an agent tool execution. Builder A builder for BetaManagedAgentsAgentToolUseEvent. Builder A builder for Input. Input Input parameters for the tool call. BetaManagedAgentsAgentToolUseEvent Event emitted when the agent invokes a built-in agent tool. Builder A builder for BetaManagedAgentsBase64DocumentSource. BetaManagedAgentsBase64DocumentSource Base64-encoded document data. Builder A builder for BetaManagedAgentsBase64ImageSource. BetaManagedAgentsBase64ImageSource Base64-encoded image data. Builder A builder for BetaManagedAgentsBillingError. Type RetryStatus What the client should do next. BetaManagedAgentsBillingError The caller's organization or workspace cannot make model requests — out of credits or spend limit reached. Builder A builder for BetaManagedAgentsCompactionLimitReachedError. Type RetryStatus What the client should do next. BetaManagedAgentsCompactionLimitReachedError The turn stopped because the context was compacted the maximum number of times in a row without the model producing a message or a tool call, not because a request failed. Builder A builder for BetaManagedAgentsCredentialHostUnreachableError. Type RetryStatus What the client should do next. BetaManagedAgentsCredentialHostUnreachableError An environment_variablecredential'sauth.networking.allowed_hostsincludes a host the environment's network policy does not permit.Builder A builder for BetaManagedAgentsDocumentBlock. Type Source The source of the document data. BetaManagedAgentsDocumentBlock Document content, either specified directly as base64 data, as text, or as a reference via a URL. Type BetaManagedAgentsEventParams Union type for event parameters that can be sent to a session. Builder A builder for BetaManagedAgentsFileDocumentSource. BetaManagedAgentsFileDocumentSource Document referenced by file ID. Builder A builder for BetaManagedAgentsFileImageSource. BetaManagedAgentsFileImageSource Image referenced by file ID. Builder A builder for BetaManagedAgentsFileRubric. BetaManagedAgentsFileRubric Rubric referenced by a file uploaded via the Files API. Builder A builder for BetaManagedAgentsFileRubricParams. BetaManagedAgentsFileRubricParams Rubric referenced by a file uploaded via the Files API. Builder A builder for BetaManagedAgentsImageBlock. Type Source The source of the image data. BetaManagedAgentsImageBlock Image content specified directly as base64 data or as a reference via a URL. Builder A builder for BetaManagedAgentsMaxWorkflowRunsWorkflowRunError. BetaManagedAgentsMaxWorkflowRunsWorkflowRunError No run was created, because the session was at its limit of open workflow runs, which are runs that have not ended. Builder A builder for BetaManagedAgentsMcpAuthenticationFailedError. Type RetryStatus What the client should do next. BetaManagedAgentsMcpAuthenticationFailedError Authentication to an MCP server failed. Builder A builder for BetaManagedAgentsMcpConnectionFailedError. Type RetryStatus What the client should do next. BetaManagedAgentsMcpConnectionFailedError Failed to connect to an MCP server. Builder A builder for BetaManagedAgentsModelOverloadedError. Type RetryStatus What the client should do next. BetaManagedAgentsModelOverloadedError The model is currently overloaded. Builder A builder for BetaManagedAgentsModelRateLimitedError. Type RetryStatus What the client should do next. BetaManagedAgentsModelRateLimitedError The model request was rate-limited. Builder A builder for BetaManagedAgentsModelRequestFailedError. Type RetryStatus What the client should do next. BetaManagedAgentsModelRequestFailedError A model request failed for a reason other than overload or rate-limiting. Builder A builder for BetaManagedAgentsPlainTextDocumentSource. BetaManagedAgentsPlainTextDocumentSource Plain text document content. Builder A builder for BetaManagedAgentsProgramWorkflowRunError. BetaManagedAgentsProgramWorkflowRunError The plan, a program that the agent wrote, failed, or the server refused it. Builder A builder for BetaManagedAgentsRedactedBlock. BetaManagedAgentsRedactedBlock Placeholder for content withheld by Anthropic model policy. Builder A builder for BetaManagedAgentsRepositoryAuthenticationError. Type RetryStatus What the client should do next. BetaManagedAgentsRepositoryAuthenticationError The repository host rejected the credentials, or required credentials and received none. Builder A builder for BetaManagedAgentsRepositoryCheckoutError. Type RetryStatus What the client should do next. BetaManagedAgentsRepositoryCheckoutError The requested branch or commit does not exist in the repository. Builder A builder for BetaManagedAgentsRepositoryCloneError. Type RetryStatus What the client should do next. BetaManagedAgentsRepositoryCloneError The repository could not be cloned. Builder A builder for BetaManagedAgentsRepositoryForbiddenError. Type RetryStatus What the client should do next. BetaManagedAgentsRepositoryForbiddenError The repository host refused access to the repository. Builder A builder for BetaManagedAgentsRepositoryNotFoundError. Type RetryStatus What the client should do next. BetaManagedAgentsRepositoryNotFoundError The repository host reported the repository as not found. Builder A builder for BetaManagedAgentsRetryStatusExhausted. BetaManagedAgentsRetryStatusExhausted This turn is dead; queued inputs are flushed and the session returns to idle. Builder A builder for BetaManagedAgentsRetryStatusRetrying. BetaManagedAgentsRetryStatusRetrying The server is retrying automatically. Builder A builder for BetaManagedAgentsRetryStatusTerminal. BetaManagedAgentsRetryStatusTerminal The session encountered a terminal error and will transition to terminatedstate.Builder A builder for BetaManagedAgentsSearchResultBlock. BetaManagedAgentsSearchResultBlock A block containing a web search result. Builder A builder for BetaManagedAgentsSearchResultCitations. BetaManagedAgentsSearchResultCitations Citation settings for a search result. Builder A builder for BetaManagedAgentsSearchResultContent. BetaManagedAgentsSearchResultContent Text content within a search result. Builder A builder for BetaManagedAgentsSendSessionEvents. Type Data Union type for events that can be sent to a session. BetaManagedAgentsSendSessionEvents Events that were successfully sent to the session. Builder A builder for BetaManagedAgentsSessionBudgetReached. BetaManagedAgentsSessionBudgetReached The agent stopped because the session's tracked list cost reached its budget, or because its usage includes a model with no list price (which the budget cannot measure). Builder A builder for BetaManagedAgentsSessionDeletedEvent. BetaManagedAgentsSessionDeletedEvent Emitted when a session has been deleted. Builder A builder for BetaManagedAgentsSessionEndTurn. BetaManagedAgentsSessionEndTurn The agent completed its turn naturally and is ready for the next user message. Builder A builder for BetaManagedAgentsSessionErrorEvent. Type Error BetaManagedAgentsSessionErrorEvent An error event indicating a problem occurred during session execution. Type BetaManagedAgentsSessionEvent Union type for all event types in a session. BetaManagedAgentsSessionEventType The typeof a session event.Builder A builder for BetaManagedAgentsSessionRefusal. BetaManagedAgentsSessionRefusal The turn ended because the model's response was refused, for example by a safety classifier. Builder A builder for BetaManagedAgentsSessionRefusalStopDetails. Category The policy category that triggered the refusal, or nullwhen there is no named category.BetaManagedAgentsSessionRefusalStopDetails Structured information about a refusal. Builder A builder for BetaManagedAgentsSessionRequiresAction. BetaManagedAgentsSessionRequiresAction The agent is idle waiting on one or more blocking user-input events (tool confirmation, custom tool result, etc.). Builder A builder for BetaManagedAgentsSessionRetriesExhausted. BetaManagedAgentsSessionRetriesExhausted The turn ended because repeated errors exhausted the retry budget or an error escalated to retry_status: 'exhausted'.Builder A builder for BetaManagedAgentsSessionStatusIdleEvent. Type StopReason BetaManagedAgentsSessionStatusIdleEvent Indicates the agent has paused and is awaiting user input. Builder A builder for BetaManagedAgentsSessionStatusRescheduledEvent. BetaManagedAgentsSessionStatusRescheduledEvent Indicates the session is recovering from an error state and is rescheduled for execution. Builder A builder for BetaManagedAgentsSessionStatusRunningEvent. BetaManagedAgentsSessionStatusRunningEvent Indicates the session is actively running and the agent is working. Builder A builder for BetaManagedAgentsSessionStatusTerminatedEvent. BetaManagedAgentsSessionStatusTerminatedEvent Indicates the session has terminated, either due to an error or completion. Builder A builder for BetaManagedAgentsSessionThreadCreatedEvent. BetaManagedAgentsSessionThreadCreatedEvent Emitted when a child thread is created. Builder A builder for BetaManagedAgentsSessionThreadStatusIdleEvent. Type StopReason BetaManagedAgentsSessionThreadStatusIdleEvent A session thread has yielded and is awaiting input. Builder A builder for BetaManagedAgentsSessionThreadStatusRescheduledEvent. BetaManagedAgentsSessionThreadStatusRescheduledEvent A session thread hit a transient error and is retrying automatically. Builder A builder for BetaManagedAgentsSessionThreadStatusRunningEvent. BetaManagedAgentsSessionThreadStatusRunningEvent A session thread has begun executing. Builder A builder for BetaManagedAgentsSessionThreadStatusTerminatedEvent. BetaManagedAgentsSessionThreadStatusTerminatedEvent A session thread has terminated and will accept no further input. Builder A builder for BetaManagedAgentsSessionUsageSnapshot. BetaManagedAgentsSessionUsageSnapshot Point-in-time snapshot of a session's cumulative usage. Builder A builder for BetaManagedAgentsSpanModelRequestEndEvent. BetaManagedAgentsSpanModelRequestEndEvent Emitted when a model request completes. Builder A builder for BetaManagedAgentsSpanModelRequestStartEvent. BetaManagedAgentsSpanModelRequestStartEvent Emitted when a model request is initiated by the agent. Builder A builder for BetaManagedAgentsSpanModelUsage. Speed Inference speed tier this request actually ran at. BetaManagedAgentsSpanModelUsage Token usage for a single model request. Builder A builder for BetaManagedAgentsSpanOutcomeEvaluationEndEvent. BetaManagedAgentsSpanOutcomeEvaluationEndEvent Emitted when an outcome evaluation cycle completes. Builder A builder for BetaManagedAgentsSpanOutcomeEvaluationOngoingEvent. BetaManagedAgentsSpanOutcomeEvaluationOngoingEvent Periodic heartbeat emitted while an outcome evaluation cycle is in progress. Builder A builder for BetaManagedAgentsSpanOutcomeEvaluationStartEvent. BetaManagedAgentsSpanOutcomeEvaluationStartEvent Emitted when an outcome evaluation cycle begins. Type BetaManagedAgentsStreamSessionEvents Server-sent event in the session stream. Builder A builder for BetaManagedAgentsSystemMessageEventParams. BetaManagedAgentsSystemMessageEventParams Privileged context for the accompanying turn and all subsequent turns, appended to the session's system context as a role: "system"turn rather than replacing the top-level system prompt.Builder A builder for BetaManagedAgentsTextBlock. BetaManagedAgentsTextBlock Regular text content. Builder A builder for BetaManagedAgentsTextRubric. BetaManagedAgentsTextRubric Rubric content provided inline as text. Builder A builder for BetaManagedAgentsTextRubricParams. BetaManagedAgentsTextRubricParams Rubric content provided inline as text. Builder A builder for BetaManagedAgentsThreadLimitWorkflowRunError. BetaManagedAgentsThreadLimitWorkflowRunError The run exceeded the limit on the number of threads that a run can create. Builder A builder for BetaManagedAgentsTimeoutWorkflowRunError. BetaManagedAgentsTimeoutWorkflowRunError The run reached its time limit. Builder A builder for BetaManagedAgentsToolUseLimitReachedError. Type RetryStatus What the client should do next. BetaManagedAgentsToolUseLimitReachedError The turn stopped because the agent loop reached its limit on tool-use rounds (one model response that calls tools, plus running those tools, is one round), not because a request failed. Builder A builder for BetaManagedAgentsUnknownError. Type RetryStatus What the client should do next. BetaManagedAgentsUnknownError An unknown or unexpected error occurred during session execution. Builder A builder for BetaManagedAgentsUnknownWorkflowRunError. BetaManagedAgentsUnknownWorkflowRunError A failure that has no type of its own. Builder A builder for BetaManagedAgentsUrlDocumentSource. BetaManagedAgentsUrlDocumentSource Document referenced by URL. Builder A builder for BetaManagedAgentsUrlImageSource. BetaManagedAgentsUrlImageSource Image referenced by URL. Builder A builder for BetaManagedAgentsUserCustomToolResultEvent. Type Content Content block in a tool result. BetaManagedAgentsUserCustomToolResultEvent Event sent by the client providing the result of a custom tool execution. Builder A builder for BetaManagedAgentsUserCustomToolResultEventParams. Type Content Content block in a tool result. BetaManagedAgentsUserCustomToolResultEventParams Parameters for providing the result of a custom tool execution. Builder A builder for BetaManagedAgentsUserDefineOutcomeEvent. Type Rubric How to grade the outcome. BetaManagedAgentsUserDefineOutcomeEvent Echo of a user.define_outcomeinput event.Builder A builder for BetaManagedAgentsUserDefineOutcomeEventParams. Type Rubric How to grade the outcome. BetaManagedAgentsUserDefineOutcomeEventParams Parameters for defining an outcome the agent should work toward. Builder A builder for BetaManagedAgentsUserInterruptEvent. BetaManagedAgentsUserInterruptEvent An interrupt event that pauses agent execution and returns control to the user. Builder A builder for BetaManagedAgentsUserInterruptEventParams. BetaManagedAgentsUserInterruptEventParams Parameters for sending an interrupt to pause the agent. Builder A builder for BetaManagedAgentsUserMessageEvent. Type Content Content block in a user message. BetaManagedAgentsUserMessageEvent A user message event in the session conversation. Builder A builder for BetaManagedAgentsUserMessageEventParams. Type Content Content block in a user message. BetaManagedAgentsUserMessageEventParams Parameters for sending a user message to the session. Builder A builder for BetaManagedAgentsUserToolConfirmationEvent. Result The confirmation result: 'allow' or 'deny'. BetaManagedAgentsUserToolConfirmationEvent A tool confirmation event that approves or denies a pending tool execution. Builder A builder for BetaManagedAgentsUserToolConfirmationEventParams. Result The confirmation result: 'allow' or 'deny'. BetaManagedAgentsUserToolConfirmationEventParams Parameters for confirming or denying a tool execution request. Builder A builder for BetaManagedAgentsUserToolResultEventParams. Type Content Content block in a tool result. BetaManagedAgentsUserToolResultEventParams Parameters for providing the result of an agent-toolset tool execution. Builder A builder for BetaManagedAgentsWorkflowRunCreatedEvent. BetaManagedAgentsWorkflowRunCreatedEvent A workflow run was created. Type BetaManagedAgentsWorkflowRunError Why a workflow run did not finish, or was not created. Builder A builder for BetaManagedAgentsWorkflowRunErrorEvent. BetaManagedAgentsWorkflowRunErrorEvent A workflow run met an error, or an error kept a run from being created. Builder A builder for BetaManagedAgentsWorkflowRunPhase. BetaManagedAgentsWorkflowRunPhase A phase that a workflow run's plan declares. Builder A builder for BetaManagedAgentsWorkflowRunPhaseEndedEvent. BetaManagedAgentsWorkflowRunPhaseEndedEvent A workflow run's plan left a phase, or the run's end closed it. Builder A builder for BetaManagedAgentsWorkflowRunPhaseStartedEvent. BetaManagedAgentsWorkflowRunPhaseStartedEvent A workflow run's plan entered a phase. Type BetaManagedAgentsWorkflowRunResult How a workflow run ended. Builder A builder for BetaManagedAgentsWorkflowRunResultCompleted. BetaManagedAgentsWorkflowRunResultCompleted The run's plan, a program that the agent wrote, finished. Builder A builder for BetaManagedAgentsWorkflowRunResultError. BetaManagedAgentsWorkflowRunResultError The run failed or reached its time limit. Builder A builder for BetaManagedAgentsWorkflowRunResultStopped. BetaManagedAgentsWorkflowRunResultStopped The agent stopped the run. Builder A builder for BetaManagedAgentsWorkflowRunStatusEndedEvent. BetaManagedAgentsWorkflowRunStatusEndedEvent A workflow run ended. Builder A builder for BetaManagedAgentsWorkflowRunStatusIdleEvent. BetaManagedAgentsWorkflowRunStatusIdleEvent A workflow run is idle. Builder A builder for BetaManagedAgentsWorkflowRunStatusRunningEvent. BetaManagedAgentsWorkflowRunStatusRunningEvent A workflow run is running. Builder A builder for EventListPage. EventListPage Builder A builder for EventListPageAsync. EventListPageAsync Builder A builder for EventListPageResponse. EventListPageResponse Paginated list of events for a session.Builder A builder for EventListParams. Order Sort direction for results, ordered by the event's processed_at.EventListParams List Events Builder A builder for EventSendParams. Builder A builder for Body. Body Request parameters for sending events to a session.EventSendParams Send Events Builder A builder for EventStreamParams. EventStreamParams Stream Events