Start building your own agent with a simple Hello World example
Use the official starter template to get started quickly.
Test the Template Agent
Then in another terminal
Start a server
Server
instance and run it using run()
.Mark your agent function
@server.agent
decorator to your function so the platform recognizes it as an agent.Name your agent
Describe your agent
Understand the function arguments
Message
.Context
object with run details (e.g., task_id
, context_id
).Extract text from Message
get_message_text()
to quickly extract the text content from a Message
.Make it an async generator
Send responses easily
AgentMessage
(a handy wrapper around A2A Message) for convenience.str
, which will be automatically converted into an A2A Message.beeai-sdk
as a dependency, and then use the code above.
There’s no magic in the starter repo. It simply provides some basic Python scaffolding, a simple GitHub workflow, and a Dockerfile, most of which are entirely optional.
AgentDetail