Class BetaResponseItem.MultiAgentCall
-
- All Implemented Interfaces:
public final class BetaResponseItem.MultiAgentCall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseItem.MultiAgentCall.BuilderA builder for MultiAgentCall.
public final classBetaResponseItem.MultiAgentCall.ActionThe multi-agent action to execute.
public final classBetaResponseItem.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 BetaResponseItem.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<BetaResponseItem.MultiAgentCall.Agent>agent()The agent that produced this item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseItem.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<BetaResponseItem.MultiAgentCall.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseItem.MultiAgentCall.BuildertoBuilder()final BetaResponseItem.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 BetaResponseItem.MultiAgentCall.Builderbuilder()Returns a mutable builder for constructing an instance of MultiAgentCall. -
-
Method Detail
-
action
final BetaResponseItem.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<BetaResponseItem.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<BetaResponseItem.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<BetaResponseItem.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 BetaResponseItem.MultiAgentCall.Builder toBuilder()
-
validate
final BetaResponseItem.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 BetaResponseItem.MultiAgentCall.Builder builder()
Returns a mutable builder for constructing an instance of MultiAgentCall.
The following fields are required:
.id() .action() .arguments() .callId()
-
-
-
-