hackernews_agent.py
Run your Agent
When running your agent, use theAgent.print_response()
method to print the response in the terminal. This is only for development purposes and not recommended for production use. In production, use the Agent.run()
or Agent.arun()
methods. For example:
- How do I run my agent? -> See the running 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.
Developer Resources
- View the Agent reference
- View Agent Cookbook