You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The published agents-langgraph.mdx is API-key-only and never documented
the Bedrock SSO path the repo code supports. Re-add the Option A/B
provider setup and Bedrock inference-profile guidance to the repo README
(docs mdx intentionally left unchanged), using current model IDs.
LD_SDK_KEY=your-launchdarkly-sdk-key # From step above
186
+
187
+
# Direct API Configuration
188
+
AUTH_METHOD=api-key # Use direct API keys (default)
145
189
OPENAI_API_KEY=your-openai-key # Required for RAG embeddings
146
190
ANTHROPIC_API_KEY=your-anthropic-key # Required for Claude models
147
191
```
148
192
149
193
This sets up a **LangGraph** application that uses LaunchDarkly to control AI behavior. Think of it like swapping actors, directors, even props mid-performance without stopping the show.
150
-
Do not check the `.env` into your source control. Keep those secrets safe!
194
+
195
+
**Security Note:** Do not check the `.env` into your source control. Keep those secrets safe!
196
+
197
+
### 🚨 **Common AWS SSO Issue:**
198
+
199
+
If you get `AccessDeniedException` errors, verify your Python code is using the correct AWS profile:
The system automatically converts direct model IDs to inference profile IDs to prevent `ValidationException` errors from Bedrock. The region prefix is determined by:
230
+
231
+
1.**`BEDROCK_INFERENCE_REGION`** env var (if set) - explicit user preference
Bedrock requires inference profile IDs for on-demand throughput. The region prefix (`us.`, `eu.`, `ap.`, etc.) enables cross-region inference profiles for better availability and failover.
151
251
152
252
## Step 2: Add Your Business Knowledge (2 minutes)
0 commit comments