Skip to content

create_agent support fallback #33082

@tornadotang

Description

@tornadotang

Checked other resources

  • This is a feature request, not a bug report or usage question.
  • I added a clear and descriptive title that summarizes the feature request.
  • I used the GitHub search to find a similar feature request and didn't find it.
  • I checked the LangChain documentation and API reference to see if this feature already exists.
  • This is not related to the langchain-community package.

Feature Description

To better support structured output, create_agent no longer supports pre-bound models with tools or configuration:

BUT w/o pre-bound models, we cannot pass model.with_fallback to create_agent, that means we lost the capability of failover when openai outage

Use Case

I want to build agent support failover when openai outage, w/ create_react_agent it can support pre-bound model.with_fallback().

but langchain.agents create_agent disabled it.

Proposed Solution

I request create_agent support pre-bound model.with_fallback()

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestrequest for an enhancement / additional functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions