MCPcopy Create free account
hub / github.com/IBM/mcp-cli / has_error

Method has_error

src/mcp_cli/tools/models.py:364–366  ·  view source on GitHub ↗

Check if the result contains an error.

(self)

Source from the content-addressed store, hash-verified

362
363 @property
364 def has_error(self) -> bool:
365 """Check if the result contains an error."""
366 return not self.success or self.error is not None
367
368 def to_conversation_history(self) -> str:
369 """Convert result to conversation history string."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected