Skip to main content

Crate awaken

Crate awaken 

Source
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§

AgentRuntime
Top-level agent runtime. Manages runs across threads.
AgentRuntimeBuilder
Fluent API for constructing an AgentRuntime.
AgentSpec
Serializable agent definition referencing registries by ID.
CancellationToken
A cooperative cancellation token.
CommitEvent
ExecutionEnv
Per-run execution environment.
FailedScheduledActions
MutationBatch
A batch of state mutation operations.
PendingScheduledActions
PersistedState
PhaseContext
Execution context passed to phase hooks and action handlers.
PhaseRuntime
PluginDescriptor
PluginRegistrar
RedactedString
String wrapper whose Debug/Display implementations never reveal the underlying value, and whose buffer is zeroized on drop.
ResolvedAgent
A fully resolved agent: all capabilities + plugin environment, ready to run.
RunRequest
Unified request for starting or resuming a run.
Snapshot
StateCommand
A command that carries state mutations, scheduled actions, and effects.
StateKeyOptions
StateMap
StateStore
TypedEffect

Enums§

BuildError
Error returned when the builder cannot construct the runtime.
JsonValue
Represents any valid JSON value.
KeyScope
Lifetime scope for a state key.
MergeStrategy
Parallel merge strategy for a state key.
Phase
Lifecycle phase within an agent run.
RuntimeError
Runtime-specific errors that wrap StateError and add variants for agent resolution and run management.
StateError
UnknownKeyPolicy

Constants§

DEFAULT_MAX_PHASE_ROUNDS

Traits§

AgentResolver
Resolves an agent by ID, producing a ready-to-execute config + environment.
CommitHook
EffectSpec
PhaseHook
Plugin
PluginConfigKey
Typed plugin configuration key.
ScheduledActionSpec
StateKey
ToolGateHook
TypedEffectHandler
TypedScheduledActionHandler
TypedTool
A strongly-typed tool trait that derives its descriptor schema from Args.

Functions§

generate_tool_schema
Generate a JSON Schema for T that is suitable for LLM tool calling.
sanitize_for_llm
Sanitize a JSON Schema value in-place to be LLM-friendly.
validate_against_schema
Validate args against a JSON Schema, returning an error with joined messages on failure.