Skip to content

agent-sessions / Exports

agent-sessions

Table of contents

Classes

Interfaces

Type Aliases

Type Aliases

TPermissionResult

Ƭ TPermissionResult: boolean | "allow-session"

Permission handler result:

  • true: allow this invocation
  • false: deny this invocation
  • 'allow-session': allow this invocation and auto-approve this tool for the rest of the session

Defined in

agent-sessions/src/permission-enforcer.ts:42


TPermissionHandler

Ƭ TPermissionHandler: (toolName: string, toolArgs: TToolArgs) => Promise<TPermissionResult>

Custom permission handler — called when a tool needs user approval. Returns true to allow, false to deny, or 'allow-session' to remember for the session.

Type declaration

▸ (toolName, toolArgs): Promise<TPermissionResult>

Parameters
NameType
toolNamestring
toolArgsTToolArgs
Returns

Promise<TPermissionResult>

Defined in

agent-sessions/src/permission-enforcer.ts:48


TSessionLogData

Ƭ TSessionLogData: Record<string, string | number | boolean | object>

Session log event data — extensible record of event metadata.

Defined in

agent-sessions/src/session-logger.ts:13

Released under the MIT License.