Class ConversationItem.Program
-
- All Implemented Interfaces:
public final class ConversationItem.Program
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classConversationItem.Program.BuilderA builder for Program.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the program item. final StringcallId()The stable call ID of the program item. final Stringcode()The JavaScript source executed by programmatic tool calling. final Stringfingerprint()Opaque program replay fingerprint that must be round-tripped. final JsonValue_type()The type of the 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>_code()Returns the raw JSON value of code. final JsonField<String>_fingerprint()Returns the raw JSON value of fingerprint. final Map<String, JsonValue>_additionalProperties()final ConversationItem.Program.BuildertoBuilder()final ConversationItem.Programvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ConversationItem.Program.Builderbuilder()Returns a mutable builder for constructing an instance of Program. -
-
Method Detail
-
fingerprint
final String fingerprint()
Opaque program replay fingerprint that must be round-tripped.
-
_type
final JsonValue _type()
The type of the item. Always
program.Expected to always return the following:
JsonValue.from("program")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_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.
-
_code
final JsonField<String> _code()
Returns the raw JSON value of code.
Unlike code, this method doesn't throw if the JSON field has an unexpected type.
-
_fingerprint
final JsonField<String> _fingerprint()
Returns the raw JSON value of fingerprint.
Unlike fingerprint, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ConversationItem.Program.Builder toBuilder()
-
validate
final ConversationItem.Program 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 ConversationItem.Program.Builder builder()
Returns a mutable builder for constructing an instance of Program.
The following fields are required:
.id() .callId() .code() .fingerprint()
-
-
-
-