settings
strands_teams.settings ¶
Framework settings base for strands_teams use cases.
TeamsSettings carries the domain-agnostic model, execution, and team-timeout knobs shared by every use case. A use case subclasses it to set its own env prefix and output-directory default, plus any domain-specific fields.
Adapted from the pre-split code_context_agent.config.Settings, dropping the codebase-analysis-specific fields (gitnexus_enabled, context7_enabled) which belong to the use-case subclass.
Env prefix parameterization¶
pydantic-settings reads env_prefix from the class-level model_config. A subclass parameterizes it by overriding model_config::
class MyToolSettings(TeamsSettings):
model_config = SettingsConfigDict(env_prefix="MY_TOOL_", extra="ignore")
output_dir_name: str = ".my-tool"
TeamsSettings ¶
Bases: BaseSettings
Base settings for a strands_teams use case.
Subclass this and override model_config to set the env prefix, and set output_dir_name to the use case's artifact directory name.
Attributes:
| Name | Type | Description |
|---|---|---|
output_dir_name | str | Directory name for run artifacts, relative to the target root (e.g., |