ToolCallResult#

class scikitplot.corpus.ToolCallResult(call_id, content, is_error=False, error_message=None)[source]#

Result returned from a Model Context Protocol tool call.

Note

Protocol-neutral payload shape, not an MCP wire model. Corpus does not own the Model Context Protocol wire format (see the submodule ownership split). Adding a pydantic model, an mcp SDK import, or protocol-version handling to this class would move wire concerns into Corpus and violate that boundary. Finding F-R15-01 / P-I0-13.

Parameters:
call_idstr

Identifier matching the originating ToolCallInput.

contentAny

Tool result payload (str, list, dict, …).

is_errorbool

True if the tool raised an error.

error_messagestr or None

Error description when is_error is True.

Parameters:
  • call_id (str)

  • content (Any)

  • is_error (bool)

  • error_message (str | None)

call_id: str[source]#
content: Any[source]#
error_message: str | None = None#
is_error: bool = False#