Header menu logo Nao

EventScope Type

Identity carried by every emitted event. The producer fills these in and never decides where the data lands — routing/persistence is entirely the consumer's choice, so a new storage strategy (per session, per category, per workspace, ...) needs no producer change.

Record fields

Record Field Description

ActionId

Full Usage: ActionId

Field type: string

The action that produced the event — the turn id.

Field type: string

ConversationId

Full Usage: ConversationId

Field type: string

Active conversation within the session.

Field type: string

ParentKey

Full Usage: ParentKey

Field type: string option

Parent session key when this is a task sub-session (None for a primary session).

Field type: string option

SessionId

Full Usage: SessionId

Field type: string

Session id (grain key suffix); for a task sub-session this includes the task id.

Field type: string

SessionKey

Full Usage: SessionKey

Field type: string

Storage routing key — the full grain key ("userId/sessionId" or ".../taskId").

Field type: string

Timestamp

Full Usage: Timestamp

Field type: DateTimeOffset

When the event occurred.

Field type: DateTimeOffset

UserId

Full Usage: UserId

Field type: string

Owning user (grain key prefix).

Field type: string

WorkspaceKey

Full Usage: WorkspaceKey

Field type: string

Workspace the turn ran against.

Field type: string

Static members

Static member Description

EventScope.Create(userId, sessionId, conversationId, workspaceKey, actionId, sessionKey, ?parentKey)

Full Usage: EventScope.Create(userId, sessionId, conversationId, workspaceKey, actionId, sessionKey, ?parentKey)

Parameters:
    userId : string
    sessionId : string
    conversationId : string
    workspaceKey : string
    actionId : string
    sessionKey : string
    ?parentKey : string

Returns: EventScope
userId : string
sessionId : string
conversationId : string
workspaceKey : string
actionId : string
sessionKey : string
?parentKey : string
Returns: EventScope

EventScope.Empty

Full Usage: EventScope.Empty

Returns: EventScope

An empty scope, used for library/test contexts that run an agent outside a session.

Returns: EventScope

Type something to start searching.