dakka
is a Python CLI tool that allows you to interact with an AI agent. It lets you set up configurations composed of several different OpenAPI specs that correspond to server endpoints, which the AI will be allowed to use when answering user questions.
You can install dakka
by cloning the repository and running the setup.py
file:
git clone https://github.com/your_username/dakka.git
cd dakka
python setup.py install
Before using dakka
, you need to set up your OpenAI key. Run the following command and enter your OpenAI key when prompted:
dakka install
- Save an OpenAPI spec from a URL or a file path:
dakka config save https://example.com/klarna.json --name klarna
or
dakka config save path/to/klarna.json --name klarna
- Enable or disable an OpenAPI spec:
dakka config enable klarna
dakka config disable klarna
- List all installed specs for the default configuration or a specified configuration:
dakka config list-specs
or
dakka config list-specs --config-name config_name
- Switch to a different configuration:
dakka config switch config_name
- Set the default configuration:
dakka config default config_name
- List all available configurations:
dakka config list-configs
Ask a question using the default configuration:
dakka ask "Do I need an umbrella today in Manhattan?"
Or specify a different configuration:
dakka ask -c weather "Do I need an umbrella today in Manhattan?"
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python setup.py develop
# Update version in setup.py
rm -rf build dist
python setup.py sdist bdist_wheel
twine upload dist/*