Function type that dynamically generates a description for a tool call approval request.
DescriptionFactory: z.infer<typeof DescriptionFunctionSchema>import { type DescriptionFactory, type ToolCall } from "langchain";
const descriptionFactory: DescriptionFactory = (toolCall, state, runtime) => {
return `Please review: ${toolCall.name}(${JSON.stringify(toolCall.args)})`;
};