Class BetaManagedAgentsSession.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSession.BuilderA builder for BetaManagedAgentsSession.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsSession.Builder id(String id)
-
id
final BetaManagedAgentsSession.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 BetaManagedAgentsSession.Builder agent(BetaManagedAgentsSessionAgent agent)
Resolved
agentdefinition for asession. Snapshot of theagentatsessioncreation time.
-
agent
final BetaManagedAgentsSession.Builder agent(JsonField<BetaManagedAgentsSessionAgent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed BetaManagedAgentsSessionAgent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
archivedAt
final BetaManagedAgentsSession.Builder archivedAt(OffsetDateTime archivedAt)
A timestamp in RFC 3339 format
-
archivedAt
final BetaManagedAgentsSession.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaManagedAgentsSession.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 BetaManagedAgentsSession.Builder createdAt(OffsetDateTime createdAt)
A timestamp in RFC 3339 format
-
createdAt
final BetaManagedAgentsSession.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.
-
environmentId
final BetaManagedAgentsSession.Builder environmentId(String environmentId)
-
environmentId
final BetaManagedAgentsSession.Builder environmentId(JsonField<String> environmentId)
Sets Builder.environmentId to an arbitrary JSON value.
You should usually call Builder.environmentId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
metadata
final BetaManagedAgentsSession.Builder metadata(BetaManagedAgentsSession.Metadata metadata)
-
metadata
final BetaManagedAgentsSession.Builder metadata(JsonField<BetaManagedAgentsSession.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outcomeEvaluations
final BetaManagedAgentsSession.Builder outcomeEvaluations(List<BetaManagedAgentsOutcomeEvaluationResource> outcomeEvaluations)
Per-outcome evaluation state. One entry per define_outcome event sent to the session.
-
outcomeEvaluations
final BetaManagedAgentsSession.Builder outcomeEvaluations(JsonField<List<BetaManagedAgentsOutcomeEvaluationResource>> outcomeEvaluations)
Sets Builder.outcomeEvaluations to an arbitrary JSON value.
You should usually call Builder.outcomeEvaluations with a well-typed
List<BetaManagedAgentsOutcomeEvaluationResource>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addOutcomeEvaluation
final BetaManagedAgentsSession.Builder addOutcomeEvaluation(BetaManagedAgentsOutcomeEvaluationResource outcomeEvaluation)
Adds a single BetaManagedAgentsOutcomeEvaluationResource to outcomeEvaluations.
-
resources
final BetaManagedAgentsSession.Builder resources(List<BetaManagedAgentsSessionResource> resources)
-
resources
final BetaManagedAgentsSession.Builder resources(JsonField<List<BetaManagedAgentsSessionResource>> resources)
Sets Builder.resources to an arbitrary JSON value.
You should usually call Builder.resources with a well-typed
List<BetaManagedAgentsSessionResource>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addResource
final BetaManagedAgentsSession.Builder addResource(BetaManagedAgentsSessionResource resource)
Adds a single BetaManagedAgentsSessionResource to resources.
-
addResource
final BetaManagedAgentsSession.Builder addResource(BetaManagedAgentsGitHubRepositoryResource githubRepository)
Alias for calling addResource with
BetaManagedAgentsSessionResource.ofGitHubRepository(githubRepository).
-
addResource
final BetaManagedAgentsSession.Builder addResource(BetaManagedAgentsFileResource file)
Alias for calling addResource with
BetaManagedAgentsSessionResource.ofFile(file).
-
addResource
final BetaManagedAgentsSession.Builder addResource(BetaManagedAgentsMemoryStoreResource memoryStore)
Alias for calling addResource with
BetaManagedAgentsSessionResource.ofMemoryStore(memoryStore).
-
addMemoryStoreResource
final BetaManagedAgentsSession.Builder addMemoryStoreResource(String memoryStoreId)
Alias for calling addResource with the following:
BetaManagedAgentsMemoryStoreResource.builder() .type(BetaManagedAgentsMemoryStoreResource.Type.MEMORY_STORE) .memoryStoreId(memoryStoreId) .build()
-
stats
final BetaManagedAgentsSession.Builder stats(BetaManagedAgentsSessionStats stats)
Timing statistics for a session.
-
stats
final BetaManagedAgentsSession.Builder stats(JsonField<BetaManagedAgentsSessionStats> stats)
Sets Builder.stats to an arbitrary JSON value.
You should usually call Builder.stats with a well-typed BetaManagedAgentsSessionStats value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final BetaManagedAgentsSession.Builder status(BetaManagedAgentsSession.Status status)
SessionStatus enum
-
status
final BetaManagedAgentsSession.Builder status(JsonField<BetaManagedAgentsSession.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
title
final BetaManagedAgentsSession.Builder title(String title)
-
title
final BetaManagedAgentsSession.Builder title(Optional<String> title)
Alias for calling Builder.title with
title.orElse(null).
-
title
final BetaManagedAgentsSession.Builder title(JsonField<String> title)
Sets Builder.title to an arbitrary JSON value.
You should usually call Builder.title with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsSession.Builder type(BetaManagedAgentsSession.Type type)
-
type
final BetaManagedAgentsSession.Builder type(JsonField<BetaManagedAgentsSession.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 BetaManagedAgentsSession.Builder updatedAt(OffsetDateTime updatedAt)
A timestamp in RFC 3339 format
-
updatedAt
final BetaManagedAgentsSession.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 BetaManagedAgentsSession.Builder usage(BetaManagedAgentsSessionUsage usage)
Cumulative token usage for a session across all turns.
-
usage
final BetaManagedAgentsSession.Builder usage(JsonField<BetaManagedAgentsSessionUsage> usage)
Sets Builder.usage to an arbitrary JSON value.
You should usually call Builder.usage with a well-typed BetaManagedAgentsSessionUsage value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
vaultIds
final BetaManagedAgentsSession.Builder vaultIds(List<String> vaultIds)
Vault IDs attached to the session at creation. Empty when no vaults were supplied.
-
vaultIds
final BetaManagedAgentsSession.Builder vaultIds(JsonField<List<String>> vaultIds)
Sets Builder.vaultIds to an arbitrary JSON value.
You should usually call Builder.vaultIds with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addVaultId
final BetaManagedAgentsSession.Builder addVaultId(String vaultId)
-
deploymentId
final BetaManagedAgentsSession.Builder deploymentId(String deploymentId)
Deployment ID when the session was created from a deployment reference. Null otherwise.
-
deploymentId
final BetaManagedAgentsSession.Builder deploymentId(Optional<String> deploymentId)
Alias for calling Builder.deploymentId with
deploymentId.orElse(null).
-
deploymentId
final BetaManagedAgentsSession.Builder deploymentId(JsonField<String> deploymentId)
Sets Builder.deploymentId to an arbitrary JSON value.
You should usually call Builder.deploymentId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsSession.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsSession.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSession.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSession.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSession.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSession build()
Returns an immutable instance of BetaManagedAgentsSession.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .agent() .archivedAt() .createdAt() .environmentId() .metadata() .outcomeEvaluations() .resources() .stats() .status() .title() .type() .updatedAt() .usage() .vaultIds()
-
-
-
-