MCPcopy Index your code
hub / github.com/google/adk-python / create_session_with_id

Method create_session_with_id

src/google/adk/cli/api_server.py:1125–1136  ·  view source on GitHub ↗
(
        app_name: str,
        user_id: str,
        session_id: str,
        state: Optional[dict[str, Any]] = None,
    )

Source from the content-addressed store, hash-verified

1123 response_model_exclude_none=True,
1124 )
1125 async def create_session_with_id(
1126 app_name: str,
1127 user_id: str,
1128 session_id: str,
1129 state: Optional[dict[str, Any]] = None,
1130 ) -> Session:
1131 return await self._create_session(
1132 app_name=app_name,
1133 user_id=user_id,
1134 state=state,
1135 session_id=session_id,
1136 )
1137
1138 @app.post(
1139 "/apps/{app_name}/users/{user_id}/sessions",

Callers

nothing calls this directly

Calls 1

_create_sessionMethod · 0.95

Tested by

no test coverage detected