Skip to content

Commit 23168b1

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

File tree

7 files changed

+7
-25
lines changed

7 files changed

+7
-25
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ 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]
3534

3635
## Example
3736

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ 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-
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"]
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"]
6564

6665
model_config = ConfigDict(
6766
populate_by_name=True,
@@ -164,11 +163,6 @@ def to_dict(self) -> Dict[str, Any]:
164163
if self.owner is None and "owner" in self.model_fields_set:
165164
_dict['owner'] = None
166165

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-
172166
return _dict
173167

174168
@classmethod
@@ -211,8 +205,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
211205
"recent_eval_success_rate": obj.get("recent_eval_success_rate"),
212206
"owner": obj.get("owner"),
213207
"recent_verified_interactions": obj.get("recent_verified_interactions"),
214-
"recent_success_verified_interactions": obj.get("recent_success_verified_interactions"),
215-
"last_success_exec_at": obj.get("last_success_exec_at")
208+
"recent_success_verified_interactions": obj.get("recent_success_verified_interactions")
216209
})
217210
return _obj
218211

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ 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,
85-
last_success_exec_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
84+
recent_success_verified_interactions = 56
8685
)
8786
else:
8887
return Agent(

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ 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,
87-
last_success_exec_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
86+
recent_success_verified_interactions = 56, )
8887
],
8988
offset = 56,
9089
limit = 56,

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ 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]
3534

3635
## Example
3736

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

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ 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-
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"]
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"]
6564

6665
model_config = ConfigDict(
6766
populate_by_name=True,
@@ -164,11 +163,6 @@ def to_dict(self) -> Dict[str, Any]:
164163
if self.owner is None and "owner" in self.model_fields_set:
165164
_dict['owner'] = None
166165

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-
172166
return _dict
173167

174168
@classmethod
@@ -211,8 +205,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
211205
"recent_eval_success_rate": obj.get("recent_eval_success_rate"),
212206
"owner": obj.get("owner"),
213207
"recent_verified_interactions": obj.get("recent_verified_interactions"),
214-
"recent_success_verified_interactions": obj.get("recent_success_verified_interactions"),
215-
"last_success_exec_at": obj.get("last_success_exec_at")
208+
"recent_success_verified_interactions": obj.get("recent_success_verified_interactions")
216209
})
217210
return _obj
218211

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)