src.uagents.types
AgentGeolocation Objects ↗ (opens in a new tab)
class AgentGeolocation(BaseModel)
serialize_precision
@field_validator("latitude", "longitude") @classmethod def serialize_precision(cls, val: float) -> float
Round the latitude and longitude to 6 decimal places. Equivalent to 0.11m precision.
AgentMetadata Objects ↗ (opens in a new tab)
class AgentMetadata(BaseModel)
Model used to validate metadata for an agent.
Framework specific fields will be added here to ensure valid serialization. Additional fields will simply be passed through.
DeliveryStatus Objects ↗ (opens in a new tab)
class DeliveryStatus(str, Enum)
Delivery status of a message.
MsgDigest Objects ↗ (opens in a new tab)
@dataclass class MsgDigest()
Represents a message digest containing a message and its schema digest.
Attributes:
message
Any - The message content.schema_digest
str - The schema digest of the message.
MsgStatus Objects ↗ (opens in a new tab)
@dataclass class MsgStatus()
Represents the status of a sent message.
Attributes:
status
str - The delivery status of the message {'sent', 'delivered', 'failed'}.detail
str - The details of the message delivery.destination
str - The destination address of the message.endpoint
str - The endpoint the message was sent to.session
Optional[uuid.UUID] - The session ID of the message.