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
|
Full Usage:
ActionId
Field type: string
|
The action that produced the event — the turn id.
|
Full Usage:
ConversationId
Field type: string
|
Active conversation within the session.
|
Full Usage:
ParentKey
Field type: string option
|
Parent session key when this is a task sub-session (None for a primary session).
|
Full Usage:
SessionId
Field type: string
|
Session id (grain key suffix); for a task sub-session this includes the task id.
|
Full Usage:
SessionKey
Field type: string
|
Storage routing key — the full grain key ("userId/sessionId" or ".../taskId").
|
|
When the event occurred.
|
Full Usage:
UserId
Field type: string
|
Owning user (grain key prefix).
|
Full Usage:
WorkspaceKey
Field type: string
|
Workspace the turn ran against.
|
Static members
| Static member |
Description
|
Full Usage:
EventScope.Create(userId, sessionId, conversationId, workspaceKey, actionId, sessionKey, ?parentKey)
Parameters:
string
sessionId : string
conversationId : string
workspaceKey : string
actionId : string
sessionKey : string
?parentKey : string
Returns: EventScope
|
|
|
An empty scope, used for library/test contexts that run an agent outside a session.
|
Nao