Module: OmniAI::Google::Chat::ToolSerializer
- Defined in:
- lib/omniai/google/chat/tool_serializer.rb
Overview
Overrides tool serialize / deserialize.
Class Method Summary collapse
Class Method Details
.serialize(tool) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/omniai/google/chat/tool_serializer.rb', line 9 def self.serialize(tool, *) { name: tool.name, description: tool.description, parameters: tool.parameters.is_a?(Tool::Parameters) ? tool.parameters.serialize : tool.parameters, } end |