Skip to main content

Interface: CompletionContract<T>

Defined in: packages/core/src/runtime/completion.ts:27

Type Parameters​

T​

T = unknown

Properties​

tool?​

optional tool?: string

Defined in: packages/core/src/runtime/completion.ts:29

Finish tool name. Default 'finish'.

Methods​

verify()?​

optional verify(value, context): Promise<void>

Defined in: packages/core/src/runtime/completion.ts:31

Host check. A throw returns the error to the agent as the tool result.

Parameters​

value​

T

context​
attempt​

number

execution?​

ExecutionContext

toolCallId​

string

Returns​

Promise<void>