NeuroAgent AI

API Reference

The public surface of neuroagent — everything below is importable from the top-level package: from neuroagent import .... Only names exported from neuroagent/__init__.py are stable; everything else is internal.

Core

NameWhat it is
AgentThe atom — runs prompts, tools, memory, RAG, tracing, cost
AgentResponsecontent, messages, usage, steps, trace_id
Message, Role, ToolCall, UsageNormalized message/usage primitives
SettingsGlobal defaults (provider/model), env-driven config
Tool, toolTool ABC and the @tool decorator

Composition

NameWhat it is
Workflow, StepDAG orchestration over agents/callables
Team, TeamMemberMulti-agent collaboration patterns
ChannelIn-process agent-to-agent messaging
DatabaseAgentNL → SQL, read-only by default
APIAgentNL → HTTP request, read-only by default
create_appFastAPI app factory ([server] extra)

Memory & RAG

NameWhat it is
MemoryMemory backend ABC (load/append/search)
KnowledgeBaseEmbed/store/retrieve documents for RAG

Observability & cost

NameWhat it is
Trace, TracerSpan-tree tracing of a run
CostTrackerToken usage → normalized cost

Security

NameWhat it is
RBACRoles → permissions, with * / ns:* wildcards
AuditLogAppend-only audit events (optional JSONL sink)
SecretStoreSecret resolution + masking (encryption via [security])
SandboxAllow/deny command policy for shell/code/SQL tools

Integrations

NameWhat it is
IntegrationBase class over the API-agent foundation
ShopifyIntegrationAdmin REST API
SalesforceIntegrationREST / SOQL
OdooIntegrationJSON-RPC execute_kw / search_read
SAPIntegrationOData v2/v4, OAuth or basic auth

Exceptions

Every exception derives from NeuroAgentError:

NameRaised when
ConfigErrorInvalid or missing configuration
ProviderErrorAn LLM provider call fails
ToolExecutionErrorA tool raises during execution
MemoryBackendErrorA memory backend operation fails
RetrievalErrorRAG retrieval fails
DatabaseErrorA database-agent query fails
APIErrorAn API-agent / integration request fails
WorkflowErrorA workflow step fails or the DAG is invalid
SecurityErrorRBAC/sandbox denies an action
MissingDependencyErrorAn extra is required but not installed
NotSupportedErrorA capability isn't supported by the active backend
Full implementation details and the architectural contracts (the ABCs) live in docs/ARCHITECTURE.md on GitHub.