Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / withChildToolSecretsContext
Function: withChildToolSecretsContext()
ts
function withChildToolSecretsContext<T>(child, fn): T;Defined in: packages/security/src/secrets/acl.ts:99
Convenience: run fn inside a child scope rooted at the current active context. Used by @graphorin/agent to wire sub-agent calls.
Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
child | Omit<ToolSecretsContext, "parent"> |
fn | () => T |
Returns
T