-
Notifications
You must be signed in to change notification settings - Fork 25
feat: fix agent bugs #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| [agent] | ||
| address = "" | ||
| address = "agent1qwsjpp5gq9k79pvvd459jdgtkdudga0z0padwldf3m3htqq9ecn8knkrp90" | ||
| include = "" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| [agent] | ||
| address = "" | ||
| address = "agent1qgy3fthchdfgvcmtl0dzr78xvde6aattgsvmpcf2vljgs4pn7ye7gk8r756" | ||
| include = "" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,17 +3,13 @@ | |
| from uagents import Model | ||
|
|
||
|
|
||
| class Coordinates(Model): | ||
| class POIAreaRequest(Model): | ||
| latitude: float | ||
| longitude: float | ||
|
|
||
|
|
||
| class POIAreaRequest(Model): | ||
| loc_search: Coordinates | ||
| radius_in_m: int | ||
| limit: int = 20 | ||
| query_string: str | ||
| filter: Dict[str, Any] = {} | ||
| filter: Dict[str, Any] = Field(default_factory=dict) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The Suggested FixAdd Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
|
|
||
|
|
||
| class POI(Model): | ||
|
|
@@ -22,7 +18,8 @@ class POI(Model): | |
| brands: Optional[List[str]] = None | ||
| top_category: Optional[str] = None | ||
| sub_category: Optional[str] = None | ||
| location: Coordinates | ||
| latitude: float | ||
| longitude: float | ||
| address: str | ||
| city: str | ||
| region: Optional[str] = None | ||
|
|
@@ -32,7 +29,8 @@ class POI(Model): | |
|
|
||
|
|
||
| class POIResponse(Model): | ||
| loc_search: Coordinates | ||
| latitude: float | ||
| longitude: float | ||
| radius_in_m: int | ||
| data_origin: str | ||
| data: List[POI] | ||
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The
data_originfield inPOIResponseis hardcoded to an empty string, removing data source information. It should be set dynamically usingagent.name.Severity: MEDIUM
Suggested Fix
In
agent.py, change thePOIResponseinstantiation to setdata_origintoagent.nameinstead of an empty string. This will restore the data provenance information.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.