Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
69ffec1
feat: add endpoint to generate memory from session
guillaumeblaquiere Sep 10, 2025
58238d4
chore: renaming function
guillaumeblaquiere Sep 10, 2025
69571ea
fix: session missing handling
guillaumeblaquiere Sep 10, 2025
e69cac4
chore: Improvement based on Gemini recommendation
guillaumeblaquiere Sep 10, 2025
b4577d0
Merge branch 'main' into add-session-to-memory
guillaumeblaquiere Sep 10, 2025
a7a7d03
fix: make API path more RESTful
guillaumeblaquiere Sep 10, 2025
8b788e7
Merge remote-tracking branch 'origin/add-session-to-memory' into add-…
guillaumeblaquiere Sep 10, 2025
9c1a262
Merge branch 'main' into add-session-to-memory
guillaumeblaquiere Sep 10, 2025
6b4d947
Update adk_web_server.py
DeanChensj Sep 10, 2025
68bb329
Chore: pyink formatting
guillaumeblaquiere Sep 10, 2025
9d418a0
Merge remote-tracking branch 'origin/add-session-to-memory' into add-…
guillaumeblaquiere Sep 10, 2025
7868eee
Merge branch 'main' into add-session-to-memory
guillaumeblaquiere Sep 10, 2025
a1a7fd8
Chore: typo
guillaumeblaquiere Sep 10, 2025
de6eab8
Merge branch 'main' into add-session-to-memory
DeanChensj Sep 10, 2025
08c19eb
fix: None body return
guillaumeblaquiere Sep 11, 2025
aecb0f0
fix: test improvement
guillaumeblaquiere Sep 11, 2025
5d9dc6b
fix: test improvement
guillaumeblaquiere Sep 11, 2025
3f82b8e
Merge branch 'main' into add-session-to-memory
guillaumeblaquiere Sep 11, 2025
c853518
Merge branch 'main' into add-session-to-memory
DeanChensj Sep 11, 2025
85cc594
chore: pyink fix
guillaumeblaquiere Sep 11, 2025
3e763fc
Merge branch 'main' into add-session-to-memory
guillaumeblaquiere Sep 11, 2025
8c667de
Merge branch 'main' into add-session-to-memory
DeanChensj Sep 11, 2025
13d42ae
Merge branch 'main' into add-session-to-memory
guillaumeblaquiere Sep 12, 2025
98eca83
Merge branch 'main' into add-session-to-memory
guillaumeblaquiere Sep 12, 2025
1527493
feat: update add session to memory endpoint structure
guillaumeblaquiere Sep 13, 2025
d0003af
Merge branch 'main' into add-session-to-memory
guillaumeblaquiere Sep 13, 2025
e0465b5
Merge branch 'main' into add-session-to-memory
GWeale Sep 15, 2025
c451d08
Merge branch 'main' into add-session-to-memory
DeanChensj Sep 17, 2025
17f4478
Merge branch 'main' into add-session-to-memory
guillaumeblaquiere Sep 18, 2025
830da14
feat: change return code of patch_memory
guillaumeblaquiere Sep 18, 2025
6e2f09b
doc: merge the exceptions description
guillaumeblaquiere Sep 18, 2025
c831d87
refactor: merge the memory request check and exceptions
guillaumeblaquiere Sep 18, 2025
faf8ec7
Merge branch 'main' into add-session-to-memory
DeanChensj Sep 18, 2025
0507de4
Merge branch 'main' into add-session-to-memory
DeanChensj Sep 18, 2025
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
10 changes: 10 additions & 0 deletions src/google/adk/cli/adk_web_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,16 @@ async def delete_artifact(
filename=artifact_name,
)

# Add to memory the current session
@app.post("/apps/{app_name}/users/{user_id}/sessions/{session_id}/add_to_memory")
async def custom_dummy_endpoint( app_name: str, user_id: str, session_id: str):
session = await self.session_service.get_session(
app_name=app_name,
user_id=user_id,
session_id=session_id
)
await self.memory_service.add_session_to_memory(session)
Comment thread
guillaumeblaquiere marked this conversation as resolved.
Outdated

@app.post("/run", response_model_exclude_none=True)
async def run_agent(req: RunAgentRequest) -> list[Event]:
session = await self.session_service.get_session(
Expand Down