Interface BetaManagedAgentsSendSessionEvents.Data.Visitor
-
- All Implemented Interfaces:
public interface BetaManagedAgentsSendSessionEvents.Data.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract TvisitUserMessage(BetaManagedAgentsUserMessageEvent userMessage)A user message event in the session conversation. abstract TvisitUserInterrupt(BetaManagedAgentsUserInterruptEvent userInterrupt)An interrupt event that pauses agent execution and returns control to the user. abstract TvisitUserToolConfirmation(BetaManagedAgentsUserToolConfirmationEvent userToolConfirmation)A tool confirmation event that approves or denies a pending tool execution. abstract TvisitUserCustomToolResult(BetaManagedAgentsUserCustomToolResultEvent userCustomToolResult)Event sent by the client providing the result of a custom tool execution. abstract TvisitUserDefineOutcome(BetaManagedAgentsUserDefineOutcomeEvent userDefineOutcome)Echo of a user.define_outcomeinput event.abstract TvisitUserToolResult(BetaManagedAgentsUserToolResultEvent userToolResult)Event sent by the client providing the result of an agent-toolset tool execution. abstract TvisitSystemMessage(BetaManagedAgentsSystemMessageEvent systemMessage)A mid-conversation system message event. Tunknown(JsonValue json)Maps an unknown variant of Data to a value of type T. -
-
Method Detail
-
visitUserMessage
abstract T visitUserMessage(BetaManagedAgentsUserMessageEvent userMessage)
A user message event in the session conversation.
-
visitUserInterrupt
abstract T visitUserInterrupt(BetaManagedAgentsUserInterruptEvent userInterrupt)
An interrupt event that pauses agent execution and returns control to the user.
-
visitUserToolConfirmation
abstract T visitUserToolConfirmation(BetaManagedAgentsUserToolConfirmationEvent userToolConfirmation)
A tool confirmation event that approves or denies a pending tool execution.
-
visitUserCustomToolResult
abstract T visitUserCustomToolResult(BetaManagedAgentsUserCustomToolResultEvent userCustomToolResult)
Event sent by the client providing the result of a custom tool execution.
-
visitUserDefineOutcome
abstract T visitUserDefineOutcome(BetaManagedAgentsUserDefineOutcomeEvent userDefineOutcome)
Echo of a
user.define_outcomeinput event. Carries the server-generatedoutcome_idthat subsequentspan.outcome_evaluation_*events reference.
-
visitUserToolResult
abstract T visitUserToolResult(BetaManagedAgentsUserToolResultEvent userToolResult)
Event sent by the client providing the result of an agent-toolset tool execution. Only valid on
self_hostedenvironments, where sandbox-routed tools are executed by the client rather than the server.
-
visitSystemMessage
abstract T visitSystemMessage(BetaManagedAgentsSystemMessageEvent systemMessage)
A mid-conversation system message event. Carries system-role content that is appended to the session as a
role: "system"turn.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Data to a value of type T.
An instance of Data can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-