Skip to content

Commit 8b1de4d

Browse files
fix: uses new a2a snake_case for lints to pass (#591)
1 parent b56a4ff commit 8b1de4d

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/strands/models/anthropic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ async def structured_output(
414414
stop_reason, messages, _, _ = event["stop"]
415415

416416
if stop_reason != "tool_use":
417-
raise ValueError(f"Model returned stop_reason: {stop_reason} instead of \"tool_use\".")
417+
raise ValueError(f'Model returned stop_reason: {stop_reason} instead of "tool_use".')
418418

419419
content = messages["content"]
420420
output_response: dict[str, Any] | None = None

src/strands/models/bedrock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ async def structured_output(
631631
stop_reason, messages, _, _ = event["stop"]
632632

633633
if stop_reason != "tool_use":
634-
raise ValueError(f"Model returned stop_reason: {stop_reason} instead of \"tool_use\".")
634+
raise ValueError(f'Model returned stop_reason: {stop_reason} instead of "tool_use".')
635635

636636
content = messages["content"]
637637
output_response: dict[str, Any] | None = None

src/strands/session/file_session_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class FileSessionManager(RepositorySessionManager, SessionRepository):
2323
"""File-based session manager for local filesystem storage.
2424
2525
Creates the following filesystem structure for the session storage:
26+
```bash
2627
/<sessions_dir>/
2728
└── session_<session_id>/
2829
├── session.json # Session metadata
@@ -32,7 +33,7 @@ class FileSessionManager(RepositorySessionManager, SessionRepository):
3233
└── messages/
3334
├── message_<id1>.json
3435
└── message_<id2>.json
35-
36+
```
3637
"""
3738

3839
def __init__(self, session_id: str, storage_dir: Optional[str] = None, **kwargs: Any):

src/strands/session/s3_session_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class S3SessionManager(RepositorySessionManager, SessionRepository):
2424
"""S3-based session manager for cloud storage.
2525
2626
Creates the following filesystem structure for the session storage:
27+
```bash
2728
/<sessions_dir>/
2829
└── session_<session_id>/
2930
├── session.json # Session metadata
@@ -33,7 +34,7 @@ class S3SessionManager(RepositorySessionManager, SessionRepository):
3334
└── messages/
3435
├── message_<id1>.json
3536
└── message_<id2>.json
36-
37+
```
3738
"""
3839

3940
def __init__(

0 commit comments

Comments
 (0)