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

    Interface FlatEvent

    Flattened representation of a signle event in a trace message. Events are stored in batched messages for efficiency, but flat representation is more convenient for consumption.

    interface FlatEvent {
        data: unknown;
        isEphemeral: boolean;
        meta: {
            conversation?: Ref<Unknown>;
            parentPid?: string;
            parentThread?: string;
            pid?: string;
            processName?: string;
            runId?: string;
            runtimeName?: string & Brand<"@dxos/compute/Trace/RuntimeName">;
            space?: string;
            thread?: string;
            toolCallId?: string;
            trigger?: Ref<Trigger.Trigger & OfKind<Object> & Unknown>;
        };
        timestamp: number;
        type: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    data: unknown = Schema.Unknown
    isEphemeral: boolean
    meta: {
        conversation?: Ref<Unknown>;
        parentPid?: string;
        parentThread?: string;
        pid?: string;
        processName?: string;
        runId?: string;
        runtimeName?: string & Brand<"@dxos/compute/Trace/RuntimeName">;
        space?: string;
        thread?: string;
        toolCallId?: string;
        trigger?: Ref<Trigger.Trigger & OfKind<Object> & Unknown>;
    }

    Type declaration

    • Optional Readonlyconversation?: Ref<Unknown>

      Ref to the conversation feed object if present.

    • Optional ReadonlyparentPid?: string
    • Optional ReadonlyparentThread?: string

      Light thread of the parent process's turn that spawned this process.

    • Optional Readonlypid?: string
    • Optional ReadonlyprocessName?: string
    • Optional ReadonlyrunId?: string

      Pid of the first invocation of the run this message belongs to. A run that calls Operation.runAgain() continues in a new invocation with its own pid; each continuation carries the first invocation's pid here so consumers can show the run as one unit. Absent on the first invocation, whose own pid is the run's id.

    • Optional ReadonlyruntimeName?: string & Brand<"@dxos/compute/Trace/RuntimeName">

      Extensible name informing which runtime executed the code that produced the event.

    • Optional Readonlyspace?: string

      Space the message was produced in. Stored as a string to avoid circular dependency on @dxos/keys.

    • Optional Readonlythread?: string

      Lane of the process's turn that produced the event (see CurrentThread).

    • Optional ReadonlytoolCallId?: string

      ID of the tool call that created the current process.

    • Optional Readonlytrigger?: Ref<Trigger.Trigger & OfKind<Object> & Unknown>

      Ref to the trigger object if invocation resulted from a trigger.

    timestamp: number = Schema.Number
    type: string = Schema.String