Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/tools / code-mode / CodeApiProjection

Interface: CodeApiProjection

Defined in: packages/tools/src/code-mode/project.ts:40

The projected code API for a set of tools.

Properties

PropertyModifierTypeDescriptionDefined in
cataloguereadonlystringCompact catalogue (name + one-line description, grouped by source). Cheap enough to embed in a tool description.packages/tools/src/code-mode/project.ts:47
namesreadonlyreadonly string[]Every callable tool name, in registration order.packages/tools/src/code-mode/project.ts:42

Methods

ts
search(query, limit?): string;

Defined in: packages/tools/src/code-mode/project.ts:56

Signature blocks for tools whose name or description contains query (case-insensitive substring), capped at limit (default 10).

Parameters

ParameterType
querystring
limit?number

Returns

string


signatureFor()

ts
signatureFor(name): string | undefined;

Defined in: packages/tools/src/code-mode/project.ts:49

Full signature block for one tool, or undefined if unknown.

Parameters

ParameterType
namestring

Returns

string | undefined


signaturesFor()

ts
signaturesFor(names): string;

Defined in: packages/tools/src/code-mode/project.ts:51

Signature blocks for the given names (unknown names skipped).

Parameters

ParameterType
namesreadonly string[]

Returns

string