Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / withToolSecretsContext

Function: withToolSecretsContext()

ts
function withToolSecretsContext<T>(ctx, fn): T;

Defined in: packages/security/src/secrets/acl.ts:42

Run fn with ctx set as the active per-tool secrets context. Used by @graphorin/tools and @graphorin/agent to wrap tool/agent execution.

Type Parameters

Type Parameter
T

Parameters

ParameterType
ctxToolSecretsContext
fn() => T

Returns

T

Stable