hackernews_agent.py
Run your Agent
When developing your agent, run it using theAgent.print_response() method. This will print the agent’s response in your terminal, in a friendly format.
This is only for development purposes and not recommended for production use. In production, use the Agent.run() or Agent.arun() methods. For example:
Next Steps
After getting familiarized with the basics, you can continue building your agent by adding functionality as needed. Some common questions you might face:- How do I run my agent? -> See the running agents documentation.
- How do I debug my agent? -> See the debugging agents documentation.
- How do I manage sessions? -> See the agent sessions documentation.
- How do I manage input and capture output? -> See the input and output documentation.
- How do I add tools? -> See the tools documentation.
- How do I give the agent context? -> See the context engineering documentation.
- How do I add knowledge? -> See the knowledge documentation.
- How do I handle images, audio, video, and files? -> See the multimodal documentation.
- How do I add guardrails? -> See the guardrails documentation.
- How do I cache model responses during development? -> See the response caching documentation.