Module: SorbetBaml::DSPyToolExtensions
- Extended by:
- T::Sig
- Defined in:
- lib/sorbet_baml/dspy_tool_extensions.rb
Overview
Extensions to add BAML conversion methods to DSPy::Tools::Base
Instance Method Summary collapse
Instance Method Details
#baml_tool_definition(options = {}) ⇒ Object
19 20 21 |
# File 'lib/sorbet_baml/dspy_tool_extensions.rb', line 19 def baml_tool_definition( = {}) SorbetBaml::DSPyToolConverter.from_dspy_tool(T.unsafe(self), ) end |
#to_baml(options = {}) ⇒ Object
13 14 15 |
# File 'lib/sorbet_baml/dspy_tool_extensions.rb', line 13 def to_baml( = {}) baml_tool_definition() end |