feat: add llama-index-tools-hvf for Hudson Valley Forestry API#20728
Open
sansscott wants to merge 4 commits intorun-llama:mainfrom
Open
feat: add llama-index-tools-hvf for Hudson Valley Forestry API#20728sansscott wants to merge 4 commits intorun-llama:mainfrom
sansscott wants to merge 4 commits intorun-llama:mainfrom
Conversation
Adds a new LlamaIndex tool spec integration for the Hudson Valley Forestry public API (https://app.hudsonvalleyforestry.com/api). The HVFToolSpec exposes four agent-callable tools: health_check, get_services, submit_residential_inquiry, and submit_commercial_inquiry. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
AstraBert
approved these changes
Feb 18, 2026
| f"{self._base}{path}", json=payload, timeout=self._timeout | ||
| ) | ||
| resp.raise_for_status() | ||
| return resp.json() |
Member
There was a problem hiding this comment.
I think you should probably serialized the returned payload as a string to return that (in my experience that's best for agents)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
llama-index-tools-hvfunderllama-index-integrations/tools/HVFToolSpecwith 9 agent-callable tools wrapping the Hudson Valley Forestry public REST APIllama-index-tools-openapiexactlyTools provided
HVF Residential (Hudson Valley Forestry)
hvf_get_services()GET /api/agent/serviceshvf_assess_property(lat, lng, acreage, service_type, vegetation_density?)POST /api/agent/assesshvf_submit_quote(email, name, acreage, service_type, property_description, ...)POST /api/agent/quoteHVG Goat Grazing (Hudson Valley Goats)
hvg_get_services()GET /api/agent/goat/serviceshvg_assess_property(lat, lng, acreage, vegetation_type?)POST /api/agent/goat/assesshvg_submit_quote(email, name, acreage, service_type, property_description, ...)POST /api/agent/goat/quoteCommercial O&G (Oil & Gas Pipeline)
og_get_services()GET /api/agent/commercial/servicesog_assess_project(lat, lng, service_type?, project_description?, acreage?, corridor_miles?)POST /api/agent/commercial/assessog_submit_quote(email, name, service_type, project_description, ...)POST /api/agent/commercial/quotePackage details
llama-index-tools-hvffrom llama_index.tools.hvf import HVFToolSpechttps://app.hudsonvalleyforestry.comhttps://app.hudsonvalleyforestry.com/openapi.jsonhttps://app.hudsonvalleyforestry.com/api/docsllama-index-core>=0.13.0,<0.15,requests>=2.28.0>=3.9,<4.0Files added
Test plan
pytest llama-index-integrations/tools/llama-index-tools-hvf/tests/passes (18 tests, all mocked)pip install -e llama-index-integrations/tools/llama-index-tools-hvf/from llama_index.tools.hvf import HVFToolSpecimports successfullyHVFToolSpec().to_tool_list()returns 9 tools🤖 Generated with Claude Code