Sha256: 7874d52c335cb02c90cec18ca8f67fe05563686f26650c11f97ee61c62b50794

Contents?: true

Size: 286 Bytes

Versions: 6

Compression:

Stored size: 286 Bytes

Contents

module OpenAISwarm
  class FunctionDescriptor
    attr_reader :target_method, :description

    def initialize(target_method:, description: '')
      @target_method = target_method.is_a?(Method) ? target_method : method(target_method)
      @description = description
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-openai-swarm-0.2.4 lib/ruby-openai-swarm/function_descriptor.rb
ruby-openai-swarm-0.2.3 lib/ruby-openai-swarm/function_descriptor.rb
ruby-openai-swarm-0.2.2 lib/ruby-openai-swarm/function_descriptor.rb
ruby-openai-swarm-0.2.1 lib/ruby-openai-swarm/function_descriptor.rb
ruby-openai-swarm-0.2.0 lib/ruby-openai-swarm/function_descriptor.rb
ruby-openai-swarm-0.1.0 lib/ruby-openai-swarm/function_descriptor.rb