Class BetaManagedAgentsSpanModelRequestEndEvent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSpanModelRequestEndEvent.BuilderA builder for BetaManagedAgentsSpanModelRequestEndEvent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsSpanModelRequestEndEvent.Builder id(String id)
Unique identifier for this event.
-
id
final BetaManagedAgentsSpanModelRequestEndEvent.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
isError
final BetaManagedAgentsSpanModelRequestEndEvent.Builder isError(Boolean isError)
Whether the model request resulted in an error.
-
isError
final BetaManagedAgentsSpanModelRequestEndEvent.Builder isError(Boolean isError)
Alias for Builder.isError.
This unboxed primitive overload exists for backwards compatibility.
-
isError
final BetaManagedAgentsSpanModelRequestEndEvent.Builder isError(Optional<Boolean> isError)
Alias for calling Builder.isError with
isError.orElse(null).
-
isError
final BetaManagedAgentsSpanModelRequestEndEvent.Builder isError(JsonField<Boolean> isError)
Sets Builder.isError to an arbitrary JSON value.
You should usually call Builder.isError with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
modelRequestStartId
final BetaManagedAgentsSpanModelRequestEndEvent.Builder modelRequestStartId(String modelRequestStartId)
The id of the corresponding
span.model_request_startevent.
-
modelRequestStartId
final BetaManagedAgentsSpanModelRequestEndEvent.Builder modelRequestStartId(JsonField<String> modelRequestStartId)
Sets Builder.modelRequestStartId to an arbitrary JSON value.
You should usually call Builder.modelRequestStartId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
modelUsage
final BetaManagedAgentsSpanModelRequestEndEvent.Builder modelUsage(BetaManagedAgentsSpanModelUsage modelUsage)
Token usage for a single model request.
-
modelUsage
final BetaManagedAgentsSpanModelRequestEndEvent.Builder modelUsage(JsonField<BetaManagedAgentsSpanModelUsage> modelUsage)
Sets Builder.modelUsage to an arbitrary JSON value.
You should usually call Builder.modelUsage with a well-typed BetaManagedAgentsSpanModelUsage value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
processedAt
final BetaManagedAgentsSpanModelRequestEndEvent.Builder processedAt(OffsetDateTime processedAt)
A timestamp in RFC 3339 format
-
processedAt
final BetaManagedAgentsSpanModelRequestEndEvent.Builder processedAt(JsonField<OffsetDateTime> processedAt)
Sets Builder.processedAt to an arbitrary JSON value.
You should usually call Builder.processedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsSpanModelRequestEndEvent.Builder type(BetaManagedAgentsSpanModelRequestEndEvent.Type type)
-
type
final BetaManagedAgentsSpanModelRequestEndEvent.Builder type(JsonField<BetaManagedAgentsSpanModelRequestEndEvent.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsSpanModelRequestEndEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsSpanModelRequestEndEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSpanModelRequestEndEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSpanModelRequestEndEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSpanModelRequestEndEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSpanModelRequestEndEvent build()
Returns an immutable instance of BetaManagedAgentsSpanModelRequestEndEvent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .isError() .modelRequestStartId() .modelUsage() .processedAt() .type()
-
-
-
-