Type: url

Original: https://blog.langchain.com/structured-tools/

Status: generated

Summary

A May 2023 LangChain blog post introducing structured tools: a new tool abstraction that takes an arbitrary number of inputs of arbitrary types instead of the single string earlier LangChain tools accepted, together with a StructuredChatAgent built to work with them. It defines a structured tool by its name, description, args_schema (a Pydantic model) and _run/_arun functions, shows how to create one from a function or by subclassing BaseTool, announces file-management and PlayWright browser toolkits built on the new class, and explains how structured tools interoperate with older string tools and agents.

Generated pages