agentle.agents.a2a.messages.messageΒΆ

A2A Message Model

This module defines the Message class, which represents a communication unit in the A2A protocol. Messages are exchanged between users and agents, containing one or more parts (text, data, files).

Functions

Field()

!!! abstract "Usage Documentation"

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

BaseModel()

Alias for pydantic.BaseModel.

DataPart(*[, type])

Represents a structured data component of a message in the A2A protocol.

FilePart(*[, type])

Represents a file component of a message in the A2A protocol.

Message(*, role, parts[, metadata])

Represents a message exchanged between a user and an agent.

Sequence()

All the operations on a read-only sequence.

TextPart(*[, type])

Represents a text component of a message in the A2A protocol.