Skip to content

imvickykumar999/ADK-Web

Repository files navigation

>>> ADK Web

python3 -m venv .venv

# ubuntu
source .venv/bin/activate

# windows
.venv\Scripts\Activate

pip install -r requirements.txt

adk web --session_service_uri sqlite:///sessions.db --port 5000

Go to http://localhost:5000
Ctrl + C to exit.

Pushing on Docker Hub

To tag and push your image, use the correct repository name you found in the output: adk-web-adk-web.

Here are the correct commands based on your docker images output:

  1. Tag the image: docker tag adk-web-adk-web imvickykumar999/adk-web:latest

  2. Push the image: docker push imvickykumar999/adk-web:latest

After the push is complete, you'll be able to see the new image on your Docker Hub profile at https://hub.docker.com/repository/docker/imvickykumar999/adk-web.


image
You can port forward to ngrok.

>>> adk web --port 8000
>>> ngrok http --url=internal-adjusted-possum.ngrok-free.app 8000
image

root_agent = Agent(
    name="tool_agent",
    ...

root_agent = Agent(
    name="greeting_agent",
    ...
>>> tree
.
├── 1-basic-agent
│   └── greeting_agent
│       ├── __init__.py
│       ├── __pycache__
│       │   ├── __init__.cpython-312.pyc
│       │   └── agent.cpython-312.pyc
│       └── agent.py
├── 2-tool-agent
│   └── tool_agent
│       ├── __init__.py
│       ├── __pycache__
│       │   ├── __init__.cpython-312.pyc
│       │   └── agent.cpython-312.pyc
│       └── agent.py
└── requirements.txt

1-basic-agent

>>> ls -la
    total 24
    drwxrwxr-x  4 vicky vicky 4096 Sep 11 11:27 .
    drwxrwxr-x 50 vicky vicky 4096 Sep 11 11:25 ..
    drwxrwxr-x  3 vicky vicky 4096 Sep 11 10:38 1-basic-agent
    -rw-rw-r--  1 vicky vicky  123 Sep 11 10:51 requirements.txt
    drwxrwxr-x  5 vicky vicky 4096 Sep 11 10:54 .venv
>>> pip install -r requirements.txt
>>> pip install google-adk -U
>>> cd 1-basic-agent
>>> ls
    greeting_agent
>>> adk web
image

2-tool-agent

>>> cd 2-tool-agent
>>> ls
    tool_agent
>>> adk web
image