Skip to content

Interface: LoweredPromptMessage

Defined in: aiui-intent-runtime/src/protocol.ts:81

The lowered-prompt push: on every successful fin the server broadcasts the thread's final lowered prompt (plus its string meta) on the same socket. Typed here so a client can narrow a ServerMessage on kind === "lowered-prompt". The wire itself deliberately ignores it — see the handler in wire.ts — a host that wants the result observes it on the raw socket (the onSocket hook); the type exists for exactly that.

Extends

Indexable

[key: string]: unknown

Properties

kind

kind: "lowered-prompt"

Defined in: aiui-intent-runtime/src/protocol.ts:82

Overrides

ServerMessage.kind


meta?

optional meta?: Record<string, string>

Defined in: aiui-intent-runtime/src/protocol.ts:93


prompt

prompt: string

Defined in: aiui-intent-runtime/src/protocol.ts:84


spans?

optional spans?: PromptSpan[]

Defined in: aiui-intent-runtime/src/protocol.ts:92

Offset-annotated structure over prompt — the channel's body spans shifted past the context preamble, with a leading preamble span (see the channel's LoweredPromptMessage). The wire deliberately ignores it (see wire.ts); a host observing the raw socket may render hover-previews from it. protocol.test.ts locks this pair with the channel's twin.


threadId

threadId: string

Defined in: aiui-intent-runtime/src/protocol.ts:83

Overrides

ServerMessage.threadId