rulvar API reference / @rulvar/core / ToolSource
Interface: ToolSource
Defined in: packages/core/src/l0/spi/toolsource.ts:81
The ToolSource seam: tools() yields the source's current ToolDefs. The toolset snapshot for a given agent spawn is captured at spawn time and hashed into the spawn's identity via toolsetHash; a mid-run change MUST NOT mutate an in-flight agent's toolset.
Properties
| Property | Type | Defined in |
|---|---|---|
id | string | packages/core/src/l0/spi/toolsource.ts:82 |
Methods
tools()
ts
tools(session): Promise<ToolDef<SchemaSpec>[]>;Defined in: packages/core/src/l0/spi/toolsource.ts:83
Parameters
| Parameter | Type |
|---|---|
session | ToolSourceSession |
Returns
Promise<ToolDef<SchemaSpec>[]>