Skip to main content

Crate starweaver_context

Crate starweaver_context 

Source
Expand description

Agent context, checkpoint state, executor callbacks, and runtime evidence contracts.

Structs§

AgentCheckpoint
Serializable checkpoint emitted at a durable execution boundary.
AgentContext
Lifecycle-wide agent context.
AgentContextHandle
Shared compatibility handle for tools explicitly using the Legacy dependency profile.
AgentEvent
Product-neutral event published by runtime context and projected into streams.
AgentId
Runtime agent identifier.
AgentInfo
Metadata for a registered agent.
AgentResumeCursor
Compact cursor values durable stores use to resume and audit a run.
AgentResumeEvidence
Stable resume evidence for durable service runtimes and external session stores.
AgentRunState
Checkpointable state owned by the agent graph loop.
AgentStreamQueueRegistry
Runtime-only stream queue registry placeholder.
AgentToolState
Durable agent-owned state used by tool bundles.
BusMessage
Inter-agent or user steering message.
ContextHandoffHandle
Capability-specific mutable handle for context handoff state.
ContextLifecycleState
Context lifecycle fields for enter, exit, streaming, and compaction state.
ContextMutationHandles
Runtime-owned collection of isolated context mutation cells for one tool call.
DependencyStore
Type-indexed dependency container for runtime and tool contexts.
EventBus
Append-only in-memory event bus.
HostCapabilities
Read-only host capability registry supplied to runtime hooks and tool calls.
MessageBus
Subscriber/cursor message bus with idempotent send and consume.
ModelConfig
Runtime model configuration stored on crate::AgentContext.
NoteStore
Serializable note store carried by context state.
PerThousandRatio
Fixed-point ratio stored as parts per thousand.
ResumableExportOptions
Export options for context restoration state.
ResumableState
Serializable state used to restore an agent context.
RuntimeEphemeralState
Runtime-only context state excluded from resumable session snapshots.
SecurityConfig
Security-related runtime configuration.
ShellEnvironmentSnapshot
Dedicated configured shell environment supplied only to authorized tool calls.
ShellReviewConfig
Shell command safety review configuration.
StateStore
In-memory state store for context domains.
Task
Agent-managed task record used by task tools and display snapshots.
TaskContextHandle
Capability-specific mutable handle for task-manager state.
TaskManager
Manager for task lifecycle and dependencies.
TaskSnapshot
Full task board snapshot transported through custom events.
ToolCapabilityGrant
Host-authorized dependency grants for one Strict tool.
ToolConfig
Tool-level configuration stored on crate::AgentContext.
ToolIdWrapper
Tool call ID normalizer for cross-provider tool call matching.
ToolRuntimeSnapshot
Narrow, read-only configuration snapshot available during tool execution.
ToolSearchContextHandle
Capability-specific mutable handle for tool-search state and sideband events.
ToolSearchInvalidation
Removed tool-search state after host invalidation or refresh.
ToolSearchState
Loaded tool-search state.
UsageContextHandle
Capability-specific mutable handle for usage accounting.

Enums§

AgentExecutionDecision
Decision returned by an execution checkpoint handler.
AgentExecutorError
Executor failure.
ModelCapability
Model capabilities that influence tool and media behavior.
ShellReviewAction
Shell review action for commands that require policy intervention.
ShellReviewRiskLevel
Shell review risk threshold.
TaskStatus
Task execution status.
ToolAvailabilityPolicy
Runtime policy for tools hidden by context-aware availability predicates.

Constants§

CONTEXT_HANDOFF_CAPABILITY
Stable grant name for handoff and auto-load context mutations.
CONTEXT_TASKS_CAPABILITY
Stable grant name for task-manager mutations and snapshots.
CONTEXT_TOOL_SEARCH_CAPABILITY
Stable grant name for tool-search state and event mutations.
CONTEXT_USAGE_CAPABILITY
Stable grant name for usage-ledger mutations.
TASK_SNAPSHOT_EVENT_KIND
Custom event kind emitted with a full task board snapshot.

Traits§

AgentExecutor
Callback contract for persistence, interruption, and durable scheduling.

Type Aliases§

DeferredToolMetadata
Metadata for one deferred tool call.
ModelWrapperMetadata
Runtime model wrapper placeholder. Actual wrapper functions are crate-specific dependencies.
WrapperMetadata
Runtime wrapper metadata passed to model/subagent wrapper equivalents.