Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/strands/models/anthropic.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ async def structured_output(
stop_reason, messages, _, _ = event["stop"]

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

content = messages["content"]
output_response: dict[str, Any] | None = None
Expand Down
2 changes: 1 addition & 1 deletion src/strands/models/bedrock.py
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ async def structured_output(
stop_reason, messages, _, _ = event["stop"]

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

content = messages["content"]
output_response: dict[str, Any] | None = None
Expand Down
3 changes: 2 additions & 1 deletion src/strands/session/file_session_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class FileSessionManager(RepositorySessionManager, SessionRepository):
"""File-based session manager for local filesystem storage.

Creates the following filesystem structure for the session storage:
```bash
/<sessions_dir>/
└── session_<session_id>/
├── session.json # Session metadata
Expand All @@ -32,7 +33,7 @@ class FileSessionManager(RepositorySessionManager, SessionRepository):
└── messages/
├── message_<id1>.json
└── message_<id2>.json

```
"""

def __init__(self, session_id: str, storage_dir: Optional[str] = None, **kwargs: Any):
Expand Down
3 changes: 2 additions & 1 deletion src/strands/session/s3_session_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class S3SessionManager(RepositorySessionManager, SessionRepository):
"""S3-based session manager for cloud storage.

Creates the following filesystem structure for the session storage:
```bash
/<sessions_dir>/
└── session_<session_id>/
├── session.json # Session metadata
Expand All @@ -33,7 +34,7 @@ class S3SessionManager(RepositorySessionManager, SessionRepository):
└── messages/
├── message_<id1>.json
└── message_<id2>.json

```
"""

def __init__(
Expand Down
Loading