rulvar API reference / @rulvar/core / ToolContextSeed
Interface: ToolContextSeed
Defined in: packages/core/src/tools/context.ts:13
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
agentType | string | - | packages/core/src/tools/context.ts:15 |
cwd | string | Isolation working directory; the host cwd under isolation 'none'. | packages/core/src/tools/context.ts:18 |
isolation | IsolationSpec | - | packages/core/src/tools/context.ts:19 |
label? | string | - | packages/core/src/tools/context.ts:16 |
runId | string | - | packages/core/src/tools/context.ts:14 |
signal | AbortSignal | Fires on cancellation, budget ceiling, UsageLimits expiry. | packages/core/src/tools/context.ts:21 |
Methods
emitLog()
ts
emitLog(
spanId,
level,
msg,
data?): void;Defined in: packages/core/src/tools/context.ts:24
Parameters
| Parameter | Type |
|---|---|
spanId | string |
level | "error" | "debug" | "info" | "warn" |
msg | string |
data? | Json |
Returns
void
mintSpan()
ts
mintSpan(): string;Defined in: packages/core/src/tools/context.ts:23
Mints the tool span under the agent span.
Returns
string