Skip to content

Commit b212cdd

Browse files
authored
demonstrate how to print the configured model_id (#13)
Co-authored-by: Ryan Coleman <[email protected]>
1 parent cf99dd6 commit b212cdd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/user-guide/quickstart.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,19 @@ agent("Hello!")
168168

169169
## Model Providers
170170

171+
### Identifying a configured model
172+
173+
Strands defaults to the Bedrock model provider using Claude 3.7 Sonnet. The model your agent is using can be retrieved by accessing [`model.config`](/api-reference/types/#strands.types.models.Model.get_config):
174+
175+
```python
176+
from strands import Agent
177+
178+
agent = Agent()
179+
180+
print(agent.model.config)
181+
# {'model_id': 'us.anthropic.claude-3-7-sonnet-20250219-v1:0'}
182+
```
183+
171184
You can specify a different model in two ways:
172185

173186
1. By passing a string model ID directly to the Agent constructor

0 commit comments

Comments
 (0)