Variable toolCallHeuristicSchemaConst
toolCallHeuristicSchema: ZodObject<
{
arguments: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
function: ZodOptional<
ZodObject<
{
arguments: ZodOptional<ZodRecord<ZodString, ZodUnknown>>;
name: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{ arguments?: Record<string, unknown>; name?: string },
{ arguments?: Record<string, unknown>; name?: string },
>,
>;
id: ZodOptional<ZodString>;
name: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
arguments?: Record<string, unknown>;
function?: { arguments?: Record<string, unknown>; name?: string };
id?: string;
name?: string;
},
{
arguments?: Record<string, unknown>;
function?: { arguments?: Record<string, unknown>; name?: string };
id?: string;
name?: string;
},
> = ...
A schema for a tool call that is not in the first class supported format
This is used to heuristically find the id, name, and arguments of a tool call based on common patterns in tool calls, allowing us to poke around in an unknown tool call and extract the id, name, and arguments