Class BetaManagedAgentsSessionUsageSnapshot.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionUsageSnapshot.BuilderA builder for BetaManagedAgentsSessionUsageSnapshot.
-
-
Method Summary
-
-
Method Detail
-
activeSeconds
final BetaManagedAgentsSessionUsageSnapshot.Builder activeSeconds(Double activeSeconds)
Cumulative time in seconds during which the session had at least one thread in running status. Overlapping activity from concurrent threads is counted once. This is the duration the session's runtime cost is priced on.
-
activeSeconds
final BetaManagedAgentsSessionUsageSnapshot.Builder activeSeconds(JsonField<Double> activeSeconds)
Sets Builder.activeSeconds to an arbitrary JSON value.
You should usually call Builder.activeSeconds with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheCreation
final BetaManagedAgentsSessionUsageSnapshot.Builder cacheCreation(BetaManagedAgentsCacheCreationUsage cacheCreation)
Tokens used to create prompt cache entries, broken down by cache TTL.
-
cacheCreation
final BetaManagedAgentsSessionUsageSnapshot.Builder cacheCreation(JsonField<BetaManagedAgentsCacheCreationUsage> cacheCreation)
Sets Builder.cacheCreation to an arbitrary JSON value.
You should usually call Builder.cacheCreation with a well-typed BetaManagedAgentsCacheCreationUsage value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheReadInputTokens
final BetaManagedAgentsSessionUsageSnapshot.Builder cacheReadInputTokens(Integer cacheReadInputTokens)
Total tokens read from prompt cache.
-
cacheReadInputTokens
final BetaManagedAgentsSessionUsageSnapshot.Builder cacheReadInputTokens(JsonField<Integer> cacheReadInputTokens)
Sets Builder.cacheReadInputTokens to an arbitrary JSON value.
You should usually call Builder.cacheReadInputTokens with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputTokens
final BetaManagedAgentsSessionUsageSnapshot.Builder inputTokens(Integer inputTokens)
Total input tokens consumed across all turns.
-
inputTokens
final BetaManagedAgentsSessionUsageSnapshot.Builder inputTokens(JsonField<Integer> inputTokens)
Sets Builder.inputTokens to an arbitrary JSON value.
You should usually call Builder.inputTokens with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
listCost
final BetaManagedAgentsSessionUsageSnapshot.Builder listCost(BetaMonetaryAmount listCost)
Cumulative list cost of the session across all turns, priced at public list rates.
-
listCost
final BetaManagedAgentsSessionUsageSnapshot.Builder listCost(JsonField<BetaMonetaryAmount> listCost)
Sets Builder.listCost to an arbitrary JSON value.
You should usually call Builder.listCost with a well-typed BetaMonetaryAmount value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputTokens
final BetaManagedAgentsSessionUsageSnapshot.Builder outputTokens(Integer outputTokens)
Total output tokens generated across all turns.
-
outputTokens
final BetaManagedAgentsSessionUsageSnapshot.Builder outputTokens(JsonField<Integer> outputTokens)
Sets Builder.outputTokens to an arbitrary JSON value.
You should usually call Builder.outputTokens with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
serverToolUse
final BetaManagedAgentsSessionUsageSnapshot.Builder serverToolUse(BetaManagedAgentsServerToolUsage serverToolUse)
Cumulative server-executed tool usage across all turns.
-
serverToolUse
final BetaManagedAgentsSessionUsageSnapshot.Builder serverToolUse(JsonField<BetaManagedAgentsServerToolUsage> serverToolUse)
Sets Builder.serverToolUse to an arbitrary JSON value.
You should usually call Builder.serverToolUse with a well-typed BetaManagedAgentsServerToolUsage value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsSessionUsageSnapshot.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsSessionUsageSnapshot.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSessionUsageSnapshot.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSessionUsageSnapshot.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSessionUsageSnapshot.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSessionUsageSnapshot build()
Returns an immutable instance of BetaManagedAgentsSessionUsageSnapshot.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-