mirror of
https://github.com/dataforcanada/d4c-service-geo-assistant.git
synced 2026-06-14 23:11:01 +02:00
Fix frontend (#15)
* Fix frontend * Fix feature creation from overture tool
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
from langchain.agents import AgentState
|
||||
from geojson_pydantic import Feature
|
||||
from typing import Optional
|
||||
from typing_extensions import NotRequired
|
||||
from pydantic import Field
|
||||
|
||||
|
||||
class GeoAssistantState(AgentState):
|
||||
place: Optional[Feature]
|
||||
search_area: Optional[Feature]
|
||||
naip_png_path: Optional[str] = Field(
|
||||
place: NotRequired[Feature | None] = None
|
||||
search_area: NotRequired[Feature | None] = None
|
||||
naip_png_path: NotRequired[str | None] = Field(
|
||||
default=None, description="Path to the saved NAIP RGB PNG image"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user