Installation
Building From Package
Important
This part is in-the-works! For now, please refer to the Building From Source (with pip) section below.
Building From Source (with pip)
Make sure you have Python 3.12 and Poetry installed!
Clone this repository. Make sure you have your SSH key setup!
git clone git@github.com:couchbaselabs/agent-catalog.git
You are now ready to install the Agent Catalog package! Using your project’s Python environment, execute the following command to install a local package with pip:
cd agent-catalog source $MY_PYTHON_ENVIRONMENT # Install the agentc package. pip install libs/agentc
If you are interested in building a
.whl
file (for later use in.whl
-based installs), use poetry directly:cd libs/agentc poetry build
Building From Source (with Poetry)
Make sure you have Python 3.12 and Poetry installed!
Clone this repository. Make sure you have your SSH key setup!
git clone git@github.com:couchbaselabs/agent-catalog.git
Within your own
pyproject.toml
file, add the following dependency to your project: Thepath
should point to the location of theagentc
package (and is relative to thepyproject.toml
file itself).[tool.poetry.dependencies] agentc = { path = "agent-catalog/libs/agentc", develop = true }
Run the command poetry update to install the Agent Catalog package.
cd agent-catalog poetry update
Verifying Your Installation
If you’ve followed the steps above, you should now have the agentc command line tool. Run agentc --help to verify your installation (note that your first run will take a couple of seconds as some libraries like numpy need to be built, subsequent runs will be faster).
Usage: agentc [OPTIONS] COMMAND [ARGS]...
The Couchbase Agent Catalog command line tool.
Options:
-c, --catalog DIRECTORY Directory of the local catalog files. [default: .agent-catalog]
-a, --activity DIRECTORY Directory of the local activity files (runtime data). [default: .agent-activity]
-v, --verbose Flag to enable verbose output. [default: 0; 0<=x<=2]
-i, --interactive / -ni, --no-interactive
Flag to enable interactive mode. [default: i]
--help Show this message and exit.
Commands:
add Interactively create a new tool or prompt and save it to the filesystem (output).
clean Delete all agent catalog related files / collections.
env Return all agentc related environment and configuration parameters as a JSON object.
execute Search and execute a specific tool.
find Find items from the catalog based on a natural language QUERY string or by name.
index Walk the source directory trees (SOURCE_DIRS) to index source files into the local catalog.
publish Upload the local catalog to a Couchbase instance.
status Show the status of the local catalog.
version Show the current version of agentc.
See: https://docs.couchbase.com for more information.
If you see the output above, you are all set! To build your first agent, head on over to the user guide page.