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.
Parameters
Section titled “Parameters”Frame id; generated when omitted.
The agent input to carry.
sessionId
Section titled “sessionId”Session whose Agent Session receives the input.
Returns
Section titled “Returns”Example
Section titled “Example”ws.send(encodeEnvelope(AgentInputMessage({ sessionId, input: utterance })));