Anthropic recently added tool use to their API, which is extremely useful for structured outputs. Here we explain how tool use works, how to use it with llm.with_structured_output(...) in LangChain, and how to design fallbacks to catch errors in the validation / parsing of structured output according to a user-defined schema.
Notebook:
github.com/langchain-ai/langc...
Негізгі бет Anthropic function calling for structured LLM outputs
Пікірлер: 8