Class BetaResponseOutputItem.MultiAgentCall
-
- All Implemented Interfaces:
public final class BetaResponseOutputItem.MultiAgentCall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseOutputItem.MultiAgentCall.BuilderA builder for MultiAgentCall.
public final classBetaResponseOutputItem.MultiAgentCall.ActionThe multi-agent action to execute.
public final classBetaResponseOutputItem.MultiAgentCall.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the multi-agent call item. final BetaResponseOutputItem.MultiAgentCall.Actionaction()The multi-agent action to execute. final Stringarguments()The JSON string of arguments generated for the action. final StringcallId()The unique ID linking this call to its output. final JsonValue_type()The type of the multi-agent call. final Optional<BetaResponseOutputItem.MultiAgentCall.Agent>agent()The agent that produced this item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseOutputItem.MultiAgentCall.Action>_action()Returns the raw JSON value of action. final JsonField<String>_arguments()Returns the raw JSON value of arguments. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<BetaResponseOutputItem.MultiAgentCall.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseOutputItem.MultiAgentCall.BuildertoBuilder()final BetaResponseOutputItem.MultiAgentCallvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseOutputItem.MultiAgentCall.Builderbuilder()Returns a mutable builder for constructing an instance of MultiAgentCall. -
-
Method Detail
-
action
final BetaResponseOutputItem.MultiAgentCall.Action action()
The multi-agent action to execute.
-
_type
final JsonValue _type()
The type of the multi-agent call. Always
multi_agent_call.Expected to always return the following:
JsonValue.from("multi_agent_call")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseOutputItem.MultiAgentCall.Agent> agent()
The agent that produced this item.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_action
final JsonField<BetaResponseOutputItem.MultiAgentCall.Action> _action()
Returns the raw JSON value of action.
Unlike action, this method doesn't throw if the JSON field has an unexpected type.
-
_arguments
final JsonField<String> _arguments()
Returns the raw JSON value of arguments.
Unlike arguments, this method doesn't throw if the JSON field has an unexpected type.
-
_callId
final JsonField<String> _callId()
Returns the raw JSON value of callId.
Unlike callId, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseOutputItem.MultiAgentCall.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseOutputItem.MultiAgentCall.Builder toBuilder()
-
validate
final BetaResponseOutputItem.MultiAgentCall validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaResponseOutputItem.MultiAgentCall.Builder builder()
Returns a mutable builder for constructing an instance of MultiAgentCall.
The following fields are required:
.id() .action() .arguments() .callId()
-
-
-
-