Skip to content

davidzhangbj/agent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oceanbase agent logo

License - Apache 2.0  CI Build   Discord   X Follow

Introduce

This project was modified from the xata agent project.

Installation / self-hosted

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

Development

Go to the apps/dbagent directory and follow the instructions in the README.

Extensibility

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.

About

OceanBase Agent

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.3%
  • JavaScript 2.3%
  • CSS 1.1%
  • Other 0.3%