feat(tavily_weather): add example workflow for Tavily plugin#1940
feat(tavily_weather): add example workflow for Tavily plugin#1940lakshyaag-tavily wants to merge 3 commits into
Conversation
…ly plugin Signed-off-by: Lakshya Agarwal <lakshya.agarwal@tavily.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughAdds a self-contained example project ( ChangesTavily Weather Example
🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
examples/tavily_weather/README.md (1)
10-19: ⚡ Quick winClarify the working directory for command execution.
The
--config_filepath is relative to the example directory, but the coding guidelines prefer examples to be runnable from the repository root. Consider adding a note specifying the working directory.📝 Suggested improvement
## Run +From the `examples/tavily_weather/` directory, run: + ```bash export TAVILY_API_KEY=... export ANTHROPIC_API_KEY=...Alternatively, if you prefer commands to be executable from the repository root, update the path:
- --config_file src/nat_tavily_weather/configs/config.yml \ + --config_file examples/tavily_weather/src/nat_tavily_weather/configs/config.yml \🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@examples/tavily_weather/README.md` around lines 10 - 19, The README's example command uses a relative --config_file path (src/nat_tavily_weather/configs/config.yml) but doesn't state the expected working directory, causing confusion when running uv run nat run; update the README to explicitly state the working directory (e.g., "run this command from the examples/tavily_weather directory") or change the --config_file value to an absolute/repo-root-relative path (e.g., examples/tavily_weather/src/nat_tavily_weather/configs/config.yml) so the uv run nat run invocation and the --config_file reference are correct when executed from the repository root.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@examples/tavily_weather/pyproject.toml`:
- Around line 27-38: Add the new example name "nat_tavily_weather" to the root
pyproject.toml's examples array; locate the examples list in the root
pyproject.toml and insert "nat_tavily_weather" in alphabetical order among the
other example names so the examples array includes this project (refer to the
example project name nat_tavily_weather defined in the
examples/tavily_weather/pyproject.toml).
- Line 41: The file pyproject.toml is missing a final newline; update the file
that contains the dependency line "nvidia-nat = { path = \"../..\", editable =
true }" so that the file ends with a single newline character (ensure exactly
one trailing newline at EOF) and save the file.
---
Nitpick comments:
In `@examples/tavily_weather/README.md`:
- Around line 10-19: The README's example command uses a relative --config_file
path (src/nat_tavily_weather/configs/config.yml) but doesn't state the expected
working directory, causing confusion when running uv run nat run; update the
README to explicitly state the working directory (e.g., "run this command from
the examples/tavily_weather directory") or change the --config_file value to an
absolute/repo-root-relative path (e.g.,
examples/tavily_weather/src/nat_tavily_weather/configs/config.yml) so the uv run
nat run invocation and the --config_file reference are correct when executed
from the repository root.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 9324183b-8248-4e3d-9073-da7c33751763
⛔ Files ignored due to path filters (1)
examples/tavily_weather/uv.lockis excluded by!**/*.lock
📒 Files selected for processing (4)
examples/tavily_weather/README.mdexamples/tavily_weather/pyproject.tomlexamples/tavily_weather/src/nat_tavily_weather/__init__.pyexamples/tavily_weather/src/nat_tavily_weather/configs/config.yml
Signed-off-by: Lakshya Agarwal <lakshya.agarwal@tavily.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: Lakshya Agarwal <lakshya.agarwal@tavily.com>
Description
Adds
examples/tavily_weather/, a minimal smoke-test workflow demonstrating the new framework-neutral Tavily integration published asnemo-agent-toolkit-tavilyon PyPI.The example wires a LangChain ReAct agent (Claude Sonnet 4.6 via LiteLLM) to the
tavilyfunction group from the new package, exposingtavily__searchandtavily__extract(withcrawlandmapexcluded via the group'sexcludefield).This is the user-facing companion to the framework-neutral Tavily subpackage tracked in #1900 - the package itself ships externally on PyPI and is not vendored into this repo, so this PR only adds the example workflow that depends on it.
Closes #1900
By Submitting this PR I confirm:
Summary by CodeRabbit
New Features
Documentation