Support simultaneous use by multiple users
Our project attempted to build an AI tool for the client using adk-python, but we have found that when multiple users send questions to adk simultaneously, adk only answers one user's question completely before answering another user's question. Cannot support simultaneous use by multiple users. I am using a local model with 4 A6000 blocks in the local environment, which is sufficient to support answering multiple users' questions simultaneously.
.env
OPENAI_BASE_URL=http://localhost:11434/v1
OPENAI_API_KEY=unused
MODEL='openai/qwen2.5-32b-q4km:latest'
agent.py
import os
from google.adk.agents import Agent
from google.adk.models.lite_llm import LiteLlm
os.environ["OPENAI_API_BASE"] = os.getenv("OPENAI_BASE_URL")
MODEL = os.getenv("MODEL")
root_agent = Agent(
name="ChatAssistant",
model=LiteLlm(model=str(MODEL)),
description="Chat assistant to assist users in solving problems",
instruction="Chat assistant to assist users in solving problems",
tools=[],
)
I am assuming you need to setup ADK that can serve multiple users separately. The users can't see each other.
I guess maybe you are mixing up the session between different users. Could you check if all the users' requests go into same session?
Hi @sleepMoreEarly and thanks to everyone who participated in this thread.
We're currently doing some housekeeping on our issue tracker. Given the rapid pace of development and the number of updates since this was last active, there's a good chance this issue has been resolved in a newer version. To help us keep our backlog focused on current issues, we are closing this as stale.
If you're still facing this problem, could you please update to the very latest version of the library and confirm the issue still exists? If it does, please comment here, and we will be happy to reopen this issue and investigate further.
Thanks for your contribution and understanding!