moss_search automatically when it needs to look something up — no retrieval glue code required.
Note: For a complete example, see the Strands Agents cookbook.
Why use Moss with Strands Agents?
Strands Agents exposes tools as first-class primitives.MossSearchTool wraps a Moss index as a Strands-compatible tool, so the agent decides when to retrieve — and gets answers back in under 10 ms.
Required tools
- Moss account with project credentials
- Python 3.10+
- Model provider credentials — Strands Agents defaults to Amazon Bedrock. Configure
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY, andAWS_REGION, or pass a different model provider (see below).
Integration guide
1
Installation
2
Environment setup
3
Create an agent with Moss search
Choosing a model provider
Strands defaults to Amazon Bedrock. To use a different provider, pass amodel argument: