Repository navigation
Update agents - #1186
Update agents#1186
Conversation
WalkthroughVersion bumps across multiple package.json files, updating internal dependencies, adding @graphai/tools_agent to agents/llm_agents, and aligning versions for llm agents, the agents package, CLI, and test utilities. No source code or API surface changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (6)
agents/llm_agents/package.json(2 hunks)llm_agents/anthropic_agent/package.json(1 hunks)llm_agents/groq_agent/package.json(1 hunks)packages/agents/package.json(2 hunks)packages/cli/package.json(2 hunks)packages/test_utils/package.json(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: build (24.x)
- GitHub Check: build (22.x)
🔇 Additional comments (9)
packages/test_utils/package.json (1)
33-33: Validate graphai version bump consistencyAll occurrences of graphai in package.json are already aligned to ^2.0.13 in:
- packages/test_utils/package.json (line 33)
- packages/cli/package.json (line 43)
A lockfile (yarn.lock) is present at the repo root. Please confirm that yarn.lock has been updated so that every graphai entry is pinned to 2.0.13 and there are no leftover references to other versions.
llm_agents/anthropic_agent/package.json (2)
3-3: Version bump LGTMNo other changes; consistent with dependents update in the monorepo.
3-3: All dependents reference ^2.0.6
- Verified that
agents/llm_agents/package.json(line 29) uses"@graphai/anthropic_agent": "^2.0.6".No further updates required.
llm_agents/groq_agent/package.json (2)
3-3: Version bump LGTMMatches the aggregator updates.
3-3: Dependent version ranges are up-to-dateAll references to
@graphai/groq_agenthave been updated to^2.0.2. Only one dependent was found:
- agents/llm_agents/package.json (line 31):
"@graphai/groq_agent": "^2.0.2"No further changes required.
packages/cli/package.json (1)
3-3: Confirmed version cohesion across the repo
- packages/cli/package.json:
- "@graphai/agents": "^2.0.8"
- "graphai": "^2.0.13"
- packages/test_utils/package.json:
- "graphai": "^2.0.13"
No other occurrences of older @graphai/agents or graphai versions were found. No further changes needed.
packages/agents/package.json (2)
3-3: Agents package aligned with upstream updatesVersion and dependency bumps are coherent with the llm_agents/input_agents updates.
Also applies to: 31-31, 32-32
31-31: Sanity-check transitive compatibilityEnsure @graphai/input_agents@^1.0.2 and @graphai/llm_agents@^2.0.3 share compatible peer/runtime expectations with this package’s public surface.
• packages/agents/package.json (lines 31–32):
- "@graphai/input_agents": "^1.0.2"
- "@graphai/llm_agents": "^2.0.3"
To verify:
npm info @graphai/[email protected] peerDependencies
npm info @graphai/[email protected] peerDependenciesConfirm there are no conflicting peer deps or engine requirements, and consider adding a small integration smoke test to catch any runtime mismatches early.
agents/llm_agents/package.json (1)
3-3: New tools_agent dependency and version bumps look goodAddition of @graphai/tools_agent ^1.0.0 and alignment with other agent versions are consistent.
Also applies to: 29-29, 31-31, 34-34, 35-35
| "homepage": "https://github.com/receptron/graphai/blob/main/agents/llm_agents/README.md", | ||
| "dependencies": { | ||
| "@graphai/anthropic_agent": "^2.0.5", | ||
| "@graphai/anthropic_agent": "^2.0.6", |
There was a problem hiding this comment.
💡 Verification agent
🧩 Analysis chain
Verify presence and exports of tools_agent
Confirm the tools_agent package exists in the monorepo and that llm_agents re-exports its symbols if intended.
Also applies to: 31-31, 35-35
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Locate tools_agent package.json:"
rg -n --no-heading -S '"name":\s*"@graphai/tools_agent"' --glob '!**/node_modules/**' -A 3
echo
echo "Check for re-exports in llm_agents (src or lib):"
rg -n --no-heading -S 'tools_agent' agents/llm_agents --glob '!**/node_modules/**' -A 2 || trueLength of output: 840
I’d like to verify whether llm_agents actually re-exports anything from tools_agent. Let’s inspect the entrypoint files for export statements:
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Files under agents/llm_agents/lib/:"
fd --base-directory=agents/llm_agents lib -t f || true
echo
echo "First 200 lines of agents/llm_agents/lib/index.js (if it exists):"
if [ -f agents/llm_agents/lib/index.js ]; then
sed -n '1,200p' agents/llm_agents/lib/index.js
else
echo "agents/llm_agents/lib/index.js not found"
fi
echo
echo "Search for any references to tools_agent in lib/:"
rg -n --no-heading 'tools_agent' agents/llm_agents/lib -A 5 -B 5 || trueLength of output: 2113
Add or remove the unused tools_agent export
It looks like you’ve added the @graphai/tools_agent dependency in
• agents/llm_agents/package.json (line 35)
and the package lives at agents/llm_agents/tools_agent, but lib/index.js does not re-export any of its symbols.
Please either:
• Add the intended export(s) in agents/llm_agents/lib/index.js, for example:
const tools_agent_1 = require("@graphai/tools_agent");
Object.defineProperty(exports, "toolsAgent", {
enumerable: true,
get: () => tools_agent_1.toolsAgent,
});• Or remove the @graphai/tools_agent entry from package.json if it’s unused.
🤖 Prompt for AI Agents
In agents/llm_agents/package.json (around line 29, dependency also referenced
near line 35): the package lists "@graphai/tools_agent" but
agents/llm_agents/lib/index.js does not re-export it; either remove the
"@graphai/tools_agent" entry from package.json if unused, or add a re-export in
agents/llm_agents/lib/index.js that requires "@graphai/tools_agent" and exposes
its intended symbol (e.g., toolsAgent) via exports so downstream consumers can
import it.
Summary by CodeRabbit