FunctionToolDefinition

Unpublished development API. This package is under development and is not available as a published release.

Constraint for heterogeneous catalogs; never is only the storage boundary, never a callable fallback for an untyped handler.

import type { FunctionToolDefinition } from '@threadplane/core/tools';

Declaration

export interface FunctionToolDefinition  {
  readonly description: string;
  readonly followUp?: boolean;
  readonly handler: (args: never, context: ExecutionContext) => unknown;
  readonly idempotent?: boolean;
  readonly parameters?: PlainValue;
}

Members

description

readonly description: string;

followUp

readonly followUp?: boolean;

handler

readonly handler: (args: never, context: ExecutionContext) => unknown;

idempotent

readonly idempotent?: boolean;

parameters

readonly parameters?: PlainValue;