Skip to content

rulvar API reference


rulvar API reference / @rulvar/rulvar / ToolContextSeed

Interface: ToolContextSeed

Defined in: packages/core/dist/index.d.ts

Properties

PropertyTypeDescriptionDefined in
agentTypestring-packages/core/dist/index.d.ts
cwdstringIsolation working directory; the host cwd under isolation 'none'.packages/core/dist/index.d.ts
isolationIsolationSpec-packages/core/dist/index.d.ts
label?string-packages/core/dist/index.d.ts
runIdstring-packages/core/dist/index.d.ts
signalAbortSignalFires on cancellation, budget ceiling, UsageLimits expiry.packages/core/dist/index.d.ts

Methods

emitLog()

ts
emitLog(
   spanId, 
   level, 
   msg, 
   data?): void;

Defined in: packages/core/dist/index.d.ts

Parameters

ParameterType
spanIdstring
level"debug" | "info" | "warn" | "error"
msgstring
data?Json

Returns

void


mintSpan()

ts
mintSpan(): string;

Defined in: packages/core/dist/index.d.ts

Mints the tool span under the agent span.

Returns

string