colmugx/posoco/runtime does not have a README file

    Runtime

    The public effect-execution contract. Mirrors the internal boundary 1:1; Posoco adapts it mechanically (a thin shim packs/unpacks EffectContext), so this trait never grows semantics the internal loop does not have.

    Implementors usually wrap PortRuntime and override only the methods they need (typically execute_tool + cancel_effects); see docs/RUNTIME.md.

    EffectContext

    Stable execution context for a single tool effect. effect_id is the reducer-allocated identity of the ExecuteTool effect — the same id the runtime later receives in cancel_effects. Runtimes that propagate cancellation MUST key their in-flight execution state (e.g. an AbortController) by effect_id, not by execution order or call content.

    EffectContext::EffectContext

    Hosts forwarding an effect must forward this context unchanged. This constructor requires the operation-captured provider and call context.

    EnqueueOutcome

    pub(all) enum EnqueueOutcome {
    Accepted(command_id~ : String)
    RejectedStale(reason~ : String)
    RejectedQueueFull(depth~ : Int)
    AbortAlreadyRequested
    RejectedQueueFailure(reason~ : String)
    } derive(Eq,
    Debug
    )

    Pure result returned by Agent-owned host control operations.

    EnqueueOutcome::equal

    EnqueueOutcome::not_equal

    fn EnqueueOutcome::not_equal(x : EnqueueOutcome, y : EnqueueOutcome) -> Bool

    EnqueueOutcome::output

    fn EnqueueOutcome::output(self : EnqueueOutcome, logger : &Logger) -> Unit

    EnqueueOutcome::to_string

    fn EnqueueOutcome::to_string(self : EnqueueOutcome) -> String

    PortRuntime

    pub struct PortRuntime {
    // private fields
    }

    PortRuntime::PortRuntime

    PortRuntime::execute_tool

    Powered by MoonBit

    Site sourceReport issueModulesSkillsBuild queueStatistics

    © 2026 mooncakes.io