Learn how ACP uses metadata to provide semantic context and additional information for message parts
Message metadata provides semantic context and additional information for message parts. ACP supports two types: citations for source attribution and trajectory data for transparency into agent operations.The BeeAI platform demonstrates the value of standardized message metadata by exposing these patterns through a clean, intuitive GUI.For the complete message structure, see Message Structure.
Citations attribute content to original sources. Essential for research and RAG agents.
Copy
Ask AI
class CitationMetadata(BaseModel): kind: Literal["citation"] = "citation" start_index: Optional[int] = None # Start of text range end_index: Optional[int] = None # End of text range url: Optional[str] = None # Source URL title: Optional[str] = None # Source title description: Optional[str] = None # Source description or snippet
Copy
Ask AI
{ "role": "agent/researcher", "parts": [ { "content_type": "text/plain", "content": "According to a recent study, AI adoption has increased by 40% this year.", "metadata": { "kind": "citation", "url": "https://example.com/ai-study-2024", "title": "AI Adoption Report 2024", "description": "Comprehensive analysis of AI adoption trends across industries", "start_index": 15, "end_index": 27 } } ]}