Skip to main content
Integrate Moss into Strands Agents as a search tool. The agent calls 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, and AWS_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 a model argument:
See the Strands model providers docs for all supported providers.

Multi-agent example

Moss tools compose with Strands’ agents-as-tools pattern:

Configuration

MossSearchTool

Methods