Agent Mesh
Go a2aa2a-protocolagent-meshagentic-aiinferencemcpmeshmesh-networknetwork-securitynetworking-aip2p-network
docs: fix dictionary access in agent demo snippet
google-labs-jules[bot]a923c29feb29
diff --git a/docs/agent_integration.md b/docs/agent_integration.mdindex b3ffab5a..9d74bcde 100644--- a/docs/agent_integration.md+++ b/docs/agent_integration.md@@ -44,7 +44,7 @@ async def main():tools = await client.get_tools()print(f"Discovered {len(tools)} tools:")for tool in tools:- print(f" - {tool.name}: {tool.description}")+ print(f" - {tool['name']}: {tool['description']}")# Call the get_mesh_info tool to get information about the meshprint("\nCalling get_mesh_info tool...")diff --git a/docs/snippets/agent_demo.py b/docs/snippets/agent_demo.pyindex 62c508f4..83bf128b 100644--- a/docs/snippets/agent_demo.py+++ b/docs/snippets/agent_demo.py@@ -15,7 +15,7 @@ async def main():tools = await client.get_tools()print(f"Discovered {len(tools)} tools:")for tool in tools:- print(f" - {tool.name}: {tool.description}")+ print(f" - {tool['name']}: {tool['description']}")# Call the get_mesh_info tool to get information about the meshprint("\nCalling get_mesh_info tool...")