AgentBlueprintSessionSetting
in package
implements
JsonSerializable
uses
JsonSerializableTrait
Read onlyYes
Token and session lifetimes for sessions minted from this blueprint.
Table of Contents
Interfaces
- JsonSerializable
Properties
- $accessTokenTtlSeconds : int
- Lifetime of each minted access token in seconds.
- $maxAgeSeconds : int
- Maximum lifetime of a session in seconds; refreshes never extend a session past this.
- $refreshTokenTtlSeconds : int
- Lifetime of each rotated refresh token in seconds.
Methods
- __construct() : mixed
- fromArray() : self
- jsonSerialize() : array<string|int, mixed>
- toArray() : array<string|int, mixed>
Properties
$accessTokenTtlSeconds
Lifetime of each minted access token in seconds.
public
int
$accessTokenTtlSeconds
$maxAgeSeconds
Maximum lifetime of a session in seconds; refreshes never extend a session past this.
public
int
$maxAgeSeconds
$refreshTokenTtlSeconds
Lifetime of each rotated refresh token in seconds.
public
int
$refreshTokenTtlSeconds
Methods
__construct()
public
__construct(int $maxAgeSeconds, int $accessTokenTtlSeconds, int $refreshTokenTtlSeconds) : mixed
Parameters
- $maxAgeSeconds : int
- $accessTokenTtlSeconds : int
- $refreshTokenTtlSeconds : int
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
selfjsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>toArray()
public
toArray() : array<string|int, mixed>