Request

open class Request<P>(val from: ProcessModel.Entity, val payload: P, val conversationId: String? = null) : AgentMessage(source)

A request that the recipient perform some action, expressed via payload.

Constructors

Link copied to clipboard
constructor(from: ProcessModel.Entity, payload: P, conversationId: String? = null)

Properties

Link copied to clipboard
open override val conversationId: String?

Optional identifier that groups messages belonging to the same logical exchange (a Contract-Net call, a multi-turn negotiation, a tracked task lifecycle). Use a fresh value per conversation when grouping matters; leave null for one-shot messages.

Link copied to clipboard
open override val from: ProcessModel.Entity

The entity (typically an AgentModel.Agent) that sent this message.

Link copied to clipboard
val payload: P