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.
public final classBetaManagedAgentsSpanModelRequestEndEvent.Type
-
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 a single model request. final OffsetDateTimeprocessedAt()A timestamp in RFC 3339 format final BetaManagedAgentsSpanModelRequestEndEvent.Typetype()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 JsonField<BetaManagedAgentsSpanModelRequestEndEvent.Type>_type()Returns the raw JSON value of type. 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 a single model request.
-
processedAt
final OffsetDateTime processedAt()
A timestamp in RFC 3339 format
-
type
final BetaManagedAgentsSpanModelRequestEndEvent.Type type()
-
_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.
-
_type
final JsonField<BetaManagedAgentsSpanModelRequestEndEvent.Type> _type()
Returns the raw JSON value of type.
Unlike type, 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() .type()
-
-
-
-