Skip to content
1 min read · 37 words

Type Alias: ToolCallParserFn ​

ts
type ToolCallParserFn = (
  rawText: string,
  ctx: ToolCallParserContext,
) => ToolCallParseResult;

Defined in: src/batteries/llm/chat_common/tool_parsers.ts:69

A synchronous tool-call text parser.

Parameters ​

ParameterType
rawTextstring
ctxToolCallParserContext

Returns ​

ToolCallParseResult