Package com.openai.models.beta.responses
Class BetaResponseInputItem.CompactionTrigger
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.CompactionTriggerCompacts the current context. Must be the final input item.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.CompactionTrigger.BuilderA builder for CompactionTrigger.
public final classBetaResponseInputItem.CompactionTrigger.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()The type of the item. final Optional<BetaResponseInputItem.CompactionTrigger.Agent>agent()The agent that produced this item. final JsonField<BetaResponseInputItem.CompactionTrigger.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.CompactionTrigger.BuildertoBuilder()final BetaResponseInputItem.CompactionTriggervalidate()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.CompactionTrigger.Builderbuilder()Returns a mutable builder for constructing an instance of CompactionTrigger. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the item. Always
compaction_trigger.Expected to always return the following:
JsonValue.from("compaction_trigger")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseInputItem.CompactionTrigger.Agent> agent()
The agent that produced this item.
-
_agent
final JsonField<BetaResponseInputItem.CompactionTrigger.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.CompactionTrigger.Builder toBuilder()
-
validate
final BetaResponseInputItem.CompactionTrigger 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.CompactionTrigger.Builder builder()
Returns a mutable builder for constructing an instance of CompactionTrigger.
-
-
-
-