Skip to main content

Interface: ToolPresentation<TInput>

Defined in: packages/core/src/utils/tools.ts:217

What a tool declares about how hosts present it. Every member is a plain enumerable property, so a host that wraps a tool as { ...tool, execute } keeps it.

Extended by​

Type Parameters​

TInput​

TInput = unknown

Properties​

capability?​

optional capability?: ToolCapability

Defined in: packages/core/src/utils/tools.ts:220

Undeclared: 'both', so a read-only mode leaves the tool out.


display?​

optional display?: ToolDisplay<TInput>

Defined in: packages/core/src/utils/tools.ts:218

Methods​

describeApproval()?​

optional describeApproval(input): ToolApprovalSummary | undefined

Defined in: packages/core/src/utils/tools.ts:222

Describes a call that needs approval (see requiresApproval).

Parameters​

input​

TInput

Returns​

ToolApprovalSummary | undefined