Convert a runnable to a tool. Return a new instance of RunnableToolLike
which contains the runnable, name, description and schema.
asTool<
T extends ClassifierRequest<Record<string, __type | __type | __type | __type>> = ClassifierRequest<Record<string, __type | __type | __type | __type>>
>(
fields: __type
): RunnableToolLike<InteropZodType<ToolCall<string, Record<string, any>> | T>, ClassifierResponse<Record<string, __type | __type | __type | __type>>>| Name | Type | Description |
|---|---|---|
fields* | __type |