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
| Parameter | Type |
|---|---|
ctx | ToolSecretsContext |
fn | () => T |
Returns
T