Skip to main content

nucleusiq-ollama

PyPI version PyPI downloads Python versions

Stable provider for running NucleusIQ agents against Ollama (local or hosted).

Install

0.2.2 — Development Status :: 5 - Production/Stable. Requires nucleusiq>=0.7.12 (pulled in automatically by pip).

pip install nucleusiq-ollama

Requires a running Ollama server unless you point OLLAMA_HOST at a remote instance. Optional: OLLAMA_API_KEY for authenticated endpoints.

Usage

from nucleusiq_ollama import BaseOllama, OllamaLLMParams

llm = BaseOllama(model_name="llama3.2", llm_params=OllamaLLMParams(think=True))

Runnable scripts (smoke, Agent DIRECT, streaming) live under examples/ — see examples/README.md.

See the Ollama provider guide for capability matrix, environment variables, and roadmap.

For Ollama's /v1 OpenAI shim (or any other Chat Completions server) use nucleusiq-openai-compatible instead — this package talks to the native Ollama API.

Status

0.2.2 — Development Status :: 5 - Production/Stable. Patch: multi-turn tool histories now send function.arguments as a mapping (the official ollama SDK rejects a JSON string). First stable line plus declared PROVIDER_NAME / dependency completeness.

  • Chat + streaming + tools + structured outputs (JSON schema / format) + think pass-through.
  • Vision (image messages) in the wire layer — OpenAI-style multimodal content lists with image_url parts whose URL is a data:image/*;base64,... data URL are converted to Ollama's message.images shape; HTTP(S) URLs are skipped with a warning (pre-encode them as data URLs to send images).
  • Observability — every Ollama LLM call now lands in AgentResult.llm_calls with provider="ollama" populated automatically by the core agent loop.
  • Floor nucleusiq>=0.7.12. 98 unit tests, coverage 99.85% (gate ≥ 95%).
  • Embeddings + web search remain planned follow-ups for 0.2.x / 0.3.x.

Metadata

Release files for nucleusiq-ollama 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nucleusiq-ollama 0.2.2
File Size Uploaded
nucleusiq_ollama-0.2.2.tar.gz 55.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nucleusiq-ollama 0.2.2
File Interpreter ABI Platform
nucleusiq_ollama-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 76.4 kB

Release files / nucleusiq_ollama-0.2.2.tar.gz

Download URL nucleusiq_ollama-0.2.2.tar.gz
Size 55.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6124eea1975d4322cb74618119c9ef81c0bc8a654e669679334432e39717d932
BLAKE2b-256 checksum
How to use checksums
a02e87626de888aa1093c3c675162dcaef5e2bc289b2030499d94453e0aaf3f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release files / nucleusiq_ollama-0.2.2-py3-none-any.whl

Download URL nucleusiq_ollama-0.2.2-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4ea3fb0e556a5c9d6c116795d1add4b09425a939c4e50d4ed9e67882930663f
BLAKE2b-256 checksum
How to use checksums
1a9045bca694b30bce9cbe28fc9eed7288c553cb5af8e262084fbd58fa3b7b1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 19, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page