You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I want to have ActiveRecord as a tool.
Imagine I have a Workflow with a sequence of Action. Workflows have name and description. I would like to have each workflow record as a possible tool to be called.
Describe the solution you'd like
We could keep the DSL approach and have a tool_name method, which could receive an arbitrary string or a block with the tool as an argument and then have this record-level dynamism.
Describe alternatives you've considered
I'm currently defining a class in run-time:
Is your feature request related to a problem? Please describe.
I want to have
ActiveRecord
as a tool.Imagine I have a
Workflow
with a sequence ofAction
. Workflows havename
anddescription
. I would like to have each workflow record as a possible tool to be called.Right now, this line https://github.com/patterns-ai-core/langchainrb/blob/main/lib/langchain/assistant.rb#L359 relies directly on the class of the tool so that I can't have this record-level dynamism.
Describe the solution you'd like
We could keep the DSL approach and have a
tool_name
method, which could receive an arbitrary string or a block with the tool as an argument and then have this record-level dynamism.Describe alternatives you've considered
I'm currently defining a class in run-time:
Maybe I'm not seeing something? Is there an easier way of accomplishing that?
The text was updated successfully, but these errors were encountered: