langchain
07c5c60f - community: fix tool appending logic and update planner prompt in OpenAPI agent toolkit (#24384)

Commit
1 year ago
community: fix tool appending logic and update planner prompt in OpenAPI agent toolkit (#24384) **Description:** - Updated the format for the 'Action' section in the planner prompt to ensure it must be one of the tools without additional words. Adjusted the phrasing from "should be" to "must be" for clarity and enforceability. - Corrected the tool appending logic in the `_create_api_controller_agent` function to ensure that `RequestsDeleteToolWithParsing` and `RequestsPatchToolWithParsing` are properly added to the tools list for "DELETE" and "PATCH" operations. **Issue:** #24382 **Dependencies:** None **Twitter handle:** @lunara_x --------- Co-authored-by: Chester Curme <chester.curme@gmail.com>
Author
Parents
Loading