Module: Anthropic::Helpers::Tracing::Recorders::SessionsCreate Private
- Defined in:
- lib/anthropic/helpers/tracing/recorders.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .record(_span, _result) ⇒ void private
- .start_attributes(_client, req) ⇒ Hash{String=>Object} private
Class Method Details
.record(_span, _result) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
118 |
# File 'lib/anthropic/helpers/tracing/recorders.rb', line 118 def record(_span, _result) = nil |
.start_attributes(_client, req) ⇒ Hash{String=>Object}
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
111 112 113 114 |
# File 'lib/anthropic/helpers/tracing/recorders.rb', line 111 def start_attributes(_client, req) agent = Tracing.symbolize_keys(req[:body][:agent]) {GEN_AI_AGENT_ID => agent.is_a?(Hash) ? agent[:id] : agent} end |