To build effective teams, start simple — just a model, members, and instructions. Once that works, layer in more functionality as needed. Here’s the simplest possible team with specialized agents: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.
news_weather_team.py
Team members inherit their
model from their parent team if not specified. Members with an explicitly assigned model retain their own. In nested team structures, inheritance always happens from the direct parent.
Teams without a defined model default to OpenAI gpt-4o.The reasoning_model, parser_model, and output_model must be explicitly defined for each team or team member.See the model inheritance example.Run your Team
When running your team, use theTeam.print_response() method to print the response in the terminal.
For example:
Team.run() or Team.arun() methods. For example:
Modify what is show on the terminal
When usingprint_response, only the team tool calls (typically all of the delegation to members) are printed. If you want to print the responses from the members, you can use the show_members_responses parameter.
Next Steps
Next, continue building your team by adding functionality as needed. Common questions:- How do I run my team? -> See the running teams documentation.
- How do I manage sessions? -> See the team sessions documentation.
- How do I manage input and capture output? -> See the input and output documentation.
- How do I give the team context? -> See the context engineering documentation.
- How do I add knowledge? -> See the knowledge documentation.
- How do I add guardrails? -> See the guardrails documentation.
- How do I cache responses during development? -> See the response caching documentation.
Developer Resources
- View the Team reference
- View Team Cookbook