Expand description
Compatibility package that re-exports the primary awaken umbrella crate.
New code should depend on the published awaken package directly. This
package exists so existing awaken-agent users can move to the new release
line without changing import paths.
Modules§
- agent
- builder
- Fluent builder API for constructing
AgentRuntime. - context
- Context management: compaction, summarization, truncation, and plugin state.
- contract
- engine
- Engine layer: genai-backed LLM executor and type conversion.
- execution
- Tool execution concerns: executors.
- ext_
generative_ ui - ext_mcp
- Model Context Protocol (MCP) client integration for external tool servers.
- ext_
observability - LLM telemetry plugin aligned with OpenTelemetry GenAI Semantic Conventions.
- ext_
permission - Permission extension for the awaken agent framework.
- ext_
reminder - Reminder extension for the awaken agent framework.
- ext_
skills - Skill subsystem for awaken.
- extensions
- Bundled extensions for the awaken runtime.
- loop_
runner - Minimal sequential agent loop driven by state machines.
- model
- phase
- plugins
- policies
- Stop condition policy system and built-in policies.
- prelude
- One-import convenience module for awaken.
- registry
- Registry traits, in-memory implementations, and agent resolution.
- registry_
spec - Serializable agent definition — pure data, no trait objects.
- runtime
- server
- HTTP server layer for the awaken agent framework.
- state
- Combined state types from both the contract and runtime layers.
- stores
- Storage backend implementations for the awaken framework.
Structs§
- Agent
Runtime - Top-level agent runtime. Manages runs across threads.
- Agent
Runtime Builder - Fluent API for constructing an
AgentRuntime. - Agent
Spec - Serializable agent definition referencing registries by ID.
- Agent
Spec Patch - Patch for built-in agent customization.
- Cancellation
Token - A cooperative cancellation token.
- Commit
Event - Config
Record - Wrapper carrying a spec plus provenance + lifecycle metadata.
- Execution
Env - Per-run execution environment.
- Failed
Scheduled Actions - Mock
Provider Profile - Explicit mock provider wiring for tests and local development.
- Mutation
Batch - A batch of state mutation operations.
- NoConfig
Patch - Empty patch for spec types that do not support field-level overrides.
- Pending
Scheduled Actions - Persisted
State - Phase
Context - Execution context passed to phase hooks and action handlers.
- Phase
Runtime - Plugin
Descriptor - Plugin
Registrar - Provider
Removal Impact - Provider
Removal Preview - Record
Meta - Provenance + lifecycle metadata for a stored spec.
- Redacted
String - String wrapper whose
Debug/Displayimplementations never reveal the underlying value, and whose buffer is zeroized on drop. - Registry
Resource Ref - Registry
Validation Error - Resolved
Agent - A fully resolved agent: all capabilities + plugin environment, ready to run.
- RunRequest
- Unified request for starting or resuming a run.
- Runtime
Registry Update - Serializable
Registry Diagnostic - Snapshot
- State
Command - A command that carries state mutations, scheduled actions, and effects.
- State
KeyOptions - State
Map - State
Store - Typed
Effect
Enums§
- Build
Error - Error returned when the builder cannot construct the runtime.
- Config
Record Error - Error returned while decoding a
ConfigRecordor applying its overrides. - Config
Validation Error - Json
Value - Represents any valid JSON value.
- KeyScope
- Lifetime scope for a state key.
- Merge
Strategy - Parallel merge strategy for a state key.
- Phase
- Lifecycle phase within an agent run.
- Provider
Removal Policy - Record
Source - Who wrote this record into ConfigStore.
- Registry
Diagnostic - Registry
Diagnostic Severity - Registry
Update Error - Runtime
Error - Runtime-specific errors that wrap
StateErrorand add variants for agent resolution and run management. - State
Error - Unknown
Field Policy - Unknown-field behavior for a serializable config surface.
- Unknown
KeyPolicy
Constants§
- AGENT_
SPEC_ PATCH_ UNKNOWN_ FIELD_ POLICY - AGENT_
SPEC_ UNKNOWN_ FIELD_ POLICY AgentSpecandAgentSpecPatchreject unknown fields.- DEFAULT_
MAX_ PHASE_ ROUNDS - MODEL_
BINDING_ SPEC_ UNKNOWN_ FIELD_ POLICY - PROVIDER_
SPEC_ UNKNOWN_ FIELD_ POLICY ProviderSpec’s serde implementation is intentionally lenient for read-time compatibility, but config write/validate surfaces reject unknown fields so operators do not persist silently ignored provider settings.
Traits§
- Agent
Resolver - Resolves an agent by ID, producing a ready-to-execute config + environment.
- Commit
Hook - Config
Record Merge - Spec types that can apply
RecordMeta::user_overridesat read time. - Effect
Spec - Phase
Hook - Plugin
- Plugin
Config Key - Typed plugin configuration key.
- Scheduled
Action Spec - State
Key - Tool
Gate Hook - Typed
Effect Handler - Typed
Scheduled Action Handler - Typed
Tool - A strongly-typed tool trait that derives its descriptor schema from
Args.
Functions§
- decode_
config_ record - Decode a value into
ConfigRecord<T>, accepting either an envelope or a legacy bare spec. This does not validateRecordMeta::user_overrides. - diagnose_
agent_ spec - diagnose_
registry_ set - diagnose_
registry_ set_ serializable - effective_
config_ record - Apply
RecordMeta::user_overridesto the record’s base spec. - effective_
visible_ config_ records - Decode visible records and return their effective specs.
- generate_
tool_ schema - Generate a JSON Schema for
Tthat is suitable for LLM tool calling. - merge_
agent_ spec - Apply a
AgentSpecPatchon top of a baseAgentSpec, producing the effective spec passed to the resolver. - preview_
provider_ removal - rebuild_
agent_ model_ provider_ registries - sanitize_
for_ llm - Sanitize a JSON Schema value in-place to be LLM-friendly.
- validate_
against_ schema - Validate
argsagainst a JSON Schema, returning an error with joined messages on failure. - validate_
agent_ spec - Validate and decode an
AgentSpec. - validate_
agent_ spec_ patch - Validate and decode an
AgentSpecPatch. - validate_
config_ record - Validate and decode a config record envelope, accepting legacy bare specs.
RecordMeta::user_overridesmust decode as the patch type forT. - validate_
config_ record_ overrides - Validate
RecordMeta::user_overridesfor an already decoded record. - validate_
model_ binding_ spec - Validate and decode a
ModelBindingSpecfor config write surfaces. - validate_
provider_ spec - Validate and decode a
ProviderSpecfor config write surfaces.