Skip to content

Conversation

@saiprasaad2002
Copy link

  • Add override_default_middleware and custom_middleware parameters to create_deep_agent
  • Preserve existing default middleware behavior when override is disabled
  • Support fully custom middleware stacks (including custom models/params) while still wiring interrupt_on via HumanInTheLoopMiddleware

Copy link
Collaborator

@eyurtsev eyurtsev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're overriding the default middleware, this becomes a vanilla langchain agent, so use the vanilla agent for this use case.

@saiprasaad2002
Copy link
Author

But what if I need to change the model for my middleware instead of keeping the same from my deep agent. Maybe I can prefer the summarization middleware to get gpt-5-mini with my deepagent having o3.

I was just exploring this repo for some days and kindly apologize me if i'm wrong here as this is my very first PR in my professional career. Still at the learning process..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants