Class BetaManagedAgentsSession
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionA Managed Agents
session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSession.BuilderA builder for BetaManagedAgentsSession.
public final classBetaManagedAgentsSession.Metadatapublic final classBetaManagedAgentsSession.StatusSessionStatus enum
public final classBetaManagedAgentsSession.Type
-
Method Summary
Modifier and Type Method Description final Stringid()final BetaManagedAgentsSessionAgentagent()Resolved agentdefinition for asession.final Optional<OffsetDateTime>archivedAt()A timestamp in RFC 3339 format final OffsetDateTimecreatedAt()A timestamp in RFC 3339 format final StringenvironmentId()final BetaManagedAgentsSession.Metadatametadata()final List<BetaManagedAgentsOutcomeEvaluationResource>outcomeEvaluations()Per-outcome evaluation state. final List<BetaManagedAgentsSessionResource>resources()final BetaManagedAgentsSessionStatsstats()Timing statistics for a session. final BetaManagedAgentsSession.Statusstatus()SessionStatus enum final Optional<String>title()final BetaManagedAgentsSession.Typetype()final OffsetDateTimeupdatedAt()A timestamp in RFC 3339 format final BetaManagedAgentsSessionUsageusage()Cumulative token usage for a session across all turns. final List<String>vaultIds()Vault IDs attached to the session at creation. final Optional<String>deploymentId()Deployment ID when the session was created from a deployment reference. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaManagedAgentsSessionAgent>_agent()Returns the raw JSON value of agent. final JsonField<OffsetDateTime>_archivedAt()Returns the raw JSON value of archivedAt. final JsonField<OffsetDateTime>_createdAt()Returns the raw JSON value of createdAt. final JsonField<String>_environmentId()Returns the raw JSON value of environmentId. final JsonField<BetaManagedAgentsSession.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<List<BetaManagedAgentsOutcomeEvaluationResource>>_outcomeEvaluations()Returns the raw JSON value of outcomeEvaluations. final JsonField<List<BetaManagedAgentsSessionResource>>_resources()Returns the raw JSON value of resources. final JsonField<BetaManagedAgentsSessionStats>_stats()Returns the raw JSON value of stats. final JsonField<BetaManagedAgentsSession.Status>_status()Returns the raw JSON value of status. final JsonField<String>_title()Returns the raw JSON value of title. final JsonField<BetaManagedAgentsSession.Type>_type()Returns the raw JSON value of type. final JsonField<OffsetDateTime>_updatedAt()Returns the raw JSON value of updatedAt. final JsonField<BetaManagedAgentsSessionUsage>_usage()Returns the raw JSON value of usage. final JsonField<List<String>>_vaultIds()Returns the raw JSON value of vaultIds. final JsonField<String>_deploymentId()Returns the raw JSON value of deploymentId. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSession.BuildertoBuilder()final BetaManagedAgentsSessionvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSession.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSession. -
-
Method Detail
-
agent
final BetaManagedAgentsSessionAgent agent()
Resolved
agentdefinition for asession. Snapshot of theagentatsessioncreation time.
-
archivedAt
final Optional<OffsetDateTime> archivedAt()
A timestamp in RFC 3339 format
-
createdAt
final OffsetDateTime createdAt()
A timestamp in RFC 3339 format
-
environmentId
final String environmentId()
-
metadata
final BetaManagedAgentsSession.Metadata metadata()
-
outcomeEvaluations
final List<BetaManagedAgentsOutcomeEvaluationResource> outcomeEvaluations()
Per-outcome evaluation state. One entry per define_outcome event sent to the session.
-
resources
final List<BetaManagedAgentsSessionResource> resources()
-
stats
final BetaManagedAgentsSessionStats stats()
Timing statistics for a session.
-
status
final BetaManagedAgentsSession.Status status()
SessionStatus enum
-
type
final BetaManagedAgentsSession.Type type()
-
updatedAt
final OffsetDateTime updatedAt()
A timestamp in RFC 3339 format
-
usage
final BetaManagedAgentsSessionUsage usage()
Cumulative token usage for a session across all turns.
-
vaultIds
final List<String> vaultIds()
Vault IDs attached to the session at creation. Empty when no vaults were supplied.
-
deploymentId
final Optional<String> deploymentId()
Deployment ID when the session was created from a deployment reference. Null otherwise.
-
_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.
-
_agent
final JsonField<BetaManagedAgentsSessionAgent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_archivedAt
final JsonField<OffsetDateTime> _archivedAt()
Returns the raw JSON value of archivedAt.
Unlike archivedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_createdAt
final JsonField<OffsetDateTime> _createdAt()
Returns the raw JSON value of createdAt.
Unlike createdAt, this method doesn't throw if the JSON field has an unexpected type.
-
_environmentId
final JsonField<String> _environmentId()
Returns the raw JSON value of environmentId.
Unlike environmentId, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<BetaManagedAgentsSession.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_outcomeEvaluations
final JsonField<List<BetaManagedAgentsOutcomeEvaluationResource>> _outcomeEvaluations()
Returns the raw JSON value of outcomeEvaluations.
Unlike outcomeEvaluations, this method doesn't throw if the JSON field has an unexpected type.
-
_resources
final JsonField<List<BetaManagedAgentsSessionResource>> _resources()
Returns the raw JSON value of resources.
Unlike resources, this method doesn't throw if the JSON field has an unexpected type.
-
_stats
final JsonField<BetaManagedAgentsSessionStats> _stats()
Returns the raw JSON value of stats.
Unlike stats, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BetaManagedAgentsSession.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_title
final JsonField<String> _title()
Returns the raw JSON value of title.
Unlike title, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<BetaManagedAgentsSession.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_updatedAt
final JsonField<OffsetDateTime> _updatedAt()
Returns the raw JSON value of updatedAt.
Unlike updatedAt, this method doesn't throw if the JSON field has an unexpected type.
-
_usage
final JsonField<BetaManagedAgentsSessionUsage> _usage()
Returns the raw JSON value of usage.
Unlike usage, this method doesn't throw if the JSON field has an unexpected type.
-
_vaultIds
final JsonField<List<String>> _vaultIds()
Returns the raw JSON value of vaultIds.
Unlike vaultIds, this method doesn't throw if the JSON field has an unexpected type.
-
_deploymentId
final JsonField<String> _deploymentId()
Returns the raw JSON value of deploymentId.
Unlike deploymentId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsSession.Builder toBuilder()
-
validate
final BetaManagedAgentsSession 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 BetaManagedAgentsSession.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSession.
The following fields are required:
.id() .agent() .archivedAt() .createdAt() .environmentId() .metadata() .outcomeEvaluations() .resources() .stats() .status() .title() .type() .updatedAt() .usage() .vaultIds()
-
-
-
-