Module: LlmCostTracker::Integrations::Anthropic::MessagesPatch
- Defined in:
- lib/llm_cost_tracker/integrations/anthropic.rb
Instance Method Summary collapse
- #create(*args, **kwargs) ⇒ Object
- #stream(*args, **kwargs) ⇒ Object
- #stream_raw(*args, **kwargs) ⇒ Object
Instance Method Details
#create(*args, **kwargs) ⇒ Object
148 149 150 |
# File 'lib/llm_cost_tracker/integrations/anthropic.rb', line 148 def create(*args, **kwargs) LlmCostTracker::Integrations::Anthropic.wrap_blocking_call(args, kwargs) { super } end |
#stream(*args, **kwargs) ⇒ Object
152 153 154 |
# File 'lib/llm_cost_tracker/integrations/anthropic.rb', line 152 def stream(*args, **kwargs) LlmCostTracker::Integrations::Anthropic.wrap_stream_call(args, kwargs) { super } end |
#stream_raw(*args, **kwargs) ⇒ Object
156 157 158 |
# File 'lib/llm_cost_tracker/integrations/anthropic.rb', line 156 def stream_raw(*args, **kwargs) LlmCostTracker::Integrations::Anthropic.wrap_stream_call(args, kwargs) { super } end |