Skip to content

docs: add Python code snippets to logging cookbook guide#441

Open
guoyangzhen wants to merge 1 commit into2FastLabs:mainfrom
guoyangzhen:docs/add-python-logging-snippets
Open

docs: add Python code snippets to logging cookbook guide#441
guoyangzhen wants to merge 1 commit into2FastLabs:mainfrom
guoyangzhen:docs/add-python-logging-snippets

Conversation

@guoyangzhen
Copy link
Copy Markdown

What

Replaces 4 TODO placeholders in logging.mdx with working Python code equivalents.

Changes

  • Basic setup: AgentSquad initialization with AgentSquadConfig and custom logger
  • Install: pip install aws-lambda-powertools
  • Import: Logger import and initialization with aws_lambda_powertools
  • Full config: Complete orchestrator setup with all 5 logging options

Testing

  • All Python snippets validated for syntactic correctness against python/src/agent_squad/orchestrator.py
  • API surface verified: AgentSquad constructor accepts options (dict or AgentSquadConfig), storage, and logger parameters

Closes #439

Replace 4 TODO placeholders in logging.mdx with equivalent Python code:
- Basic OrchestratorOptions setup with custom logger
- pip install command for aws-lambda-powertools
- Logger import and initialization example
- Full orchestrator configuration with all logging options

Closes 2FastLabs#439
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: add missing Python snippets in logging guide

1 participant