Skip to content

Incremental engine for long horizon agents 🌟 Star if you like it!

fix(examples): CocoIndex Agents requires cocoindex 1.2.0, the release that has its APIs (#2797)

jerryqu-coco840ce829e9e0
diff --git a/examples/cocoindex_agents/README.md b/examples/cocoindex_agents/README.md
index 1b1f3855..f4bcdcc3 100644
--- a/examples/cocoindex_agents/README.md
+++ b/examples/cocoindex_agents/README.md
@@ -19,8 +19,8 @@ input.
## Running
-It runs on the CocoIndex in this repository: it uses APIs no release has
-yet, so install it from a clone, not from PyPI. Once, from the repository
+It needs CocoIndex 1.2.0 or later. The steps below run it from a clone of
+this repository, on the CocoIndex built from it. Once, from the repository
root:
```sh
@@ -81,6 +81,5 @@ From the repository root, after `uv run maturin develop`:
uv run pytest examples/cocoindex_agents/tests
```
-The tests need no API key. They also need this repository's CocoIndex, so
-there is no standalone install yet: `uv sync` inside this directory would
-take the last CocoIndex release from PyPI, which lacks APIs this package uses.
+The tests need no API key. They run on this repository's CocoIndex, in the
+same environment as the steps under [Running](#running).
diff --git a/examples/cocoindex_agents/pyproject.toml b/examples/cocoindex_agents/pyproject.toml
index 7da59298..64e35328 100644
--- a/examples/cocoindex_agents/pyproject.toml
+++ b/examples/cocoindex_agents/pyproject.toml
@@ -4,9 +4,9 @@ version = "0.1.0"
description = "CocoIndex example: incremental agents over your data β€” subagents as components, model turns as memoized functions."
requires-python = ">=3.11"
# use_state, memo_key on components and the APIs this example builds on: v1.1.0 and
-# later; the Google Drive source signs in with `google_drive.UserAccount` (unreleased
-# at the time of writing: run from the repository with the local build).
-dependencies = ["cocoindex[google_drive]>=1.1.0"]
+# later; `coco.DataDep` and the Google Drive source's `google_drive.UserAccount`
+# sign-in: v1.2.0 and later.
+dependencies = ["cocoindex[google_drive]>=1.2.0"]
[project.optional-dependencies]
llm = ["litellm!=1.107.0"]