AgentMessageOutputItem class

A message routed between agents, as an output item.

This belongs to the beta multi-agent protocol (OpenAI-Beta: responses_multi_agent=v1). Mirrors the BetaAgentMessage schema.

Inheritance
Annotations
  • @immutable

Constructors

AgentMessageOutputItem({required String id, AgentTag? agent, required String author, required String recipient, required List<OutputContent> content})
Creates an AgentMessageOutputItem.
const
AgentMessageOutputItem.fromJson(Map<String, dynamic> json)
Creates an AgentMessageOutputItem from JSON.
factory

Properties

agent AgentTag?
The agent that produced this item.
final
author String
The sending agent identity.
final
content List<OutputContent>
Encrypted content sent between agents.
final
hashCode int
The hash code for this object.
no setteroverride
id String
The unique ID of the agent message.
final
recipient String
The destination agent identity.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts to JSON.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override