Optional
fields: HerokuAgentFieldsConfiguration options for the underlying HerokuAgent. Includes definitions for Heroku server-side tools.
Optional LangChain tools to execute locally within the agent.
A LangGraph agent executor configured with the HerokuAgent.
Creates a LangGraph agent powered by the HerokuAgent model.
This helper initializes a HerokuAgent instance and wraps it with LangGraph's prebuilt React agent, allowing Heroku's server-side tools to be used alongside any provided LangChain tools.