Sample agentic workflows built using Couchbase Agent Catalog.
Navigate to the specific example (e.g., travel_agent
) you are interested in! :-)
In the future, we will have more examples for you to explore.
To set up pre-commit
and reap all the benefits of code formatting, linting, automatic poetry
lock generation, etc...
execute the following command:
pip install pre-commit
pre-commit install
By default, all examples in agentc-example
will clone the agent-catalog
repository and use the files specified in
master
(specifically, libs/agentc
).
For developers working on any of the agentc
packages that want to see their changes reflected in agentc-example
without going through git
, perform the following:
- In the specific example you want to run (e.g.,
travel_agent
), modify the[tool.poetry.dependencies.agentc]
section inpyproject.toml
to point to your clonedagent-catalog
directory. Specifically, you'll need to comment out the "git" and "subdirectories" line and comment out the "path" line. Substitute$LOCATION_OF_LOCAL_AGENT_CATALOG_REPO
accordingly.# The agentc project (the front-facing parts)! [tool.poetry.dependencies.agentc] # git = "git@github.com:couchbaselabs/agent-catalog.git" # subdirectory = "libs/agentc" path = "$LOCATION_OF_LOCAL_AGENT_CATALOG_REPO/libs/agentc" extras = ["langchain"] develop = true
- Now update your Poetry environment.
Tip: Running in verbose mode (with
poetry update
-v
flag) would be beneficial if you are a windows user or the installation seems to be taking more time.
Your Poetry environment should now possess the agentc-catalog
files in $LOCATION_OF_LOCAL_AGENT_CATALOG_REPO
.