McpCallOutputItem class
An MCP (Model Context Protocol) call output item.
Returned when the model uses the McpTool.
- Inheritance
-
- Object
- OutputItem
- McpCallOutputItem
- Annotations
-
- @immutable
Constructors
- McpCallOutputItem({required String id, required String callId, String? serverLabel, String? name, String? arguments, String? output, String? error, ItemStatus? status})
-
Creates an McpCallOutputItem.
const
-
McpCallOutputItem.fromJson(Map<
String, dynamic> json) -
Creates an McpCallOutputItem from JSON.
factory
Properties
- arguments → String?
-
The arguments passed to the tool (JSON string).
final
- callId → String
-
The call ID for this MCP call.
final
- error → String?
-
Error message if the call failed.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Unique identifier.
final
- name → String?
-
The name of the MCP tool called.
final
- output → String?
-
The output from the tool call.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverLabel → String?
-
The server label identifying the MCP server.
final
- status → ItemStatus?
-
Item status.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts to JSON.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override