Ollama
ollamaRun large language models locally or in the cloud with Ollama
Acciones disponibles (8)
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.
Chat with Ollama modelOLLAMA_CHATAcciónTool to send a chat message with conversation history to Ollama. Use when you need to have a multi-turn conversation with an LLM model.
OLLAMA_CHATAcciónTool to send a chat message with conversation history to Ollama. Use when you need to have a multi-turn conversation with an LLM model.
Parámetros de entrada
modelstringObligatorioModel name to use for generating responses
thinkanyEnables thinking output; accepts true/false or 'high'/'medium'/'low'
toolsobject[]Optional function tools the model may call during chat
formatanyFormat for response: 'json' or JSON schema object
streambooleanReturns streamed partial responses; defaults to false
optionsobjectRuntime options controlling text generation (ModelOptions)
logprobsbooleanReturns log probabilities of output tokens
messagesobject[]ObligatorioChat history as message objects with role and content
keep_aliveanyModel keep-alive duration (e.g., '5m' or 0 to unload immediately)
top_logprobsintegerNumber of most likely tokens per position when logprobs enabled
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Generate Text with OllamaOLLAMA_GENERATEAcciónTool to generate text responses from Ollama models with optional raw mode. Use raw=true to bypass prompt templating when you need full control over the prompt for debugging or custom processing. Note that raw mode will not return a context.
OLLAMA_GENERATEAcciónTool to generate text responses from Ollama models with optional raw mode. Use raw=true to bypass prompt templating when you need full control over the prompt for debugging or custom processing. Note that raw mode will not return a context.
Parámetros de entrada
rawbooleanWhen true, bypasses prompt templating and returns the raw response from the model. Use this for debugging or when you need full control over the prompt. Note: raw mode will not return a context.
modelstringObligatorioModel name to use for generation. Examples: 'llama2', 'mistral', 'gemma3:4b'.
thinkanyEnables thinking output. Accepts true/false or 'high'/'medium'/'low' for verbosity level.
formatanyStructured output format. Use 'json' for JSON output or provide a JSON schema object.
imagesstring[]Array of base64-encoded images for multimodal models.
promptstringText for the model to generate a response from. Required unless using raw mode with a complete prompt.
streambooleanWhen true, returns partial responses as stream. Default is false for non-streaming responses.
suffixstringText that appears after the user prompt. Used for fill-in-the-middle models.
systemstringSystem prompt for the model to generate a response from.
optionsobjectRuntime options for model generation behavior.
logprobsbooleanWhether to return log probabilities of output tokens.
keep_aliveanyModel keep-alive duration. Examples: '5m' for 5 minutes, 0 to unload immediately.
top_logprobsintegerNumber of most likely tokens to return at each position. Requires logprobs=true.
Parámetros de salida
dataobjectObligatorioData 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 ModelsOLLAMA_LIST_MODELSAcciónTool to list all available Ollama models and their details. Use when you need to fetch installed models with metadata including name, size, last modified timestamp, digest, and format information.
OLLAMA_LIST_MODELSAcciónTool to list all available Ollama models and their details. Use when you need to fetch installed models with metadata including name, size, last modified timestamp, digest, and format information.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
OpenAI-Compatible Chat CompletionOLLAMA_OPEN_AI_CHAT_COMPLETIONSAcciónTool to create OpenAI-compatible chat completions using Ollama models. Use when you need conversational AI responses with OpenAI API format compatibility.
OLLAMA_OPEN_AI_CHAT_COMPLETIONSAcciónTool to create OpenAI-compatible chat completions using Ollama models. Use when you need conversational AI responses with OpenAI API format compatibility.
Parámetros de entrada
nintegerNumber of chat completion choices to generate. Default: 1
seedintegerSeed for reproducible outputs. Same seed with same parameters produces same results
stopanyStop sequences where the API will stop generating further tokens. Can be a string or array of strings
userstringUnique identifier for the end-user for monitoring and abuse detection
modelstringObligatorioModel identifier to use for completion (e.g., 'llama2', 'mistral', 'gemma3:4b')
toolsobject[]Array of tool/function definitions available for the model to call
top_pnumberNucleus sampling parameter. Alternative to temperature. Default: 1.0
streambooleanEnable streaming responses. If true, tokens are sent as server-sent events. Default: false
messagesobject[]ObligatorioArray of message objects representing the conversation history
logit_biasobjectModify likelihood of specified tokens appearing in the completion. Map of token IDs to bias values (-100 to 100)
max_tokensintegerMaximum number of tokens to generate in the completion
temperaturenumberSampling temperature for randomness (0-2). Higher values make output more random. Default: 1.0
tool_choicestringControls which tool the model should use ('none', 'auto', or specific tool name)
stream_optionsobjectAdditional streaming options.
response_formatobjectResponse format specification for structured outputs.
presence_penaltynumberPenalize tokens that have appeared to encourage new topics (-2.0 to 2.0). Default: 0
frequency_penaltynumberPenalize frequent tokens to reduce repetition (-2.0 to 2.0). Default: 0
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
OpenAI-Compatible Text CompletionOLLAMA_OPEN_AI_COMPLETIONSAcciónTool to create OpenAI-compatible text completions using Ollama models. Use when you need text generation with OpenAI API format compatibility beyond chat-based interactions.
OLLAMA_OPEN_AI_COMPLETIONSAcciónTool to create OpenAI-compatible text completions using Ollama models. Use when you need text generation with OpenAI API format compatibility beyond chat-based interactions.
Parámetros de entrada
nintegerNumber of completions to generate for the prompt. Default: 1
echobooleanReturns the prompt embedded within the completion response. Default: false
seedintegerRandom seed for reproducible outputs. Same seed with same parameters should yield same result
stopanySequences where the model should stop generating. Can be a single string or array of strings
userstringUnique identifier representing the end-user for tracking and abuse monitoring
modelstringObligatorioModel identifier to use for completion (e.g., 'llama2', 'mistral', 'deepseek-v3.2')
top_pnumberNucleus sampling parameter controlling diversity (0-1). Recommended to alter either temperature or top_p, not both. Default: 1.0
promptstringObligatorioText prompt for completion generation. Note: Currently only accepts a string, not arrays
streambooleanEnable streaming responses as Server-Sent Events. Default: false
suffixstringText that comes after the completion. Used for insertion mode
best_ofintegerGenerates multiple completions server-side and returns the best one. Default: 1
logprobsintegerNumber of log probabilities to return (up to 5)
logit_biasobjectModify likelihood of specified tokens appearing. Maps token IDs to bias values (-100 to 100)
max_tokensintegerMaximum number of tokens to generate in the completion. Total of prompt + max_tokens cannot exceed model's context length
temperaturenumberControls randomness in output (0-2). Lower values make output more focused, higher values more random. Default: 1.0
stream_optionsobjectAdditional streaming options.
presence_penaltynumberPenalizes tokens based on whether they appear in text so far (-2.0 to 2.0). Positive values encourage new topics. Default: 0
frequency_penaltynumberPenalizes tokens based on frequency in text so far (-2.0 to 2.0). Positive values decrease repetition. Default: 0
Parámetros de salida
dataobjectObligatorioData 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 Models (OpenAI Compatible)OLLAMA_OPEN_AI_LIST_MODELSAcciónTool to list available models using OpenAI-compatible API format. Use when you need to retrieve locally available Ollama models with metadata following OpenAI's model list format.
OLLAMA_OPEN_AI_LIST_MODELSAcciónTool to list available models using OpenAI-compatible API format. Use when you need to retrieve locally available Ollama models with metadata following OpenAI's model list format.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Show Model InformationOLLAMA_SHOWAcciónTool to show comprehensive information about an Ollama model. Use when you need to retrieve model details, parameters, template, license, or system prompt.
OLLAMA_SHOWAcciónTool to show comprehensive information about an Ollama model. Use when you need to retrieve model details, parameters, template, license, or system prompt.
Parámetros de entrada
modelstringObligatorioThe name of the model to retrieve information about.
verbosebooleanWhen enabled, includes large verbose fields in the response.
Parámetros de salida
dataobjectObligatorioData 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 Ollama VersionOLLAMA_VERSIONAcciónTool to get the version of Ollama running locally. Use to check which version of Ollama is currently installed.
OLLAMA_VERSIONAcciónTool to get the version of Ollama running locally. Use to check which version of Ollama is currently installed.
Parámetros de entrada
Sin parámetros.
Parámetros de salida
dataobjectObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not