Cohere
cohereCohere provides enterprise language and multimodal AI models for chat, embeddings, reranking, classification, and related workflows.
Acciones disponibles (22)
Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.
Cancel BatchCOHERE_CANCEL_BATCHAcciónCancel one in-progress Cohere batch. This requires a production Cohere API key, stops the batch irreversibly, and cannot be undone.
COHERE_CANCEL_BATCHAcciónCancel one in-progress Cohere batch. This requires a production Cohere API key, stops the batch irreversibly, and cannot be undone.
Parámetros de entrada
idstringObligatorioCohere ID of the in-progress batch to cancel.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Cancel Embed JobCOHERE_CANCEL_EMBED_JOBAcciónIrreversibly cancel one active Cohere asynchronous embed job by ID. Cohere accrued charges for work processed before cancellation still apply, and partial results are not available. Cancel only a caller-owned job. This action sends one request and does not poll for the cancelled state.
COHERE_CANCEL_EMBED_JOBAcciónIrreversibly cancel one active Cohere asynchronous embed job by ID. Cohere accrued charges for work processed before cancellation still apply, and partial results are not available. Cancel only a caller-owned job. This action sends one request and does not poll for the cancelled state.
Parámetros de entrada
idstringObligatorioUnique identifier of the active, caller-owned embed job to cancel.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
ChatCOHERE_CHATAcciónGenerate one non-streaming Cohere chat response from an ordered conversation, optionally using documents, tools, structured output, or reasoning controls.
COHERE_CHATAcciónGenerate one non-streaming Cohere chat response from an ordered conversation, optionally using documents, tools, structured output, or reasoning controls.
Parámetros de entrada
seedintegerBest-effort deterministic sampling seed.
modelstringObligatorioCohere chat model name; use COHERE_LIST_MODELS with endpoint=chat to discover current choices.
toolsobject[]Functions the model may call.
top_kintegerTop-k sampling value; 0 disables top-k sampling.
top_pnumberTop-p probability mass from 0.01 to 0.99.
logprobsbooleanInclude generated-token log probabilities in the response.
messagesarrayObligatorioConversation messages in chronological order.
priorityintegerScheduling priority; lower numbers are handled earlier.
thinkingobjectReasoning enablement and optional token budget.
documentsarrayShort relevant text or structured documents used to ground the answer.
max_tokensintegerMaximum output tokens; low values may produce finish_reason=MAX_TOKENS.
safety_modestringenumSafety instruction mode; model compatibility varies.
CONTEXTUALSTRICTOFFtemperaturenumberGeneration randomness; lower values are more deterministic.
tool_choicestringenumREQUIRED asks the model to call at least one supplied tool. NONE asks the model not to call tools, but this is best-effort and model-dependent.
REQUIREDNONEstrict_toolsbooleanForce generated tool calls to follow the supplied function schemas strictly.
stop_sequencesstring[]Up to five strings that stop generation before the matching sequence.
response_formatobjectPlain-text or structured JSON output configuration.
citation_optionsobjectCitation generation configuration.
presence_penaltynumberPresence-based repetition penalty from 0 to 1.
frequency_penaltynumberFrequency-based repetition penalty from 0 to 1.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Check API KeyCOHERE_CHECK_API_KEYAcciónCheck whether the connected Cohere API key is valid and return its organization and owner identifiers when available.
COHERE_CHECK_API_KEYAcciónCheck whether the connected Cohere API key is valid and return its organization and owner identifiers when available.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create BatchCOHERE_CREATE_BATCHAcciónStart one asynchronous Cohere batch from an existing validated batch request dataset and return immediately without polling. Cohere requires a production API key for the Batch API.
COHERE_CREATE_BATCHAcciónStart one asynchronous Cohere batch from an existing validated batch request dataset and return immediately without polling. Cohere requires a production API key for the Batch API.
Parámetros de entrada
namestringObligatorioHuman-readable name for the new batch.
modelstringObligatorioCohere model that will process the batch dataset.
input_dataset_idstringObligatorioIdentifier of a validated Cohere batch request dataset.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create DatasetCOHERE_CREATE_DATASETAcciónUpload a Cohere dataset and start asynchronous validation. Returns immediately without waiting for validation to finish.
COHERE_CREATE_DATASETAcciónUpload a Cohere dataset and start asynchronous validation. Returns immediately without waiting for validation to finish.
Parámetros de entrada
dataobjectObligatorioPrimary CSV or JSONL dataset file to upload.
namestringObligatorioDataset name; must contain fewer than 50 characters.
typestringObligatorioenumDataset type used by Cohere to validate the uploaded records.
embed-inputembed-resultcluster-resultcluster-outliersreranker-finetune-inputsingle-label-classification-finetune-inputchat-finetune-inputmulti-label-classification-finetune-inputbatch-chat-inputbatch-openai-chat-inputbatch-embed-v2-inputbatch-chat-v2-inputeval_dataobjectOptional evaluation CSV or JSONL dataset file to upload.
keep_fieldsstring[]Source fields that must exist and should be retained in the dataset.
csv_delimiterstringSingle-character delimiter used to parse CSV uploads.
text_separatorstringSeparator Cohere should use to split raw text uploads into records.
optional_fieldsstring[]Source fields to retain when present without requiring them.
keep_original_filebooleanWhether Cohere should retain the original uploaded file.
skip_malformed_inputbooleanWhether to drop malformed rows instead of failing validation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Create Embed JobCOHERE_CREATE_EMBED_JOBAcciónStart one asynchronous Cohere embedding job for a validated embed-input dataset and return immediately without polling.
COHERE_CREATE_EMBED_JOBAcciónStart one asynchronous Cohere embedding job for a validated embed-input dataset and return immediately without polling.
Parámetros de entrada
namestringOptional human-readable name for the embed job.
modelstringObligatorioCohere embedding model to use for the job.
truncatestringenumOverlength behavior: START discards the beginning; END discards the end.
STARTENDdataset_idstringObligatorioValidated Cohere embed-input dataset to process.
input_typestringObligatorioenumHow the resulting embeddings will be used: search_document, search_query, classification, clustering, or image.
search_documentsearch_queryclassificationclusteringimageembedding_typesstring[]Optional embedding encodings to produce: float, int8, uint8, binary, ubinary, or base64.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete DatasetCOHERE_DELETE_DATASETAcciónPermanently delete a Cohere dataset by ID. This deletion cannot be undone.
COHERE_DELETE_DATASETAcciónPermanently delete a Cohere dataset by ID. This deletion cannot be undone.
Parámetros de entrada
idstringObligatorioCohere dataset ID to permanently delete.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Detokenize TokensCOHERE_DETOKENIZE_TOKENSAcciónConvert ordered Cohere token IDs back to text using the tokenizer for an explicit matching model.
COHERE_DETOKENIZE_TOKENSAcciónConvert ordered Cohere token IDs back to text using the tokenizer for an explicit matching model.
Parámetros de entrada
modelstringObligatorioCohere model whose tokenizer produced the token IDs; it must match the tokenization model.
tokensinteger[]ObligatorioCohere token IDs to detokenize in order; use the exact order returned by tokenization.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Embed InputsCOHERE_EMBED_INPUTSAcciónCreate v2 embeddings from exactly one input form: text strings, image data URIs, or structured multimodal content.
COHERE_EMBED_INPUTSAcciónCreate v2 embeddings from exactly one input form: text strings, image data URIs, or structured multimodal content.
Parámetros de entrada
modelstringObligatorioCohere embedding model name, such as embed-v4.0; discover choices with COHERE_LIST_MODELS endpoint=embed.
textsstring[]One to 96 text strings to embed. Provide exactly one of texts, images, or inputs.
imagesstring[]Image data URIs to embed. JPEG, PNG, WebP, and GIF are supported. Embed v3 accepts one image up to 5 MB; v4 and newer accept up to 20 MB of image data combined.
inputsobject[]One to 96 structured multimodal inputs. Each input contains a non-empty ordered list of text or image_url blocks.
priorityintegerScheduling priority; lower numbers are handled earlier.
truncatestringenumOverlength behavior: NONE errors, START discards the beginning, and END discards the end.
NONESTARTENDinput_typestringObligatorioenumPurpose of the input: search_document, search_query, classification, clustering, or image.
search_documentsearch_queryclassificationclusteringimagemax_tokensintegerMaximum tokens embedded per input before applying truncate.
embedding_typesstring[]Vector encodings to return: float, int8, uint8, binary, ubinary, or base64.
output_dimensionintegerenumFor embed-v4 and newer, output dimensions: 256, 512, 1024, or 1536.
25651210241536
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get BatchCOHERE_GET_BATCHAcciónRetrieve one asynchronous Cohere batch's status and counters by batch ID. A usable batch ID depends on a production-key CREATE_BATCH lifecycle; this action performs one read only, and callers control any bounded polling.
COHERE_GET_BATCHAcciónRetrieve one asynchronous Cohere batch's status and counters by batch ID. A usable batch ID depends on a production-key CREATE_BATCH lifecycle; this action performs one read only, and callers control any bounded polling.
Parámetros de entrada
idstringObligatorioBatch ID returned by CREATE_BATCH or LIST_BATCHES.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get DatasetCOHERE_GET_DATASETAcciónRetrieve one Cohere dataset by ID, including its asynchronous validation state, schema, files, parsing details, and metrics. Callers control any polling and should bound it.
COHERE_GET_DATASETAcciónRetrieve one Cohere dataset by ID, including its asynchronous validation state, schema, files, parsing details, and metrics. Callers control any polling and should bound it.
Parámetros de entrada
idstringObligatorioCohere dataset ID returned by a dataset create or list operation.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Dataset UsageCOHERE_GET_DATASET_USAGEAcciónRead the organization's Cohere dataset-storage consumption in bytes.
COHERE_GET_DATASET_USAGEAcciónRead the organization's Cohere dataset-storage consumption in bytes.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Embed JobCOHERE_GET_EMBED_JOBAcciónRetrieve one Cohere asynchronous embedding job's current status, model, and input and output dataset identifiers by job ID.
COHERE_GET_EMBED_JOBAcciónRetrieve one Cohere asynchronous embedding job's current status, model, and input and output dataset identifiers by job ID.
Parámetros de entrada
idstringObligatorioUnique identifier of the embedding job to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get ModelCOHERE_GET_MODELAcciónRetrieve a Cohere model's endpoint compatibility, context size, features, tokenizer, and default sampling parameters by model name.
COHERE_GET_MODELAcciónRetrieve a Cohere model's endpoint compatibility, context size, features, tokenizer, and default sampling parameters by model name.
Parámetros de entrada
modelstringObligatorioCohere model name to retrieve.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List BatchesCOHERE_LIST_BATCHESAcciónReturn one page of asynchronous Cohere batches and their statuses without creating or cancelling work.
COHERE_LIST_BATCHESAcciónReturn one page of asynchronous Cohere batches and their statuses without creating or cancelling work.
Parámetros de entrada
order_bystringenumSort batches by creation time or last-updated time.
created_atupdated_atpage_sizeintegerMaximum batches to return on this page (1-1000).
next_cursorstringContinuation token returned by a prior call. Omit for the first page; pass the returned value back unchanged to fetch the next page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List DatasetsCOHERE_LIST_DATASETSAcciónReturn one offset-based page of Cohere datasets, optionally filtered by type, validation status, or creation time. Cohere provides no total or continuation metadata, so callers control offset explicitly.
COHERE_LIST_DATASETSAcciónReturn one offset-based page of Cohere datasets, optionally filtered by type, validation status, or creation time. Cohere provides no total or continuation metadata, so callers control offset explicitly.
Parámetros de entrada
afterstringdate-timeReturn datasets created after this timestamp.
limitintegerMaximum datasets to return on this page; must be positive.
beforestringdate-timeReturn datasets created before this timestamp.
offsetintegerZero-based number of datasets to skip. Increase it by returned_count to request the following page.
dataset_typestringFilter datasets by the type recorded on the dataset.
validation_statusstringenumFilter datasets by their current validation status.
unknownqueuedprocessingfailedvalidatedskipped
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Embed JobsCOHERE_LIST_EMBED_JOBSAcciónList Cohere asynchronous embedding jobs and their current statuses.
COHERE_LIST_EMBED_JOBSAcciónList Cohere asynchronous embedding jobs and their current statuses.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List ModelsCOHERE_LIST_MODELSAcciónDiscover Cohere model names and capabilities, optionally filtered to an endpoint or its default model. Returns one page without auto-pagination.
COHERE_LIST_MODELSAcciónDiscover Cohere model names and capabilities, optionally filtered to an endpoint or its default model. Returns one page without auto-pagination.
Parámetros de entrada
endpointstringenumFilter to models compatible with chat, embed, classify, summarize, rerank, rate, or generate.
chatembedclassifysummarizererankrategeneratepage_sizeintegerRequested models on this page (1-1000). The default of 1000 reduces exposure to Cohere's observed missing continuation token.
next_cursorstringContinuation token from a prior response. Repeat the same endpoint and default_only filters when continuing; omit for the first page.
default_onlybooleanReturn only the endpoint's default model. Requires endpoint.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Rerank DocumentsCOHERE_RERANK_DOCUMENTSAcciónRank text documents by relevance to a query and return the highest-scoring source documents.
COHERE_RERANK_DOCUMENTSAcciónRank text documents by relevance to a query and return the highest-scoring source documents.
Parámetros de entrada
modelstringObligatorioCohere rerank model name; discover current choices with COHERE_LIST_MODELS endpoint=rerank.
querystringObligatorioSearch query used to score the documents.
top_nintegerMaximum highest-ranked results to return; must not exceed the number of documents.
priorityintegerScheduling priority; lower numbers are handled earlier.
documentsstring[]ObligatorioNon-empty text documents to rank; result indexes refer to this zero-based array.
max_tokens_per_docintegerMaximum tokens considered from each document.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Tokenize TextCOHERE_TOKENIZE_TEXTAcciónConvert text into token IDs with an explicit Cohere model. Detokenization must use the same model because token IDs differ between model tokenizers.
COHERE_TOKENIZE_TEXTAcciónConvert text into token IDs with an explicit Cohere model. Detokenization must use the same model because token IDs differ between model tokenizers.
Parámetros de entrada
textstringObligatorioText to tokenize, from 1 to 65,536 characters.
modelstringObligatorioModel whose tokenizer to use. Use the same model when detokenizing these token IDs.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Transcribe AudioCOHERE_TRANSCRIBE_AUDIOAcciónTranscribe an uploaded audio file to text with a Cohere transcription model.
COHERE_TRANSCRIBE_AUDIOAcciónTranscribe an uploaded audio file to text with a Cohere transcription model.
Parámetros de entrada
fileobjectObligatorioAudio file to transcribe. Supported file extensions are .flac, .mp3, .mpeg, .mpga, .ogg, and .wav.
modelstringObligatorioCohere transcription model ID.
languagestringObligatorioLanguage of the audio in ISO-639-1 format.
temperaturenumberSampling temperature from 0 to 1; lower values are more deterministic.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not