Class BetaManagedAgentsSpanModelRequestEndEvent
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSpanModelRequestEndEventEmitted when a model request completes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSpanModelRequestEndEvent.BuilderA builder for BetaManagedAgentsSpanModelRequestEndEvent.
-
Method Summary
Modifier and Type Method Description final Stringid()Unique identifier for this event. final Optional<Boolean>isError()Whether the model request resulted in an error. final StringmodelRequestStartId()The id of the corresponding span.model_request_startevent.final BetaManagedAgentsSpanModelUsagemodelUsage()Token usage for this model request. final OffsetDateTimeprocessedAt()Timestamp when the model request completed. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("span.model_request_end")final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<Boolean>_isError()Returns the raw JSON value of isError. final JsonField<String>_modelRequestStartId()Returns the raw JSON value of modelRequestStartId. final JsonField<BetaManagedAgentsSpanModelUsage>_modelUsage()Returns the raw JSON value of modelUsage. final JsonField<OffsetDateTime>_processedAt()Returns the raw JSON value of processedAt. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSpanModelRequestEndEvent.BuildertoBuilder()final BetaManagedAgentsSpanModelRequestEndEventvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSpanModelRequestEndEvent.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSpanModelRequestEndEvent. -
-
Method Detail
-
modelRequestStartId
final String modelRequestStartId()
The id of the corresponding
span.model_request_startevent.
-
modelUsage
final BetaManagedAgentsSpanModelUsage modelUsage()
Token usage for this model request.
-
processedAt
final OffsetDateTime processedAt()
Timestamp when the model request completed.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("span.model_request_end")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.
-
_isError
final JsonField<Boolean> _isError()
Returns the raw JSON value of isError.
Unlike isError, this method doesn't throw if the JSON field has an unexpected type.
-
_modelRequestStartId
final JsonField<String> _modelRequestStartId()
Returns the raw JSON value of modelRequestStartId.
Unlike modelRequestStartId, this method doesn't throw if the JSON field has an unexpected type.
-
_modelUsage
final JsonField<BetaManagedAgentsSpanModelUsage> _modelUsage()
Returns the raw JSON value of modelUsage.
Unlike modelUsage, this method doesn't throw if the JSON field has an unexpected type.
-
_processedAt
final JsonField<OffsetDateTime> _processedAt()
Returns the raw JSON value of processedAt.
Unlike processedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsSpanModelRequestEndEvent.Builder toBuilder()
-
validate
final BetaManagedAgentsSpanModelRequestEndEvent 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 BetaManagedAgentsSpanModelRequestEndEvent.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSpanModelRequestEndEvent.
The following fields are required:
.id() .isError() .modelRequestStartId() .modelUsage() .processedAt()
-
-
-
-