Skip to content

rulvar API reference


rulvar API reference / @rulvar/core / ToolContextSeed

Interface: ToolContextSeed

Defined in: packages/core/src/tools/context.ts:13

Properties

PropertyTypeDescriptionDefined in
agentTypestring-packages/core/src/tools/context.ts:15
cwdstringIsolation working directory; the host cwd under isolation 'none'.packages/core/src/tools/context.ts:18
isolationIsolationSpec-packages/core/src/tools/context.ts:19
label?string-packages/core/src/tools/context.ts:16
runIdstring-packages/core/src/tools/context.ts:14
signalAbortSignalFires 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

ParameterType
spanIdstring
level"error" | "debug" | "info" | "warn"
msgstring
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