kernl

Type Alias: LanguageModelProviderTool

type LanguageModelProviderTool = {
  args: Record<string, unknown>;
  id: `${string}.${string}`;
  kind: "provider-defined";
  name: string;
};

Defined in: packages/protocol/src/language-model/tool.ts:39

The configuration of a tool that is defined by the provider.

Properties

args

args: Record<string, unknown>;

Defined in: packages/protocol/src/language-model/tool.ts:55

The arguments for configuring the tool. Must match the expected arguments defined by the provider for this tool.


id

id: `${string}.${string}`;

Defined in: packages/protocol/src/language-model/tool.ts:45

The ID of the tool. Should follow the format <provider-id>.<unique-tool-name>.


kind

readonly kind: "provider-defined";

Defined in: packages/protocol/src/language-model/tool.ts:40


name

name: string;

Defined in: packages/protocol/src/language-model/tool.ts:50

The name of the tool that the user must use in the tool set.

On this page