@dxos/compute - v0.16.0
    Preparing search index...

    Type Alias Definition

    A lifecycle hook an agent host can run, contributed by a plugin beside its skills rather than declared on a Skill, so a skill stays to the Agent Skills spec's fields. Static: a hook is code, never stored in a space. Whether it runs is up to its plugin's SettingsAnnotation entry (see resolve).

    type Definition = {
        async?: boolean;
        event: "end-request";
        input?: Record<string, unknown>;
        key: string;
        operation: Operation.Definition.Any;
        plugin: string;
        skill?: string;
    }
    Index

    Properties

    async?: boolean

    Run in the background: the request settles without waiting for the hook, and the agent process awaits it before it finishes. For work the user should not wait on, e.g. reviewing the turn that just ended.

    event: "end-request"

    When the hook fires. end-request is after the model has driven a request to completion: the series of agent/tool turns a prompt starts.

    input?: Record<string, unknown>

    Passed as the operation's input.

    key: string

    Stable id the trace names the hook by, e.g. org.dxos.hook.planning.planReminder.

    Runs with the conversation in its environment; may return Output.

    plugin: string

    Id of the plugin that contributes the hook; settings turn hooks on and off by plugin.

    skill?: string

    Key of a skill that must be bound to the conversation for the hook to fire; absent ⇒ every conversation.