Spaces:
Runtime error
Runtime error
Update core_mcp.py
Browse files- core_mcp.py +2 -5
core_mcp.py
CHANGED
|
@@ -169,7 +169,7 @@ CODER AI'S QUESTIONS:
|
|
| 169 |
TOOL EXECUTION RESULTS:
|
| 170 |
{tool_results}
|
| 171 |
|
| 172 |
-
Using the tool results above, provide the final, complete clarification for the Coder AI. This should be a synthesized, unambiguous
|
| 173 |
|
| 174 |
def format_resolution_prompt(blueprint: str, clarification: str) -> str:
|
| 175 |
return f"""{SYSTEM_PROMPT}
|
|
@@ -430,10 +430,7 @@ def call_ai_api(full_url: str, api_key: str, messages: List[Dict[str, str]]) ->
|
|
| 430 |
else:
|
| 431 |
return f"ERROR: API malformed response: {data}"
|
| 432 |
except Exception as e:
|
| 433 |
-
|
| 434 |
-
raw_error = str(e)
|
| 435 |
-
sanitized_error = sanitize_error_message(raw_error)
|
| 436 |
-
return f"ERROR: API call failed: {sanitized_error}"
|
| 437 |
|
| 438 |
def resolve_model(selected_label: str, model_registry: Dict[str, Dict], fallback_label: str, agent_name: str) -> Tuple[str, str, str]:
|
| 439 |
if selected_label and selected_label in model_registry:
|
|
|
|
| 169 |
TOOL EXECUTION RESULTS:
|
| 170 |
{tool_results}
|
| 171 |
|
| 172 |
+
Using the tool results above, provide the final, complete clarification for the Coder AI. This should be a synthesized, unambiguous of instructions."""
|
| 173 |
|
| 174 |
def format_resolution_prompt(blueprint: str, clarification: str) -> str:
|
| 175 |
return f"""{SYSTEM_PROMPT}
|
|
|
|
| 430 |
else:
|
| 431 |
return f"ERROR: API malformed response: {data}"
|
| 432 |
except Exception as e:
|
| 433 |
+
return f"ERROR: API call failed: {str(e)}"
|
|
|
|
|
|
|
|
|
|
| 434 |
|
| 435 |
def resolve_model(selected_label: str, model_registry: Dict[str, Dict], fallback_label: str, agent_name: str) -> Tuple[str, str, str]:
|
| 436 |
if selected_label and selected_label in model_registry:
|