Skip to main content

Crate atomr_agents_core

Crate atomr_agents_core 

Source
Expand description

Core types for the atomr-agents framework.

Re-exports§

pub use value::Json;

Modules§

inference
Re-exports of token/usage types from atomr_infer_core so downstream crates have a single import path for them.

Structs§

AgentContext
State the per-turn pipeline reads from. Strategies receive a reference to this; they do not mutate it directly (they return fragments which the ContextAssembler merges).
AgentId
CallCtx
Context passed to Callable::call. Carries the budgets so a callable can refuse work it can’t afford.
DepartmentId
EventEnvelope
Tagged envelope around an event with timestamp + correlation id.
HarnessId
InvokeCtx
Context passed to Tool::invoke.
IterationBudget
MemoryChunk
Retrieval unit. Memory strategies emit chunks; the assembler packs them into the prompt under the shared budget.
MemoryItem
Stored unit. The strategy decides what to put in payload.
Message
Conversation message — mirrors atomr_infer_core::batch::Message but lives at this layer so strategies can construct turns without pulling in the full inference crate.
MoneyBudget
Money budget. Stored as integer micro-USD to avoid float drift.
OrgId
PersonaId
RunId
SkillId
TeamId
TimeBudget
TokenBudget
Token budget threaded through every strategy resolution. Strategies consume from a shared budget; the ContextAssembler honors the final cap when packing fragments.
ToolId
ToolSetId
TurnInput
What a single agent turn consumes.
WorkflowId

Enums§

AgentError
Event
Structured event emitted by every observable boundary in the framework. Fed to atomr-telemetry, used by traces, metrics, and the eval-suite replay path.
MemoryKind
MemoryNamespace
Where a memory item lives in the org/team/agent hierarchy. Reads cascade outward (agent → team → org); writes are gated by policy.
MessageRole

Type Aliases§

Result
Value
The framework’s open-ended value type. Currently a re-export of serde_json::Value; the alias gives us a single point of change if we want a stricter representation later.