langchain
c969a779 - Fix: Pass along kwargs when creating a sql agent (#2350)

Commit
2 years ago
Fix: Pass along kwargs when creating a sql agent (#2350) Currently, `agent_toolkits.sql.create_sql_agent()` passes kwargs to the `ZeroShotAgent` that it creates but not to `AgentExecutor` that it also creates. This prevents the caller from providing some useful arguments like `max_iterations` and `early_stopping_method` This PR changes `create_sql_agent` so that it passes kwargs to both constructors. --------- Co-authored-by: Zachary Jones <zjones@zetaglobal.com>
Author
Parents
Loading