### What problem does this PR solve?

As title

### Type of change

- [x] Refactoring

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2025-08-27 18:56:40 +08:00
committed by GitHub
parent 2d89863fdd
commit 5abd0bbac1
9 changed files with 25 additions and 24 deletions

View File

@ -148,7 +148,7 @@ class MCPToolCallSession(ToolCallSession):
if result.isError:
return f"MCP server error: {result.content}"
# For now we only support text content
# For now, we only support text content
if isinstance(result.content[0], TextContent):
return result.content[0].text
else: