Class BetaManagedAgentsSessionThread.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionThread.BuilderA builder for BetaManagedAgentsSessionThread.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsSessionThread.Builder id(String id)
Unique identifier for this thread.
-
id
final BetaManagedAgentsSessionThread.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.
-
agent
final BetaManagedAgentsSessionThread.Builder agent(BetaManagedAgentsSessionThreadAgent agent)
Resolved
agentdefinition for a singlesession_thread. Snapshot of the agent at thread creation time. The multiagent roster is not repeated here; read it fromSession.agent.
-
agent
final BetaManagedAgentsSessionThread.Builder agent(JsonField<BetaManagedAgentsSessionThreadAgent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed BetaManagedAgentsSessionThreadAgent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedAt
final BetaManagedAgentsSessionThread.Builder archivedAt(OffsetDateTime archivedAt)
A timestamp in RFC 3339 format
-
archivedAt
final BetaManagedAgentsSessionThread.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaManagedAgentsSessionThread.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaManagedAgentsSessionThread.Builder createdAt(OffsetDateTime createdAt)
A timestamp in RFC 3339 format
-
createdAt
final BetaManagedAgentsSessionThread.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
parentThreadId
final BetaManagedAgentsSessionThread.Builder parentThreadId(String parentThreadId)
Parent thread that spawned this thread. Null for the primary thread.
-
parentThreadId
final BetaManagedAgentsSessionThread.Builder parentThreadId(Optional<String> parentThreadId)
Alias for calling Builder.parentThreadId with
parentThreadId.orElse(null).
-
parentThreadId
final BetaManagedAgentsSessionThread.Builder parentThreadId(JsonField<String> parentThreadId)
Sets Builder.parentThreadId to an arbitrary JSON value.
You should usually call Builder.parentThreadId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
sessionId
final BetaManagedAgentsSessionThread.Builder sessionId(String sessionId)
The session this thread belongs to.
-
sessionId
final BetaManagedAgentsSessionThread.Builder sessionId(JsonField<String> sessionId)
Sets Builder.sessionId to an arbitrary JSON value.
You should usually call Builder.sessionId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
stats
final BetaManagedAgentsSessionThread.Builder stats(BetaManagedAgentsSessionThreadStats stats)
Timing statistics for a session thread.
-
stats
final BetaManagedAgentsSessionThread.Builder stats(Optional<BetaManagedAgentsSessionThreadStats> stats)
Alias for calling Builder.stats with
stats.orElse(null).
-
stats
final BetaManagedAgentsSessionThread.Builder stats(JsonField<BetaManagedAgentsSessionThreadStats> stats)
Sets Builder.stats to an arbitrary JSON value.
You should usually call Builder.stats with a well-typed BetaManagedAgentsSessionThreadStats value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final BetaManagedAgentsSessionThread.Builder status(BetaManagedAgentsSessionThreadStatus status)
SessionThreadStatus enum
-
status
final BetaManagedAgentsSessionThread.Builder status(JsonField<BetaManagedAgentsSessionThreadStatus> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed BetaManagedAgentsSessionThreadStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsSessionThread.Builder type(JsonField<BetaManagedAgentsSessionThread.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.
-
updatedAt
final BetaManagedAgentsSessionThread.Builder updatedAt(OffsetDateTime updatedAt)
A timestamp in RFC 3339 format
-
updatedAt
final BetaManagedAgentsSessionThread.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
usage
final BetaManagedAgentsSessionThread.Builder usage(BetaManagedAgentsSessionThreadUsage usage)
Cumulative token usage for a session thread across all turns.
-
usage
final BetaManagedAgentsSessionThread.Builder usage(Optional<BetaManagedAgentsSessionThreadUsage> usage)
Alias for calling Builder.usage with
usage.orElse(null).
-
usage
final BetaManagedAgentsSessionThread.Builder usage(JsonField<BetaManagedAgentsSessionThreadUsage> usage)
Sets Builder.usage to an arbitrary JSON value.
You should usually call Builder.usage with a well-typed BetaManagedAgentsSessionThreadUsage value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsSessionThread.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsSessionThread.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSessionThread.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSessionThread.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSessionThread.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSessionThread build()
Returns an immutable instance of BetaManagedAgentsSessionThread.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .agent() .archivedAt() .createdAt() .parentThreadId() .sessionId() .stats() .status() .type() .updatedAt() .usage()
-
-
-
-