Skip to main content

Type Aliases

QueryContractReference

Ƭ QueryContractReference<Args, Result>: Readonly<{ [contractType]: { kind: "query" ; args: Args ; result: Result } }> A query selected from _generated/contracts. Its schema is bound to the admitted program; authority is checked on every execution.

Type parameters


OperationContractReference

Ƭ OperationContractReference<Args, Result>: Readonly<{ [contractType]: { kind: "operation" ; args: Args ; result: Result } }> A business operation selected from _generated/contracts.

Type parameters


ToolDeclaration

Ƭ ToolDeclaration: Readonly<{ kind: "query" | "operation" | "status" ; path: string ; reference: QueryContractReference | OperationContractReference ; description: string ; bind?: string }> One selected callable from _generated/contracts.

ToolOptions

Ƭ ToolOptions<Args>: Object The required string or ID argument supplied by the session.

Type parameters

Type declaration


Toolset

Ƭ Toolset: Readonly<Record<string, ToolDeclaration>> A named set of callable definitions.

Variables

tool

• Const tool: Object Select a generated callable and the description the model reads. Validators and paths come from the admitted program, with no definition imports.

Type declaration

Functions

defineToolset

▸ defineToolset(tools): Toolset Validate and freeze one reusable set of tools. Session policies supply authority and binding; sharing tools grants neither.

Parameters

Returns

Toolset