Module: OpenTelemetry::Instrumentation::RubyLLM::Patches::Agent

Defined in:
lib/opentelemetry/instrumentation/ruby_llm/patches/agent.rb

Instance Method Summary collapse

Instance Method Details

#askObject



14
15
16
# File 'lib/opentelemetry/instrumentation/ruby_llm/patches/agent.rb', line 14

def ask(...)
  in_invoke_agent_span { super }
end

#completeObject



22
23
24
# File 'lib/opentelemetry/instrumentation/ruby_llm/patches/agent.rb', line 22

def complete(...)
  in_invoke_agent_span { super }
end

#sayObject



18
19
20
# File 'lib/opentelemetry/instrumentation/ruby_llm/patches/agent.rb', line 18

def say(...)
  in_invoke_agent_span { super }
end

#with_otel_attributes(attributes) ⇒ Object



8
9
10
11
12
# File 'lib/opentelemetry/instrumentation/ruby_llm/patches/agent.rb', line 8

def with_otel_attributes(attributes)
  @otel_attributes = attributes
  llm_chat.with_otel_attributes(attributes)
  self
end