Agent / foldkit-agent-native

ActionRunContext

interface · packages/agent-native/src/actions.ts:16

interface ActionRunContext {
  readonly userEmail?: string | undefined
  readonly orgId?: string | null | undefined
}

The request context Agent Native hands an action.

Deliberately narrower than the framework's own ActionRunContext: the adapter promises only the identity a principal mapper needs, so its public surface does not grow with the framework's context. The framework still passes its full context through at runtime.

Members

ActionRunContext.userEmail

property · packages/agent-native/src/actions.ts:17

readonly userEmail?: string | undefined

ActionRunContext.orgId

property · packages/agent-native/src/actions.ts:18

readonly orgId?: string | null | undefined