Skip to main content

Interface: AgentRequest

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:107

A request expecting a response.

Extends​

  • Omit<AgentMessage, "type" | "messageId" | "toAgentId" | "sentAt">

Properties​

agencyId?​

optional agencyId: string

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:85

Agency context

Inherited from​

AgentMessage.agencyId


content​

content: string | Record<string, unknown>

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:87

Message content

Inherited from​

AgentMessage.content


expiresAt?​

optional expiresAt: Date

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:93

Expiration time for time-sensitive messages

Inherited from​

AgentMessage.expiresAt


fromAgentId​

fromAgentId: string

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:77

Sender agent ID

Inherited from​

AgentMessage.fromAgentId


fromRoleId?​

optional fromRoleId: string

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:79

Sender's role in the agency

Inherited from​

AgentMessage.fromRoleId


inReplyTo?​

optional inReplyTo: string

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:95

If this is a reply, the original message ID

Inherited from​

AgentMessage.inReplyTo


metadata?​

optional metadata: Record<string, unknown>

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:99

Additional metadata

Inherited from​

AgentMessage.metadata


priority​

priority: MessagePriority

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:89

Message priority

Inherited from​

AgentMessage.priority


requiresAck?​

optional requiresAck: boolean

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:101

Whether delivery confirmation is required

Inherited from​

AgentMessage.requiresAck


threadId?​

optional threadId: string

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:97

Thread/conversation ID for related messages

Inherited from​

AgentMessage.threadId


timeoutMs?​

optional timeoutMs: number

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:111

Timeout for response in ms


toRoleId?​

optional toRoleId: string

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:83

Target role (for role-based routing)

Inherited from​

AgentMessage.toRoleId


type​

type: "task_delegation" | "question" | "critique"

Defined in: packages/agentos/src/agents/agency/IAgentCommunicationBus.ts:109

Request type (subset of message types)