Skip to Content
References

src.uagents.types

AgentGeolocation Objects

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

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

class DeliveryStatus(str, Enum)

Delivery status of a message.

MsgDigest Objects

@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

@dataclass class MsgStatus()

Represents the status of a sent message.

Attributes:

  • status str - The delivery status of the message 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.
Last updated on