ToolKind Type
The two kinds of tool a definition can describe.
Union cases
| Union case |
Description
|
Full Usage:
ExecutableTool(execution, runtime, isAsync)
Parameters:
ToolExecutionDef
runtime : string
isAsync : bool
|
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.
|
|
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.
|
Instance members
| Instance member |
Description
|
Full Usage:
this.IsExecutableTool
Returns: bool
|
|
Full Usage:
this.IsPromptTool
Returns: bool
|
|
Nao