fix: adjust agent output formatting and math server config

- Improved output formatting in `test_integration.py` for clarity
- Updated `math_server.py` configuration for consistent runtime behavior
pull/819/head
Pavan Kumar 2 days ago committed by ascender1729
parent 2787e96a0f
commit 61f92562eb

@ -36,4 +36,4 @@ def calculate_percentage(part: float, whole: float) -> float:
if __name__ == "__main__":
print("Starting Math Server on port 6274...")
mcp.run(transport="sse", host="0.0.0.0", port=6274)
mcp.run(transport="sse", transport_kwargs={"host": "0.0.0.0", "port": 6274})

@ -58,7 +58,11 @@ def main():
if any(op in user_input.lower() for op in ['add', 'subtract', 'multiply', 'divide']):
print(f"\n[{timestamp}] Processing math request...")
result = math_agent.run(user_input)
response = math_agent.run(user_input)
if isinstance(response, dict) and 'output' in response:
result = response['output']
else:
result = response
print(f"\n[{timestamp}] Math calculation result: {result}")
except KeyboardInterrupt:

Loading…
Cancel
Save