Skip to content
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

Introduce assistant.execute_tools = true/false option to replace the auto_tool_execution parameter. #829

Open
3 tasks
andreibondarev opened this issue Oct 12, 2024 · 0 comments
Labels
assistants Related to Langchain::Assistant class enhancement New feature or request thoughtbot-open-summit-2024 https://thoughtbot.com/events/open-summit

Comments

@andreibondarev
Copy link
Collaborator

andreibondarev commented Oct 12, 2024

Description

In order to make the Assistant's DSL more intuitive we should rename the auto_tool_execution: parameter to execute_tools:. This is also in line with the openai/swarm agent framework.

We should be able to set this option at the Assistant-level and not have to specify it every time. You should still be able to override this setting when you're explicitly calling the method with .run(execute_tools: false).

assistant = Langchain::Assistant.new(
  llm: llm,
  execute_tools: true
)

assistant.add_message(content: "...")

assistant.run(execute_tools: false)

Tasks

  • Rename auto_tool_execution: option to execute_tools:
  • Allow setting assistant.execute_tools and default it to true.
  • Allow overriding assistant.execute_tools when calling assistant.run(execute_tools:)
@andreibondarev andreibondarev added enhancement New feature or request assistants Related to Langchain::Assistant class labels Oct 12, 2024
@andreibondarev andreibondarev added the thoughtbot-open-summit-2024 https://thoughtbot.com/events/open-summit label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assistants Related to Langchain::Assistant class enhancement New feature or request thoughtbot-open-summit-2024 https://thoughtbot.com/events/open-summit
Projects
None yet
Development

No branches or pull requests

1 participant