Request

open class Request<P>(val from: AgentLike, 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: AgentLike, 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: AgentLike

The agent that sent this message, whatever kind of agent it is.

Link copied to clipboard
val payload: P