Skip to content

Commit f378e67

Browse files
committed
Fix some issues
1 parent 6a35aab commit f378e67

File tree

3 files changed

+0
-27
lines changed

3 files changed

+0
-27
lines changed

plugins/communication_protocols/http/src/utcp_http/http_call_template.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -108,25 +108,6 @@ class HttpCallTemplate(CallTemplate):
108108
body_field: Optional[str] = Field(default="body", description="The name of the single input field to be sent as the request body.")
109109
header_fields: Optional[List[str]] = Field(default=None, description="List of input fields to be sent as request headers.")
110110

111-
@field_serializer('auth')
112-
def serialize_auth(self, auth: Optional[Auth]) -> Optional[dict]:
113-
"""Serialize auth to dictionary."""
114-
if auth is None:
115-
return None
116-
return AuthSerializer().to_dict(auth)
117-
118-
@field_validator('auth', mode='before')
119-
@classmethod
120-
def validate_auth(cls, v: Any) -> Optional[Auth]:
121-
"""Validate and deserialize auth from dictionary."""
122-
if v is None:
123-
return None
124-
if isinstance(v, Auth):
125-
return v
126-
if isinstance(v, dict):
127-
return AuthSerializer().validate_dict(v)
128-
raise ValueError(f"auth must be None, Auth instance, or dict, got {type(v)}")
129-
130111
@field_serializer('auth_tools')
131112
def serialize_auth_tools(self, auth_tools: Optional[Auth]) -> Optional[dict]:
132113
"""Serialize auth_tools to dictionary."""

plugins/tool_search/in_mem_embeddings/tests/test_performance.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,3 @@ async def get_tools(self):
9797
import traceback
9898
traceback.print_exc()
9999
assert False, f"Performance test failed: {e}"
100-
101-
if __name__ == "__main__":
102-
success = asyncio.run(test_performance())
103-
sys.exit(0 if success else 1)

plugins/tool_search/in_mem_embeddings/tests/test_plugin.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,3 @@ async def get_tools(self):
100100
import traceback
101101
traceback.print_exc()
102102
assert False, f"Plugin test failed: {e}"
103-
104-
if __name__ == "__main__":
105-
success = asyncio.run(test_plugin())
106-
sys.exit(0 if success else 1)

0 commit comments

Comments
 (0)