mirror of
https://github.com/dataforcanada/d4c-service-geo-assistant.git
synced 2026-06-14 23:11:01 +02:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user