Class BetaResponseInputItem.ProgramOutput
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.ProgramOutput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.ProgramOutput.BuilderA builder for ProgramOutput.
public final classBetaResponseInputItem.ProgramOutput.StatusThe terminal status of the program output.
public final classBetaResponseInputItem.ProgramOutput.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of this program output item. final StringcallId()The call ID of the program item. final Stringresult()The result produced by the program item. final BetaResponseInputItem.ProgramOutput.Statusstatus()The terminal status of the program output. final JsonValue_type()The item type. final Optional<BetaResponseInputItem.ProgramOutput.Agent>agent()The agent that produced this item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<String>_result()Returns the raw JSON value of result. final JsonField<BetaResponseInputItem.ProgramOutput.Status>_status()Returns the raw JSON value of status. final JsonField<BetaResponseInputItem.ProgramOutput.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.ProgramOutput.BuildertoBuilder()final BetaResponseInputItem.ProgramOutputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseInputItem.ProgramOutput.Builderbuilder()Returns a mutable builder for constructing an instance of ProgramOutput. -
-
Method Detail
-
status
final BetaResponseInputItem.ProgramOutput.Status status()
The terminal status of the program output.
-
_type
final JsonValue _type()
The item type. Always
program_output.Expected to always return the following:
JsonValue.from("program_output")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseInputItem.ProgramOutput.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.
-
_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.
-
_result
final JsonField<String> _result()
Returns the raw JSON value of result.
Unlike result, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BetaResponseInputItem.ProgramOutput.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseInputItem.ProgramOutput.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 BetaResponseInputItem.ProgramOutput.Builder toBuilder()
-
validate
final BetaResponseInputItem.ProgramOutput 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 BetaResponseInputItem.ProgramOutput.Builder builder()
Returns a mutable builder for constructing an instance of ProgramOutput.
The following fields are required:
.id() .callId() .result() .status()
-
-
-
-