To build effective agents, start simple — just a model, tools, and instructions. Once that works, layer in more functionality as needed. It’s also best to begin with well-defined tasks like report generation, data extraction, classification, summarization, knowledge search, and document processing. These early wins help you identify what works, validate user needs, and set the stage for advanced systems. Here’s the simplest possible report generation agent:Documentation Index
Fetch the complete documentation index at: https://spacesail.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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.
- How do I cache model responses during development? -> See the response caching documentation.
Developer Resources
- View the Agent reference
- View Agent Cookbook