The A2A Protocol, developed by Google, is an open standard that allows AI agents to communicate and collaborate across various platforms and frameworks, independent of the underlying technologies they use.
A2AServer lets you expose agents built in the BeeAI framework via A2A protocol.
Copy
Ask AI
from beeai_framework.adapters.a2a import A2AServer, A2AServerConfigfrom beeai_framework.agents.experimental import RequirementAgentfrom beeai_framework.backend import ChatModelfrom beeai_framework.memory import UnconstrainedMemoryfrom beeai_framework.tools.search.duckduckgo import DuckDuckGoSearchToolfrom beeai_framework.tools.weather import OpenMeteoTooldef main() -> None: llm = ChatModel.from_name("ollama:granite3.3:8b") agent = RequirementAgent( llm=llm, tools=[DuckDuckGoSearchTool(), OpenMeteoTool()], memory=UnconstrainedMemory(), ) # Register the agent with the A2A server and run the HTTP server # For the ToolCallingAgent, we dont need to specify ACPAgent factory method # because it is already registered in the A2AServer A2AServer(config=A2AServerConfig(port=9999)).register(agent).serve()if __name__ == "__main__": main()