Skip to content

Replace auto_tool_execution with execute_tools (just first step) #874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mattlindsey
Copy link
Contributor

@mattlindsey mattlindsey commented Nov 12, 2024

First step of issue #829

@andreibondarev andreibondarev requested a review from Copilot April 17, 2025 18:20
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the parameter and context name "auto_tool_execution" with "execute_tools" as the first step toward addressing issue #829.

  • Renames parameter and context strings in both the tests and production code.
  • Updates inline documentation and code examples in the README.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
spec/langchain/assistant/assistant_spec.rb Updated context and method calls in tests
lib/langchain/assistant.rb Renamed parameters and methods for tool execution
examples/assistant_chat.rb Updated method calls to use the new naming
README.md Updated documentation to reflect the new naming

# @return [Array<Langchain::Message>] The messages
def run(auto_tool_execution: false)
def run(execute_tools: false)
Copy link
Contributor

Choose a reason for hiding this comment

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

A simple renaming would introduce a breaking change. A more user-friendly migration would likely be to issue a deprecation warning when the old option name (:auto_tool_execution) is used. Using the new option name (:execute_tools) does not produce any warnings.

According to #829, it also indicates that the default value of these options will change from false to true. It would be best for #829 to deliver this as a single change to users, rather than breaking it into separate steps.

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.

3 participants