Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@ sdk-typescript/
│ │
│ ├── models/ # Model provider implementations
│ │ ├── __tests__/ # Unit tests for model providers
│ │ │ └── bedrock.test.ts # Tests for Bedrock model provider
│ │ │ ├── bedrock.test.ts # Tests for Bedrock model provider
│ │ │ └── gemini.test.ts # Tests for Gemini model provider
│ │ ├── bedrock.ts # AWS Bedrock model provider
│ │ ├── gemini.ts # Google Gemini model provider
│ │ ├── model.ts # Base model provider interface
│ │ └── streaming.ts # Streaming event types
│ │
Expand Down Expand Up @@ -136,7 +138,7 @@ sdk-typescript/
- **`src/agent/`**: Agent loop coordination, streaming event types, output printing, and conversation management
- **`src/agent/conversation-manager/`**: Conversation history management strategies
- **`src/hooks/`**: Hooks system for event-driven extensibility
- **`src/models/`**: Model provider implementations (Bedrock, OpenAI, future providers)
- **`src/models/`**: Model provider implementations (Bedrock, OpenAI, Gemini, future providers)
- **`src/tools/`**: Tool definitions and types for agent tool use
- **`src/types/`**: Core type definitions used across the SDK
- **`vended_tools/`**: Optional vended tools (not part of core SDK, independently importable)
Expand Down
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Strands Agents is a simple yet powerful SDK that takes a model-driven approach t

- **🪶 Lightweight & Flexible**: Simple agent loop that works seamlessly in Node.js and browser environments
- **🔒 Type-Safe Tools**: Define tools easily using Zod schemas for robust input validation and type inference
- **🔌 Model Agnostic**: First-class support for Amazon Bedrock and OpenAI, with extensible architecture for custom providers
- **🔌 Model Agnostic**: First-class support for Amazon Bedrock, OpenAI, and Google Gemini, with extensible architecture for custom providers
- **🔗 Built-in MCP**: Native support for Model Context Protocol (MCP) clients, enabling access to external tools and servers
- **⚡ Streaming Support**: Real-time response streaming for better user experience
- **🎣 Extensible Hooks**: Lifecycle hooks for monitoring and customizing agent behavior
Expand Down Expand Up @@ -120,6 +120,21 @@ const model = new OpenAIModel()
const agent = new Agent({ model })
```

**Google Gemini**

```typescript
import { Agent } from '@strands-agents/sdk'
import { GeminiModel } from '@strands-agents/sdk/gemini'

const model = new GeminiModel({
modelId: 'gemini-2.5-flash',
clientArgs: { apiKey: process.env.GOOGLE_API_KEY },
params: { temperature: 0.7, maxTokens: 2048 }
})

const agent = new Agent({ model })
```

### Streaming Responses

Access responses as they are generated:
Expand Down
Loading
Loading