Skip to content

AgentInputMessage

AgentInputMessage: (args) => AgentInputMessage

Defined in: packages/protocol/src/lib/envelope.ts:142

Smart constructor for AgentInputMessage. Generates a fresh id via MessageId() when omitted.

MessageId

Frame id; generated when omitted.

AgentInput

The agent input to carry.

SessionId

Session whose Agent Session receives the input.

AgentInputMessage

ws.send(encodeEnvelope(AgentInputMessage({ sessionId, input: utterance })));