Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Overview

The awaken crate is the public facade for the Awaken agent framework. It re-exports types from the internal awaken-contract and awaken-runtime crates so that downstream code only needs a single dependency.

Module re-exports

Facade pathSource crateContents
awaken::contractawaken-contractTool trait, events, messages, suspension, lifecycle
awaken::modelawaken-contractPhase, EffectSpec, ScheduledActionSpec, JsonValue
awaken::registry_specawaken-contractAgentSpec, ModelSpec, ProviderSpec, McpServerSpec, PluginConfigKey
awaken::stateawaken-contract + awaken-runtimeStateKey, StateMap, Snapshot, StateStore, MutationBatch
awaken::agentawaken-runtimeAgent configuration and state
awaken::builderawaken-runtimeAgentRuntimeBuilder, BuildError
awaken::contextawaken-runtimePhaseContext
awaken::engineawaken-runtimeLLM engine abstraction
awaken::executionawaken-runtimeExecutionEnv
awaken::extensionsawaken-runtimeBuilt-in extension infrastructure
awaken::loop_runnerawaken-runtimeAgent loop runner
awaken::phaseawaken-runtimePhaseRuntime, PhaseHook
awaken::pluginsawaken-runtimePlugin, PluginDescriptor, PluginRegistrar
awaken::policiesawaken-runtimeContext window and retry policies
awaken::registryawaken-runtimeAgentResolver, ResolvedAgent
awaken::runtimeawaken-runtimeAgentRuntime
awaken::storesawaken-storesFile and Postgres store implementations

Feature-gated modules

Facade pathFeature flagSource crate
awaken::ext_permissionpermissionawaken-ext-permission
awaken::ext_observabilityobservabilityawaken-ext-observability
awaken::ext_mcpmcpawaken-ext-mcp
awaken::ext_skillsskillsawaken-ext-skills
awaken::ext_generative_uigenerative-uiawaken-ext-generative-ui
awaken::ext_reminderreminderawaken-ext-reminder
awaken::serverserverawaken-server

Root-level re-exports

The following types are re-exported at the crate root for convenience:

From awaken-contract: AgentSpec, EffectSpec, FailedScheduledActions, JsonValue, KeyScope, MergeStrategy, PendingScheduledActions, PersistedState, Phase, PluginConfigKey, ScheduledActionSpec, Snapshot, StateError, StateKey, StateKeyOptions, StateMap, TypedEffect, UnknownKeyPolicy

From awaken-runtime: AgentResolver, AgentRuntime, AgentRuntimeBuilder, BuildError, CancellationToken, CommitEvent, CommitHook, DEFAULT_MAX_PHASE_ROUNDS, ExecutionEnv, MutationBatch, PhaseContext, PhaseHook, PhaseRuntime, Plugin, PluginDescriptor, PluginRegistrar, ResolvedAgent, RunRequest, RuntimeError, StateCommand, StateStore, TypedEffectHandler, TypedScheduledActionHandler

Feature flags

FlagDefaultDescription
permissionyesTool-level permission gating (HITL)
observabilityyesTracing and metrics integration
mcpyesMCP (Model Context Protocol) tool bridge
skillsyesSkills subsystem for reusable agent capabilities
reminderyesReminder extension for injecting context messages
serveryesHTTP server with SSE streaming and protocol adapters
generative-uiyesGenerative UI component streaming
fullyesEnables all of the above