Example: Basic Usage
1
Import the citation extension
Import
CitationExtensionServer and CitationExtensionSpec from agentstack_sdk.a2a.extensions.2
Inject the extension
Add a citation parameter to your agent function using the
Annotated type hint
with CitationExtensionSpec().3
Yield citation message
Call
yield citation.message() with text and citations.