Skip to main content
Dependencies are a way to inject variables into your Team context. The dependencies parameter accepts a dictionary containing functions or static variables that are automatically resolved before the team runs.
You can use dependencies to inject memories, dynamic few-shot examples, “retrieved” documents, etc.
dependencies.py
Dependencies are automatically resolved when the team is run.
You can set dependencies on Team initialization, or pass it to the run(), arun(), print_response() and aprint_response() methods. Use add_dependencies_to_context=True to automatically add all dependencies to the user message instead of referencing them in instructions.

Learn more

Dependencies Overview

Learn the fundamentals of dependency injection

Reference Dependencies

Reference dependencies in instructions

Access Dependencies in Tool

Use RunContext to access dependencies in tools

Team Schema

View the complete Team API reference