Header menu logo Nao

ToolKind Type

The two kinds of tool a definition can describe.

Union cases

Union case Description

ExecutableTool(execution, runtime, isAsync)

Full Usage: ExecutableTool(execution, runtime, isAsync)

Parameters:

Executable: the tool runs external code through a process, HTTP endpoint, or a custom executor. May run synchronously (inline) or asynchronously (spawned as a background task) when `isAsync` is set.

execution : ToolExecutionDef
runtime : string
isAsync : bool

PromptTool prompt

Full Usage: PromptTool prompt

Parameters:

Prompt-defined: the tool body is an LLM prompt. Invoking the tool completes the prompt against the configured provider (optionally enriched with conversation context). Always synchronous — there is no external process to background.

prompt : Prompt

Instance members

Instance member Description

this.IsExecutableTool

Full Usage: this.IsExecutableTool

Returns: bool
Returns: bool

this.IsPromptTool

Full Usage: this.IsPromptTool

Returns: bool
Returns: bool

Type something to start searching.