Table of Contents
Module spoon_ai.identity.did_models
DID Data Models for SpoonOS Agents Following W3C DID Core specification and ERC-8004 standard
VerificationMethodType Objects​
class VerificationMethodType(str, Enum)
Supported verification method types
ServiceType Objects​
class ServiceType(str, Enum)
Agent service endpoint types
VerificationMethod Objects​
class VerificationMethod(BaseModel)
Cryptographic verification method for DID authentication
ServiceEndpoint Objects​
class ServiceEndpoint(BaseModel)
Service endpoint for agent interaction
ReputationScore Objects​
class ReputationScore(BaseModel)
Aggregated reputation score
Attestation Objects​
class Attestation(BaseModel)
Verifiable attestation about an agent
AgentCard Objects​
class AgentCard(BaseModel)
Agent Card following Google's A2A protocol Provides human-readable agent information
AgentDID Objects​
class AgentDID(BaseModel)
Complete W3C DID Document for SpoonOS Agent
to_did_document​
def to_did_document() -> Dict[str, Any]
Export as standard W3C DID Document
to_agent_card​
def to_agent_card() -> Dict[str, Any]
Export agent card separately
DIDResolutionResult Objects​
class DIDResolutionResult(BaseModel)
Result of DID resolution