Expand description
Embeddable, stateful Agent Runtime primitives for Rust applications.
Add application behavior as Bevy plugins, dispatch RuntimeCommand values,
and let the host execute the resulting effects.
Re-exports§
pub use bridge::RuntimeBridge;pub use bridge::RuntimeBridgeCancelParams;pub use bridge::RuntimeBridgeError;pub use bridge::RuntimeBridgeHelloParams;pub use bridge::RuntimeBridgeHelloPayload;pub use bridge::RuntimeBridgeInvocationEvent;pub use bridge::RuntimeBridgeInvokePayload;pub use bridge::RUNTIME_BRIDGE_CANCELLED_EVENT;pub use bridge::RUNTIME_BRIDGE_CANCEL_METHOD;pub use bridge::RUNTIME_BRIDGE_COMPLETED_EVENT;pub use bridge::RUNTIME_BRIDGE_FAILED_EVENT;pub use bridge::RUNTIME_BRIDGE_HELLO_METHOD;pub use bridge::RUNTIME_BRIDGE_INVOKE_METHOD;pub use bridge::RUNTIME_BRIDGE_OUTPUT_DELTA_EVENT;pub use bridge::RUNTIME_BRIDGE_STARTED_EVENT;pub use bridge::VIFU_RUNTIME_BRIDGE_PROTOCOL_VERSION;pub use protocol::decode_protocol_frame;pub use protocol::encode_protocol_frame;pub use protocol::ErrorShape;pub use protocol::EventFrame;pub use protocol::EventFrameType;pub use protocol::ProtocolFrame;pub use protocol::RequestFrame;pub use protocol::RequestFrameType;pub use protocol::ResponseFrame;pub use protocol::ResponseFrameType;pub use protocol::StateVersion;pub use protocol::MAX_PROTOCOL_FRAME_BYTES;pub use providers::LocalWhisperProvider;pub use providers::HttpCapabilityProvider;pub use providers::HttpCapabilityRoute;
Modules§
- bridge
- Engine-neutral bridge between a host application and
VifuRuntime. - prelude
- Common imports for application runtime plugins.
- protocol
- Transport-neutral frames shared by embedded hosts and Vifu Gateway.
- providers
Structs§
- Agent
Definition - An agent registered inside one application runtime.
- Cancellation
Token - Cooperative cancellation signal passed to providers.
- Effect
Execution - Result of running host effects through the runtime.
- Effect
Request - Effect
Request Queue - Effect
Result - Effect
Result Queue - Endpoint
Definition - A stable, named application endpoint backed by one registered agent.
- Headless
Runtime - Invocation
Event - One ordered event produced by an invocation.
- Invocation
Handle - Opaque handle returned by the game-loop invocation API.
- Invocation
Input - Input for one application-facing endpoint invocation.
- Invocation
Output - Result of one endpoint invocation.
- Invocation
Poll - Non-blocking game-loop poll result.
- Invocation
Trace Event - One safe trace event emitted by the application runtime.
- Local
Provider Binding - Local-only provider configuration kept outside portable releases.
- Memory
Runtime Store - In-memory persistence used by the standalone embedded runtime.
- Provider
Event Sink - Sink supplied to providers that can produce incremental output.
- Provider
Request - Request delivered to a dynamically registered
AgentProvider. - Provider
Requirement - A logical provider required by a runtime release.
- Provider
Response - Provider result and an optional replacement for the session’s durable state.
- Runtime
Advance - Runtime
Command - Runtime
Command Queue - Runtime
Event - Runtime
Event Queue - Runtime
Manifest - Portable runtime configuration shared by embedded and connected runtimes.
- Runtime
Monitor IoSummary - Bounded process-local I/O summary for an opt-in diagnostic observer.
- Runtime
Release - One immutable, content-addressed project runtime release.
- Runtime
Schedule - Runtime
Session - A session-scoped view over
VifuRuntime. - Runtime
Snapshot - Runtime
State - Runtime
Trace Record - Redacted invocation metadata waiting to be uploaded to an optional server.
- Sqlite
Runtime Store - SQLite-backed application state for an embedded Vifu runtime.
- Vifu
Runtime - A self-contained runtime for one application or project.
- Vifu
Runtime Plugin
Enums§
- Invocation
Data - JSON or binary data passed through an embedded runtime invocation.
- Invocation
Event Kind - Kind of event emitted while a non-blocking invocation is running.
- Invocation
Status - Current state of an invocation started with
VifuRuntime::start_invoke. - Provider
Event - A typed provider event emitted while an invocation is running.
- Provider
Stage - A provider stage that can be rendered as an observation in a live trace.
- Runtime
Error - Errors returned by the embedded application runtime.
- Runtime
Monitor Event - Payload-safe lifecycle metadata for one embedded runtime invocation.
- Runtime
Monitor IoEvent - Invocation I/O exposed only to an explicitly installed diagnostic observer.
- Runtime
Monitor Stage Status - State of a provider stage reported to an embedded runtime monitor.
- Runtime
Monitor Status - Terminal outcome reported to an embedded runtime monitor.
Constants§
Traits§
- Agent
Provider - Runtime-selected provider implementation.
- Runtime
Store - Persistence adapter supplied by an embedding host.
Type Aliases§
- Project
Settings - Portable provider, agent, and endpoint settings for one Vifu project.
- Provider
Future - A boxed provider future used by
AgentProvider. - Runtime
Monitor IoObserver - Thread-safe callback for bounded invocation I/O diagnostics.
- Runtime
Monitor Observer - Thread-safe callback installed by an embedding host that wants live, payload-safe runtime lifecycle metadata.