ollama-decision
Python SDK for Ollama's Decision API (/v1/systemone). Convert text into structured, typed responses without prose generation.
Installation
pip install ollama-decision
Quick start
from ollama_decision import OllamaSystem1, noul_question, choice_question, score_question
model = OllamaSystem1('nimble-v3:9b-q4_K_M', timeout=30)
Define questions
refund_q = noul_question('wants_refund', 'Does user demand a refund?') intent_q = choice_question('intent', 'Request category?', { 'billing': 'Payment issues', 'technical': 'Bugs and errors', 'other': 'Other' }) sentiment_q = score_question('sentiment', 'Emotional tone', [ 'Negative', 'Neutral', 'Positive' ])
Bind state and questions
model['ticket'] = "I want my money back, this is frustrating!" model << ('ticket', refund_q) << ('ticket', intent_q) << ('ticket', sentiment_q)
Execute
response = model('ticket') print(response.json())
Question types
Boolean question returning a probability (0.0 to 1.0).
noul_question(name, instruction)
q = noul_question('is_urgent', 'Is this request urgent?')
# Returns: {"noul": 0.95}
Single selection from a dictionary of options.
choice_question(name, instruction, criteria)
q = choice_question('department', 'Route to?', {
'sales': 'New purchases',
'support': 'Technical help',
'billing': 'Payment issues'
})
# Returns: {"choice": "billing", "confidence": 0.87, "probabilities": {...}}
Ordered scale evaluation (must be sorted from lowest to highest).
score_question(name, instruction, criteria)
q = score_question('priority', 'Priority level', [
'Low', 'Medium', 'High', 'Critical'
])
# Returns: {"score": 2.3, "confidence": 0.78, "probabilities": {...}}
OllamaSystem1 API
Methods & Operators
model = OllamaSystem1('nimble-v3:9b-q4_K_M') -- Constructor model[state_name] = text -- Bind input text to a state name. model << (state_name, question) -- Attach a question object to the specified state. model(state_name) -- Execute the API request and return the HTTP response object.
Supported Models
nimble-v3:9b-q4_K_M — Best for multilingual tasks and high accuracy. tev1:4b — Fast English classification. tev1:0.8b — Ultra-lightweight for constrained environments. ..etc
License
MIT
Metadata
Release files for ollama-decision 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ollama_decision-0.1.0.tar.gz | 6.8 kB | Without provenance | Details for ollama_decision-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ollama_decision-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ollama_decision-0.1.0-py3-none-any.whl |
Total release size: 11.7 kB
Release files / ollama_decision-0.1.0.tar.gz
| Download URL | ollama_decision-0.1.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b0f19ff1c2fd2704b0756936b8983a2d7989c735b4dbef77e430ee1aaff289d7
|
|
BLAKE2b-256 checksum How to use checksums |
0e352d4c2ce2f05d7e33bef464ee278b12a8949c02fbdf3f79553c1f89f7c1db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Release files / ollama_decision-0.1.0-py3-none-any.whl
| Download URL | ollama_decision-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dbcab0e89a020572777336dacc50a979d055eed7a34f8ecc412c5e23de41d2ad
|
|
BLAKE2b-256 checksum How to use checksums |
f3120204bc56143db096fe412e44f1b96041135327d5a65c71ab2658f54a4545
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.15
|
Security for ollama-decision 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.