src.uagents.types
AgentGeolocation Objects - Github
class AgentGeolocation(BaseModel)serialize_precision
@field_validator("latitude", "longitude")
@classmethod
def serialize_precision(cls, val: float) -> floatRound the latitude and longitude to 6 decimal places. Equivalent to 0.11m precision.
AgentMetadata Objects - Github
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 - Github
class DeliveryStatus(str, Enum)Delivery status of a message.
MsgDigest Objects - Github
@dataclass
class MsgDigest()Represents a message digest containing a message and its schema digest.
Attributes:
messageAny - The message content.schema_digeststr - The schema digest of the message.
MsgStatus Objects - Github
@dataclass
class MsgStatus()Represents the status of a sent message.
Attributes:
statusstr - The delivery status of the message failed.detailstr - The details of the message delivery.destinationstr - The destination address of the message.endpointstr - The endpoint the message was sent to.sessionOptional[uuid.UUID] - The session ID of the message.
Last updated on