Skip to main content
Dependencies is a way to inject variables into your Team Context. dependencies is a dictionary that contains a set of functions (or static variables) that are 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.

Adding the entire context to the user message

Set add_dependencies_to_context=True to add the entire list of dependencies to the user message. This way you don’t have to manually add the dependencies to the instructions.
dependencies_instructions.py
You can pass dependencies and add_dependencies_to_context to the run, arun, print_response and aprint_response methods.

Developer Resources