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

    Function encodeTraceMessage

    • Encode a trace message for the broadcast envelope's google.protobuf.Any.value (DX-1125). The wire format is UTF-8 JSON of the message data (ref fields dropped — see encodeMetaForWire).

      Parameters

      • message: Pick<
            {
                events: readonly { data: unknown; timestamp: number; type: string }[];
                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>;
                };
            },
            "meta"
            | "events"
            | "isEphemeral",
        >

      Returns Uint8Array