#+TITLE: SKILL: Ollama Provider Agent (Universal Literate Note) #+ID: skill-provider-ollama #+STARTUP: content #+FILETAGS: :llm:provider:ollama:local:psf: * Overview The *Ollama Provider Agent* enables the use of local, privacy-preserving LLM models. It integrates with a local Ollama instance to ensure system functionality and sovereignty without external internet connectivity. * Phase A: Demand (PRD) :PROPERTIES: :STATUS: FROZEN :END: ** 1. Purpose Define the interface for communication with a local Ollama daemon. ** 2. User Needs - *Sovereignty:* Fallback backend independent of cloud providers. - *Performance:* Efficient local network interaction. - *Simplicity:* Deterministic, non-streaming text generation. ** 3. Success Criteria *** TODO Local API Connectivity *** TODO Model Specification (llama3) *** TODO Response Extraction Verification * Phase B: Blueprint (PROTOCOL) :PROPERTIES: :STATUS: SIGNED :END: ** 1. Architectural Intent Interfaces for executing neural completion requests via the local Ollama API. ** 2. Semantic Interfaces #+begin_src lisp (defun execute-ollama-request (prompt system-prompt) "Executes a completion request via local Ollama.") #+end_src * Phase D: Build (Implementation) ** Local Execution #+begin_src lisp :tangle projects/org-skill-provider-ollama/src/provider-logic.lisp (defun execute-ollama-request (prompt system-prompt) (let ((url "http://host.docker.internal:11434/api/generate") (model "llama3")) ;; Physical local call logic (mocked for refactor) (format nil "Executing local Ollama request on ~a" model))) #+end_src * Registration #+begin_src lisp (defskill :skill-provider-ollama :priority 100 :trigger (lambda (context) nil) :neuro (lambda (context) nil) :symbolic (lambda (action context) action)) #+end_src