Class BetaResponseOutputItem.ProgramOutput
-
- All Implemented Interfaces:
public final class BetaResponseOutputItem.ProgramOutput
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseOutputItem.ProgramOutput.BuilderA builder for ProgramOutput.
public final classBetaResponseOutputItem.ProgramOutput.StatusThe terminal status of the program output item.
public final classBetaResponseOutputItem.ProgramOutput.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the program output item. final StringcallId()The call ID of the program item. final Stringresult()The result produced by the program item. final BetaResponseOutputItem.ProgramOutput.Statusstatus()The terminal status of the program output item. final JsonValue_type()The type of the item. final Optional<BetaResponseOutputItem.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<BetaResponseOutputItem.ProgramOutput.Status>_status()Returns the raw JSON value of status. final JsonField<BetaResponseOutputItem.ProgramOutput.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseOutputItem.ProgramOutput.BuildertoBuilder()final BetaResponseOutputItem.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 BetaResponseOutputItem.ProgramOutput.Builderbuilder()Returns a mutable builder for constructing an instance of ProgramOutput. -
-
Method Detail
-
status
final BetaResponseOutputItem.ProgramOutput.Status status()
The terminal status of the program output item.
-
_type
final JsonValue _type()
The type of the item. 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<BetaResponseOutputItem.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<BetaResponseOutputItem.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<BetaResponseOutputItem.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 BetaResponseOutputItem.ProgramOutput.Builder toBuilder()
-
validate
final BetaResponseOutputItem.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 BetaResponseOutputItem.ProgramOutput.Builder builder()
Returns a mutable builder for constructing an instance of ProgramOutput.
The following fields are required:
.id() .callId() .result() .status()
-
-
-
-