feat: add buffer tool (#8)

* wip buffer tool

* add search area to attribute

* add geopandas dependency

* add buffer tool and fix graph to add in the overture tool

* make async

* simpler buffering

* cleaner comments

Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>

* Change from FeatureCollection to Feature

And ensure that output search area is a Polygon

* update test comments

* remove unhelpful test checks

---------

Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
Co-authored-by: Daniel Wiesmann <yellowcap@users.noreply.github.com>
This commit is contained in:
Martha Morrissey
2025-12-04 08:14:38 -07:00
committed by GitHub
parent 2d34ee0a16
commit 24c53b66e3
6 changed files with 240 additions and 26 deletions
+5 -4
View File
@@ -1,7 +1,8 @@
from langchain.agents import AgentState as BaseAgentState
from geojson_pydantic import FeatureCollection
from langchain.agents import AgentState
from geojson_pydantic import Feature
from typing import Optional
class GeoAssistantState(BaseAgentState):
place: Optional[FeatureCollection] = None
class GeoAssistantState(AgentState):
place: Optional[Feature]
search_area: Optional[Feature]