Skip to content

Commit 1474fd5

Browse files
committed
fix: Change error_message column type to TEXT in DatabaseSessionService
Error messages can exceed 1024 characters.
1 parent 29c1115 commit 1474fd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/google/adk/sessions/database_session_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class StorageEvent(Base):
269269
error_code: Mapped[str] = mapped_column(
270270
String(DEFAULT_MAX_VARCHAR_LENGTH), nullable=True
271271
)
272-
error_message: Mapped[str] = mapped_column(String(1024), nullable=True)
272+
error_message: Mapped[str] = mapped_column(Text, nullable=True)
273273
interrupted: Mapped[bool] = mapped_column(Boolean, nullable=True)
274274
input_transcription: Mapped[dict[str, Any]] = mapped_column(
275275
DynamicJSON, nullable=True

0 commit comments

Comments
 (0)