How to access citation data in the Azure AI Search Python sample:
https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/agents/azure_ai/azure_ai_with_azure_ai_search.py
print(result.to_dict()):
{'type': 'agent_run_response', 'messages': [{'type': 'chat_message', 'role': {'type': 'role', 'value': 'assistant'}, 'contents': [{'type': 'text', 'text': 'Billing issues commonly arise from several main concerns:\n\n1. .... with service representatives [4:0†source][4:2†source][4:4†source].'}], 'author_name': 'MySearchAgent', 'additional_properties': {}}], 'response_id': 'resp_0502506abfecefa8006928250f9c09dd52', 'created_at': '2025-11-27T15:46:47.000000Z', 'usage_details': {'type': 'usage_details', 'input_token_count': 4185, 'output_token_count': 313, 'total_token_count': 4498}, 'additional_properties': {}}
How to access citation data in the Azure AI Search Python sample:
https://github.com/microsoft/agent-framework/blob/main/python/samples/getting_started/agents/azure_ai/azure_ai_with_azure_ai_search.py
print(result.to_dict()):
{'type': 'agent_run_response', 'messages': [{'type': 'chat_message', 'role': {'type': 'role', 'value': 'assistant'}, 'contents': [{'type': 'text', 'text': 'Billing issues commonly arise from several main concerns:\n\n1. .... with service representatives [4:0†source][4:2†source][4:4†source].'}], 'author_name': 'MySearchAgent', 'additional_properties': {}}], 'response_id': 'resp_0502506abfecefa8006928250f9c09dd52', 'created_at': '2025-11-27T15:46:47.000000Z', 'usage_details': {'type': 'usage_details', 'input_token_count': 4185, 'output_token_count': 313, 'total_token_count': 4498}, 'additional_properties': {}}