Skip to content

Documentation / @agentick/core / SessionRef

Interface: SessionRef ​

Defined in: core/src/app/types.ts:133

Narrow session reference for runner hooks.

Runner hooks receive this instead of the full Session interface. This avoids generic type friction (SessionImpl<P> vs Session) and exposes only what runners actually need: identity + state.

Properties ​

currentTick ​

readonly currentTick: number

Defined in: core/src/app/types.ts:139

Current tick number


id ​

readonly id: string

Defined in: core/src/app/types.ts:135

Unique session ID


status ​

readonly status: SessionStatus

Defined in: core/src/app/types.ts:137

Current session status

Methods ​

snapshot() ​

snapshot(): SessionSnapshot

Defined in: core/src/app/types.ts:141

Export session state

Returns ​

SessionSnapshot

Released under the ISC License.