Documentation/User guide/Local Inkling 2 Mini with Ollama
v2.0.1Snapshot 07b6690Download Markdown ↓

Local Inkling 2 Mini with Ollama

Run Inkling 2 Mini on Apple silicon with Ollama 0.40.17 or newer. Start Ollama, then install the model:

bash
ollama pull inkling-2-mini

Create a Vendor.Ollama connector with auth: { type: 'none' } and use inkling-2-mini or a locally installed tag. The default Ollama server URL is http://localhost:11434/v1. Agent.run() and Agent.stream() use the ordinary OneRingAI agent loop, including registered application tools and image input. OneRingAI sends managed turns through Ollama's stateless Responses API and maintains conversation history on the agent side.

This Node.js example registers an application tool and attaches a PNG in a separate turn. Supply your own example.png in the working directory.

typescript
// Documentation check: complete example
import { readFile } from 'node:fs/promises';
import { Agent, Connector, Vendor, createMessageWithImages } from 'oneringai';
import type { ToolFunction } from 'oneringai';

Connector.create({
  name: 'ollama-local',
  vendor: Vendor.Ollama,
  auth: { type: 'none' },
  baseURL: 'http://localhost:11434/v1',
});

const getWorkshopHours: ToolFunction = {
  definition: {
    type: 'function',
    function: {
      name: 'get_workshop_hours',
      description: 'Look up the current opening hours for the demo workshop.',
      parameters: { type: 'object', properties: {}, additionalProperties: false },
    },
  },
  execute: async () => ({ opens: '09:00', closes: '17:00' }),
};

const agent = Agent.create({
  connector: 'ollama-local',
  model: 'inkling-2-mini',
  tools: [getWorkshopHours],
});

try {
  const hours = await agent.run('Use get_workshop_hours to tell me when the workshop closes.');
  console.log(hours.output_text);

  const png = await readFile('example.png');
  const image = `data:image/png;base64,${png.toString('base64')}`;
  const description = await agent.run([createMessageWithImages('What is in this image?', [image])]);
  console.log(description.output_text);
} finally {
  agent.destroy();
}

In AMOS, use /connector add, choose ollama and authentication none, then accept the endpoint and model defaults. Use /model info to check the active model and /image "~/Pictures/example.png" What is in this image? to attach an image to the next turn. AMOS accepts PNG, JPEG, and WebP up to 10 MiB. Image turns use the same tool permissions as text turns.

The effective context length depends on Ollama's server configuration and memory. OneRingAI uses its prompt-based structured-output path for this model. Local validation covered text turns, image input, and function calls. Ollama context length.


Documentation snapshot · 2026-11-23Suggest a correction ↗

Search documentation

Type to search the v2 documentation.