Method: Langchain::ToolDefinition#define_function
- Defined in:
- lib/langchain/tool_definition.rb
permalink #define_function(method_name, description:) { ... } ⇒ Object
Defines a function for the tool
43 44 45 |
# File 'lib/langchain/tool_definition.rb', line 43 def define_function(method_name, description:, &block) function_schemas.add_function(method_name:, description:, &block) end |