Skip to content

feat: Add session_service_db_kwargs to get_fast_api_app #1800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

miko-garrido
Copy link

Just a few lines to add session_service_db_kwargs to get_fast_api_app parameters, and then pass them to the session_service object created via DatabaseSessionService.

Based on issue #1287

…tabaseSessionService init to allow more configuration for session service in production
@seanzhou1023 seanzhou1023 requested a review from DeanChensj July 12, 2025 00:12
@seanzhou1023
Copy link
Collaborator

it seems that this PR is incomplete. I didn't see the caller of get_fast_api_app is updated. How could this new parameter passed by the developer ?

@@ -213,6 +213,7 @@ def get_fast_api_app(
*,
agents_dir: str,
session_service_uri: Optional[str] = None,
session_service_db_kwargs: Optional[dict[str, Any]] = None,
Copy link
Author

@miko-garrido miko-garrido Jul 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The session_service_db_kwargs are here @seanzhou1023

Dev can pass kwargs as argument via the get_fast_api_app function

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @seanzhou1023 @hangfei - the arguments are passed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants