Skip to content

migrate from output parsers to with_structured_output #42

@emarco177

Description

@emarco177

https://github.com/emarco177/ice_breaker/blob/bea2d975c7ed9d4c5607f5e0b54855abc054c2d0/output_parsers.py#L1C1-L33C82

output parsers were the old way to get structured output from LLMs.
With LangChain latest version we can do this by binding to the llm with_structured_output and the pydantic class we are trying to get.

migrate to this new way of getting structured output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions