Skip to content

Commit ebeb9c0

Browse files
committed
Adding or updating docs and client for search_api
1 parent c27ffb1 commit ebeb9c0

File tree

7 files changed

+25
-7
lines changed

7 files changed

+25
-7
lines changed

agentverse-client/agentverse_client/search/aio/docs/Agent.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
3131
**owner** | **str** | | [optional]
3232
**recent_verified_interactions** | **int** | the number of recent interactions of this agent coming from a verified source like ASI:One or the QA Agent |
3333
**recent_success_verified_interactions** | **int** | the number of recent successful interactions of this agent coming from a verified source like ASI:One or the QA Agent |
34+
**last_success_exec_at** | **datetime** | | [optional]
3435

3536
## Example
3637

agentverse-client/agentverse_client/search/aio/models/agent.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class Agent(BaseModel):
6060
owner: Optional[StrictStr] = None
6161
recent_verified_interactions: StrictInt = Field(description="the number of recent interactions of this agent coming from a verified source like ASI:One or the QA Agent")
6262
recent_success_verified_interactions: StrictInt = Field(description="the number of recent successful interactions of this agent coming from a verified source like ASI:One or the QA Agent")
63-
__properties: ClassVar[List[str]] = ["address", "prefix", "name", "description", "readme", "protocols", "avatar_href", "total_interactions", "recent_interactions", "rating", "status", "type", "featured", "category", "system_wide_tags", "geo_location", "handle", "domain", "metadata", "last_updated", "created_at", "recent_success_rate", "recent_eval_success_rate", "owner", "recent_verified_interactions", "recent_success_verified_interactions"]
63+
last_success_exec_at: Optional[datetime] = None
64+
__properties: ClassVar[List[str]] = ["address", "prefix", "name", "description", "readme", "protocols", "avatar_href", "total_interactions", "recent_interactions", "rating", "status", "type", "featured", "category", "system_wide_tags", "geo_location", "handle", "domain", "metadata", "last_updated", "created_at", "recent_success_rate", "recent_eval_success_rate", "owner", "recent_verified_interactions", "recent_success_verified_interactions", "last_success_exec_at"]
6465

6566
model_config = ConfigDict(
6667
populate_by_name=True,
@@ -163,6 +164,11 @@ def to_dict(self) -> Dict[str, Any]:
163164
if self.owner is None and "owner" in self.model_fields_set:
164165
_dict['owner'] = None
165166

167+
# set to None if last_success_exec_at (nullable) is None
168+
# and model_fields_set contains the field
169+
if self.last_success_exec_at is None and "last_success_exec_at" in self.model_fields_set:
170+
_dict['last_success_exec_at'] = None
171+
166172
return _dict
167173

168174
@classmethod
@@ -205,7 +211,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
205211
"recent_eval_success_rate": obj.get("recent_eval_success_rate"),
206212
"owner": obj.get("owner"),
207213
"recent_verified_interactions": obj.get("recent_verified_interactions"),
208-
"recent_success_verified_interactions": obj.get("recent_success_verified_interactions")
214+
"recent_success_verified_interactions": obj.get("recent_success_verified_interactions"),
215+
"last_success_exec_at": obj.get("last_success_exec_at")
209216
})
210217
return _obj
211218

agentverse-client/agentverse_client/search/aio/test/test_agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def make_instance(self, include_optional) -> Agent:
8181
recent_eval_success_rate = 1.337,
8282
owner = '',
8383
recent_verified_interactions = 56,
84-
recent_success_verified_interactions = 56
84+
recent_success_verified_interactions = 56,
85+
last_success_exec_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
8586
)
8687
else:
8788
return Agent(

agentverse-client/agentverse_client/search/aio/test/test_agent_search_response.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ def make_instance(self, include_optional) -> AgentSearchResponse:
8383
recent_eval_success_rate = 1.337,
8484
owner = '',
8585
recent_verified_interactions = 56,
86-
recent_success_verified_interactions = 56, )
86+
recent_success_verified_interactions = 56,
87+
last_success_exec_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
8788
],
8889
offset = 56,
8990
limit = 56,

agentverse-client/agentverse_client/search/docs/Agent.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Name | Type | Description | Notes
3131
**owner** | **str** | | [optional]
3232
**recent_verified_interactions** | **int** | the number of recent interactions of this agent coming from a verified source like ASI:One or the QA Agent |
3333
**recent_success_verified_interactions** | **int** | the number of recent successful interactions of this agent coming from a verified source like ASI:One or the QA Agent |
34+
**last_success_exec_at** | **datetime** | | [optional]
3435

3536
## Example
3637

agentverse-client/agentverse_client/search/models/agent.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ class Agent(BaseModel):
6060
owner: Optional[StrictStr] = None
6161
recent_verified_interactions: StrictInt = Field(description="the number of recent interactions of this agent coming from a verified source like ASI:One or the QA Agent")
6262
recent_success_verified_interactions: StrictInt = Field(description="the number of recent successful interactions of this agent coming from a verified source like ASI:One or the QA Agent")
63-
__properties: ClassVar[List[str]] = ["address", "prefix", "name", "description", "readme", "protocols", "avatar_href", "total_interactions", "recent_interactions", "rating", "status", "type", "featured", "category", "system_wide_tags", "geo_location", "handle", "domain", "metadata", "last_updated", "created_at", "recent_success_rate", "recent_eval_success_rate", "owner", "recent_verified_interactions", "recent_success_verified_interactions"]
63+
last_success_exec_at: Optional[datetime] = None
64+
__properties: ClassVar[List[str]] = ["address", "prefix", "name", "description", "readme", "protocols", "avatar_href", "total_interactions", "recent_interactions", "rating", "status", "type", "featured", "category", "system_wide_tags", "geo_location", "handle", "domain", "metadata", "last_updated", "created_at", "recent_success_rate", "recent_eval_success_rate", "owner", "recent_verified_interactions", "recent_success_verified_interactions", "last_success_exec_at"]
6465

6566
model_config = ConfigDict(
6667
populate_by_name=True,
@@ -163,6 +164,11 @@ def to_dict(self) -> Dict[str, Any]:
163164
if self.owner is None and "owner" in self.model_fields_set:
164165
_dict['owner'] = None
165166

167+
# set to None if last_success_exec_at (nullable) is None
168+
# and model_fields_set contains the field
169+
if self.last_success_exec_at is None and "last_success_exec_at" in self.model_fields_set:
170+
_dict['last_success_exec_at'] = None
171+
166172
return _dict
167173

168174
@classmethod
@@ -205,7 +211,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
205211
"recent_eval_success_rate": obj.get("recent_eval_success_rate"),
206212
"owner": obj.get("owner"),
207213
"recent_verified_interactions": obj.get("recent_verified_interactions"),
208-
"recent_success_verified_interactions": obj.get("recent_success_verified_interactions")
214+
"recent_success_verified_interactions": obj.get("recent_success_verified_interactions"),
215+
"last_success_exec_at": obj.get("last_success_exec_at")
209216
})
210217
return _obj
211218

web/openapi_specs/search_api_openapi_specification.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)