Recursive AI
onellmDocs

onellm docs

Everything about OneLLM: getting started, the runtime, agents, deciders, providers and deployments, pricing, stores, the onellm tool, the file formats, and the project’s own results.

Agents, scripts and deciders

AgentsAn agent is a definition run as an instance with tools. Llm.RunAgentAsync(path, inputs) runs one to rest and returns an AgentResult; Llm.StartAgentAsync(...) returns an AgentRun to follow, steer, approve and cancel; Runtime has the same calls plus GetAgentAsync(instanceId) to…Capabilities and built-in toolsWhat a tool may touch is decided by the host, never by a definition. The host passes a Capabilities value to the Runtime; every built-in tool asks it before it reads a file, starts a process or opens a connection. A definition's references only name tools; if a reference…DecidersA decider answers typed questions about some state: which team should handle this ticket (choice), how urgent is it (score), is the customer angry (a yes/no probability). The definition is a decider.yaml (format: spec/definitions.md); optional logic turns the caller's inputs…TemplatingOneLlm.Templating renders prompts written in the language of Go's text/template package. It is a standalone engine: it knows nothing about agents or providers, takes a tree of plain values as its scope, and is used by definitions, scripted runs and deciders. Parsed templates…Tool signatures and JSON SchemaThis note is the contract between a C# method signature and the JSON Schema 2020-12 the model sees. Two implementations follow it and a test keeps them identical: the [Tool] source generator (compile time, trim/AOT-safe) and Tool.Create(delegate) (reflection). Other libraries…JavaScript tools and hooksThe RecursiveAI.OneLlm.JavaScript package runs JavaScript on OneEcma in a sandbox. It adds four things to the core runtime: tool files, hook files, decider logic and the run_javascript built-in. It references the core package and OneEcma only.