Class BetaManagedAgentsSessionActor
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionActorAn agent acting during a session, for example through the session's mounted filesystem. It names the session itself, not the user or API key that started the session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSessionActor.BuilderA builder for BetaManagedAgentsSessionActor.
-
Method Summary
Modifier and Type Method Description final StringsessionId()ID of the session (a sesn_...value).final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("session_actor")final JsonField<String>_sessionId()Returns the raw JSON value of sessionId. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSessionActor.BuildertoBuilder()final BetaManagedAgentsSessionActorvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSessionActor.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionActor. final static BetaManagedAgentsSessionActorof(String sessionId)Returns an immutable instance of BetaManagedAgentsSessionActor with the required sessionId set to the given value. -
-
Method Detail
-
sessionId
final String sessionId()
ID of the session (a
sesn_...value). Look up the session via /en/api/beta/sessions/retrieve for further provenance.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("session_actor")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_sessionId
final JsonField<String> _sessionId()
Returns the raw JSON value of sessionId.
Unlike sessionId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsSessionActor.Builder toBuilder()
-
validate
final BetaManagedAgentsSessionActor 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 BetaManagedAgentsSessionActor.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionActor.
The following fields are required:
.sessionId()
-
of
final static BetaManagedAgentsSessionActor of(String sessionId)
Returns an immutable instance of BetaManagedAgentsSessionActor with the required sessionId set to the given value.
-
-
-
-