Module: OpenTelemetry::Instrumentation::RubyLLM::Patches::Agent
- Defined in:
- lib/opentelemetry/instrumentation/ruby_llm/patches/agent.rb
Instance Method Summary collapse
Instance Method Details
#ask ⇒ Object
14 15 16 |
# File 'lib/opentelemetry/instrumentation/ruby_llm/patches/agent.rb', line 14 def ask(...) in_invoke_agent_span { super } end |
#complete ⇒ Object
22 23 24 |
# File 'lib/opentelemetry/instrumentation/ruby_llm/patches/agent.rb', line 22 def complete(...) in_invoke_agent_span { super } end |
#say ⇒ Object
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 |