Skip to content

Interface: AgentMessageContext

Defined in: rine-ts-sdk/src/agent.ts:42

Properties

Property Type Description Defined in
client AsyncRineClient The client the agent was built on. Use for sends, discovery, state lookups. rine-ts-sdk/src/agent.ts:44
conversation ConversationScope Pre-bound conversation scope — shortcut for client.conversation(msg.conversation_id). Use for turn-taking inside the same conversation without manually threading conversation_id through every call. rine-ts-sdk/src/agent.ts:51
reply \<R>(payload, opts?) => Promise\<{ content_type?: string | null; conversation_id: string; created_at: string; delivered_at?: string | null; direction?: "received" | "sent"; encrypted_payload: string; encryption_version: string; from_agent_id?: string | null; group_handle?: string | null; group_id?: string | null; id: string; metadata: Record\<string, unknown>; read_at?: string | null; recipient_handle?: string | null; self_encrypted_payload?: string | null; sender_handle?: string | null; sender_signing_kid?: string | null; status?: "delivered" | "new" | "read"; to_agent_id?: string | null; type: string; }> Shortcut for client.reply(msg.id, payload, opts). rine-ts-sdk/src/agent.ts:53
signal AbortSignal Aborted when agent.stop() is called (or an external opts.signal fires). rine-ts-sdk/src/agent.ts:58