4444 AssistantQueryInput , AssistantPostInput , InputType , EmbeddingsInput , \
4545 semantic_search_system_prompt , \
4646 SemanticSearchInput , EmbeddingsStoreOutput
47- from .mcp import MCPToolTrigger , _TYPE_MAPPING , _extract_type_and_description
47+ from .mcp import MCPToolTrigger , _TYPE_MAPPING
4848from .retry_policy import RetryPolicy
4949from .function_name import FunctionName
5050from .warmup import WarmUpTrigger
@@ -1603,15 +1603,14 @@ def decorator(fb: FunctionBuilder) -> FunctionBuilder:
16031603 continue
16041604 param_type_hint = param .annotation if param .annotation != inspect .Parameter .empty else str # noqa
16051605 # Parse type and description from type hint
1606- actual_type , param_desc = _extract_type_and_description (
1607- param_name , param_type_hint )
1606+ actual_type = param_type_hint
16081607 if actual_type is MCPToolContext :
16091608 continue
16101609 property_type = _TYPE_MAPPING .get (actual_type , "string" )
16111610 tool_properties .append ({
16121611 "propertyName" : param_name ,
16131612 "propertyType" : property_type ,
1614- "description" : param_desc ,
1613+ "description" : "" ,
16151614 })
16161615
16171616 tool_properties_json = json .dumps (tool_properties )
@@ -1634,7 +1633,7 @@ async def wrapper(context: str, *args, **kwargs):
16341633 call_kwargs = {}
16351634 for param_name , param in sig .parameters .items ():
16361635 param_type_hint = param .annotation if param .annotation != inspect .Parameter .empty else str # noqa
1637- actual_type , _ = _extract_type_and_description ( param_name , param_type_hint )
1636+ actual_type = param_type_hint
16381637 if actual_type is MCPToolContext :
16391638 call_kwargs [param_name ] = content
16401639 elif param_name in arguments :
0 commit comments