Class: VSM::Tool::Descriptor
- Inherits:
-
Struct
- Object
- Struct
- VSM::Tool::Descriptor
- Defined in:
- lib/vsm/tool/descriptor.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#schema ⇒ Object
Returns the value of attribute schema.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
4 5 6 |
# File 'lib/vsm/tool/descriptor.rb', line 4 def description @description end |
#name ⇒ Object
Returns the value of attribute name
4 5 6 |
# File 'lib/vsm/tool/descriptor.rb', line 4 def name @name end |
#schema ⇒ Object
Returns the value of attribute schema
4 5 6 |
# File 'lib/vsm/tool/descriptor.rb', line 4 def schema @schema end |
Instance Method Details
#to_anthropic_tool ⇒ Object
8 9 10 |
# File 'lib/vsm/tool/descriptor.rb', line 8 def to_anthropic_tool { name:, description:, input_schema: schema } end |
#to_gemini_tool ⇒ Object
11 12 13 |
# File 'lib/vsm/tool/descriptor.rb', line 11 def to_gemini_tool { name:, description:, parameters: schema } end |
#to_openai_tool ⇒ Object
5 6 7 |
# File 'lib/vsm/tool/descriptor.rb', line 5 def to_openai_tool { type: "function", function: { name:, description:, parameters: schema } } end |