Class: RubyLLM::Protocols::Cohere
- Inherits:
-
RubyLLM::Protocol
- Object
- RubyLLM::Protocol
- RubyLLM::Protocols::Cohere
- Includes:
- Cohere::Batches, Cohere::Chat, Cohere::Embeddings, Cohere::Media, Cohere::Models, Cohere::OCR, Cohere::Rerank, Cohere::Streaming, Cohere::Tokenization, Cohere::Tools, Cohere::Transcription
- Defined in:
- lib/ruby_llm/protocols/cohere.rb,
lib/ruby_llm/protocols/cohere/ocr.rb,
lib/ruby_llm/protocols/cohere/chat.rb,
lib/ruby_llm/protocols/cohere/media.rb,
lib/ruby_llm/protocols/cohere/tools.rb,
lib/ruby_llm/protocols/cohere/models.rb,
lib/ruby_llm/protocols/cohere/rerank.rb,
lib/ruby_llm/protocols/cohere/batches.rb,
lib/ruby_llm/protocols/cohere/datasets.rb,
lib/ruby_llm/protocols/cohere/streaming.rb,
lib/ruby_llm/protocols/cohere/embeddings.rb,
lib/ruby_llm/protocols/cohere/tokenization.rb,
lib/ruby_llm/protocols/cohere/transcription.rb,
lib/ruby_llm/protocols/cohere/batch_requests.rb
Overview
The Cohere v2 API, a native wire format shared by Cohere's own host and the platforms that serve Command, Embed, Rerank, and Transcribe models.
Direct Known Subclasses
Defined Under Namespace
Modules: BatchRequests, Batches, Chat, Embeddings, Media, Models, OCR, Rerank, Streaming, Tokenization, Tools, Transcription Classes: Datasets
Instance Attribute Summary
Attributes inherited from RubyLLM::Protocol
#config, #connection, #model, #provider
Method Summary
Methods inherited from RubyLLM::Protocol
abstract, #animate_later, #apply_compaction, #apply_compaction_headers, #apply_end_user, #cache_content, #compact, #complete, #count_tokens, #delete_cache, #embed, #extend_cache, #find_cache, #initialize, #list_models, #moderate, #ocr, #paint, #parse_error, #parse_image_responses, #post_image, #post_video, #preprocess_message, #raise_transcription_streaming_unsupported, #refresh_video_job, #render, #render_embedding, #render_transcription_options, #render_video_extension_payload, #rerank, #server_tool_aliases, #speak, #stream_speech, #stream_speech_response, #stream_transcription, #supports_embedding_media?, #tokenize, #tool_approval_response, #transcribe, #video_extension_attachment, #video_extension_url, #video_request_url
Methods included from RubyLLM::Protocol::BinaryStreaming
Methods included from RubyLLM::Protocol::Streaming
build_on_data_handler, build_stream_error_response, error_chunk?, failed_http_status, faraday_1?, handle_data, handle_error_chunk, handle_error_event, handle_failed_response, handle_json_error_chunk, handle_sse, handle_stream, json_error_payload?, parse_error_from_json, parse_streaming_error, process_stream_chunk, raise_stream_error, stream_events, stream_response, stream_state
Constructor Details
This class inherits a constructor from RubyLLM::Protocol