bevy_rig 0.1.0

Bevy ECS primitives and systems for modeling providers, agents, tools, sessions, runs, and workflows on top of Rig.
Documentation
pub use crate::{
    agent::{
        Agent, AgentBundle, AgentContextRefs, AgentHandles, AgentLinkError, AgentModelError,
        AgentModelRef, AgentSpec, AgentToolRefs, PrimarySession, attach_context, attach_tool,
        bind_model, spawn_agent, spawn_agent_from_model,
    },
    app::{
        BevyRigPlugin, CatalogSync, RigExecutionSystems, RunCommit, RunCommitSystems, RunExecution,
        RunExecutionSystems, RunPreparation, RunPreparationSystems, StreamApplySystems, Telemetry,
        ToolDispatchSystems,
    },
    context::{
        ContextBundle, ContextDocument, ContextEmbeddingStatus, ContextIndex, ContextMatch,
        ContextPayload, ContextSource, rebuild_context_index, spawn_context,
    },
    diagnostics::{RuntimeDiagnostics, refresh_runtime_diagnostics},
    model::{
        Model, ModelBundle, ModelCapabilities, ModelContextWindow, ModelRegistry, ModelSpawnError,
        ModelSpec, RegisteredModel, spawn_model,
    },
    provider::{
        Provider, ProviderBundle, ProviderCapabilities, ProviderKind, ProviderRegistry,
        ProviderSpec, RegisteredProvider, spawn_provider,
    },
    rig_runtime::{RigExecutionError, RigRuntime, execute_rig_runs},
    run::{
        CancelRun, Run, RunAgent, RunBundle, RunCancellationReason, RunCommitted, RunContextQuery,
        RunFailed, RunFailure, RunFinalized, RunOwner, RunPrompt, RunRequest, RunResultText,
        RunRetrievedContexts, RunSession, RunStatus, RunStreamBuffer, StreamCompleted, TextDelta,
        apply_text_deltas, assemble_run_prompts, cancel_runs, capture_run_requests, finish_streams,
        mark_run_completed, mark_run_failed, persist_cancelled_runs, persist_completed_runs,
        persist_failed_runs,
    },
    session::{
        ChatMessage, ChatMessageBundle, ChatMessageRole, ChatMessageText, Session, SessionBundle,
        collect_transcript, spawn_chat_message, spawn_session,
    },
    tool::{
        RegisteredTool, Tool, ToolBundle, ToolCall, ToolCallCompleted, ToolCallFailed,
        ToolCallRequested, ToolDispatchError, ToolExecutionError, ToolExecutionResult, ToolKind,
        ToolOutput, ToolRegistrationError, ToolRegistry, ToolSpec, ToolSystemId,
        dispatch_requested_tool_calls, dispatch_tool, register_tool_system,
    },
    workflow::{
        RunWorkflow, Workflow, WorkflowBinding, WorkflowBundle, WorkflowCommitted, WorkflowEdge,
        WorkflowEdges, WorkflowEntry, WorkflowError, WorkflowFailed, WorkflowInvocation,
        WorkflowInvocationBundle, WorkflowNode, WorkflowNodeBundle, WorkflowNodeKind,
        WorkflowNodeName, WorkflowNodePromptTemplate, WorkflowRunCursor, WorkflowRunFailure,
        WorkflowRunFinalized, WorkflowRunRequest, WorkflowRunResult, WorkflowRunSession,
        WorkflowRunStatus, WorkflowRunTrace, WorkflowRunWorkflow, WorkflowSpec, bind_workflow_node,
        capture_workflow_requests, connect_workflow_nodes, execute_workflow_invocations,
        persist_completed_workflows, persist_failed_workflows, reachable_workflow_nodes,
        set_workflow_entry, set_workflow_node_prompt_template, spawn_workflow, spawn_workflow_node,
        workflow_nodes,
    },
};