Skip to content

Separate session for each agent in a multi-agent design #1254

@naitik-parekh

Description

@naitik-parekh

Problem definition
I have designed a multi-agent system where some agents are transactional and others are informational. Transactional agents do not need to retain context once a transaction is complete, whereas informational agents need to retain longer context to provide a better user experience. In my design, I clear the session once a transaction is completed, which clears the context for all agents. However, if I choose not to clear the session in order to enhance the performance of informational agents, the transactional agents may become confused by the context from previous transactions.

Desired solution

  1. Is there a way to clear the context of selected agents? If yes, how to implement it?
  2. Is there a way to manage separate sessions for each agent under one root agent? If yes, how to implement it?

Additional context
I am using google-adk 1.2.1

Metadata

Metadata

Labels

services[Component] This issue is related to runtime services, e.g. sessions, memory, artifacts, etcweb[Component] This issue will be transferred to adk-web

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions