This project was modified from the xata agent project.
We provide docker images for the agent itself.
Start a local instance via docker command:
docker run -d \
--name ob-agent \
--env CUSTOM_BASE_URL='https://dashscope.aliyuncs.com/compatible-mode/v1' \
--env CUSTOM_API_KEY='sk-xxx' \
--env CUSTOM_CHAT_MODEL_NAME='qwen-max-latest' \
-p 8000:8000 \
davidzhangbj/oceanbaseagent:v0.2
Replace CUSTOM_BASE_URL, CUSTOM_API_KEY, and CUSTOM_CHAT_MODEL_NAME with the relevant information you are using.
Open the app at http://localhost:8000
Go to the apps/dbagent
directory and follow the instructions in the README.
The agent can be extended via the following mechanisms:
- Tools: These are functions that the agent can call to get information about the database. They are written in TypeScript.
- Playbooks: These are sequences of steps that the agent can follow to troubleshoot an issue. They are simply written in english.