Agent Definition
An agent declares its provider, model and tasks, or uses an agent main block for executable logic. Ollama is the dedicated implemented model adapter; additional provider names and transport metadata are not working adapters.
| Field | Behavior |
|---|---|
provider, model | Select Ollama and a separately installed model. |
temperature | Model sampling option; lower values do not guarantee deterministic output. |
max_tokens, num_ctx | Requested generation/context limits, subject to backend behavior. |
delay | Finite non-negative post-delay after a successful whole-agent invocation. |
timeout | Total cooperative budget for this invocation, capped by its parent. |
endpoint, transport | Declaration metadata does not establish alternate CLI endpoints or gRPC support. The CLI uses its configured local Ollama service. |
Tasks and Input/Output
Tasks have explicit or inherited input, a prompt list, and optional delay/timeout. The following is a complete two-task example; Summarize receives Analyze.output.
| Input or access | Current behavior |
|---|---|
input = __input__ | Use the whole-agent invocation argument. |
input = Analyze.output | Read the prior task’s published output. |
| No input field | Use the previous task output, or the agent argument for the first task. |
input = null | Explicit null; no fallback. |
Processor.Analyze / Processor.Analyze.output | Read published cached output. |
input = Processor->Analyze | Read available cached output in an input field. |
Processor->Analyze(value) | Explicit task execution. |
Calling Agents: Three Forms
Whole-agent calls, explicit task calls and pipeline stages use different invocation forms. This local example needs no model because the agents execute main blocks.
| Form | Behavior |
|---|---|
Agent(value) | Run the agent; sequential tasks follow declaration order unless a graph is used. |
Agent->Task(value) | Run one task; no whole-agent post-delay. |
value >> A >> B | Pass each stage’s result to the next agent. |
Agent.Task | Read a published task result rather than invoke it. |
Task Graphs
Basic ordered task chains are implemented. The same input/output resolution applies to sequential and graph execution. Parser acceptance of edge attributes does not establish complete conditional, confidence or retry policy behavior.
Parallel Execution
Independent assignment/expression branches run on bounded native workers with deep lexical snapshots. Put loops or other control flow inside a function called from a branch.
- A block uses at most eight workers, bounded by branch count and detected CPU concurrency; nested blocks have separate bounded pools.
- Branches cannot read sibling assignments. Successful results, task caches and buffered print output publish in source order.
- A failure requests cooperative sibling cancellation; jobs are joined before returning and assignment/cache updates are not committed.
- Memory/file/network/SQL side effects are not automatically rolled back. Some native services remain serialized; model servers may queue requests.
Pipeline Operator >>
input >> [AgentA, AgentB] runs a group concurrently and retains the last declared branch result for compatibility. Use named assignments in parallel when you need each returned value. Shared model hardware may still serialize generation.
Compute and GPU Options
Compute and model options are passed to Ollama. Backend/model support determines actual placement, memory use and concurrency.
| Option | Current contract |
|---|---|
compute = auto / gpu / cpu | auto and gpu request num_gpu=-1; cpu requests num_gpu=0 and a default num_thread=4. |
num_gpu | Direct layer preference when compute does not override it; placement remains backend-dependent. |
num_thread | Ollama inference threads, not Axon parallel worker count. |
main_gpu, num_batch | Passed model/backend preferences. |
f16_kv, low_vram | Passed options; no universal support or VRAM-reduction guarantee. |
gpu_fallback | Parsed/request metadata; automatic GPU-failure CPU retry is not implemented by the current adapter. |