AI Agent
ai.agent AI v0.1.0 Conversational AI agent with a pluggable model (Ollama local/cloud), pluggable memory (state/file/in-memory), and tools (workflows + MCP). Calls tools in a loop until it can answer.
Ports
| Direction | Port | Label |
|---|---|---|
| Input | input | Message |
| Output | output | Reply |
Properties
| Property | Type | Default | Description |
|---|---|---|---|
Model providerprovider | select | "ollama" | Where the model runs. 'ollama' = a local Ollama daemon; 'ollama-cloud' = ollama.com (needs an API key). ollamaollama-cloud |
Modelmodel | string | "qwen2.5:0.5b" | Model name, e.g. qwen2.5:0.5b (local) or gpt-oss:20b (cloud). |
Base URLbaseUrl | string | "" | Override the endpoint. Defaults to http://localhost:11434 (local) or https://ollama.com (cloud). |
API keyapiKey | string | "" | Bearer key for the cloud provider. Leave blank for a local daemon. |
System promptsystem | string | "You are a helpful assistant." | The agent's persona and instructions. |
Rulesrules | json | [] | A list of short rules the agent must always follow. |
Toolstools | json | [] | Tools the agent may call. Each: { type:'workflow', name, description, parameters, workflowId } or { type:'mcp', command, args }. |
Output formatoutputFormat | select | "text" | text = a free-form reply; json = constrain the final answer to a JSON object. textjson |
MemorymemoryBackend | select | "state" | Where conversation history lives. state = durable host store; file = flat JSON files; inmemory = ephemeral. statefileinmemory |
Session keysessionKey | string | "{{ input.sessionId }}" | Template for the conversation id, e.g. {{ input.sessionId }}. Same key = same memory. |
User messagemessage | string | "{{ input.message }}" | Template for the user's message, e.g. {{ input.message }} or {{ input }}. |
Temperaturetemperature | auto | 0.2 | Sampling temperature (0 = deterministic, 1 = creative). |
Max tokensmaxTokens | int | 512 | Max tokens the model may emit per turn. |
Max tool roundsmaxIterations | int | 6 | How many tool-call rounds the agent may take before it must answer. |
History limithistoryLimit | int | 20 | How many prior turns to recall from memory. |
This page is generated from the node registry by gen-node-docs.mjs on every
site build — ports, properties, defaults and visibility rules cannot drift from the code.