ConversationMcpApprovalRequestItem class
An MCP approval request item in a conversation.
- Inheritance
-
- Object
- ConversationItem
- ConversationMcpApprovalRequestItem
- Annotations
-
- @immutable
Constructors
-
ConversationMcpApprovalRequestItem({required String id, String? serverLabel, Map<
String, dynamic> ? mcpCall, ItemStatus? status}) -
Creates a ConversationMcpApprovalRequestItem.
const
-
ConversationMcpApprovalRequestItem.fromJson(Map<
String, dynamic> json) -
Creates a ConversationMcpApprovalRequestItem from JSON.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Unique identifier.
final
-
mcpCall
→ Map<
String, dynamic> ? -
The MCP call being requested.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverLabel → String?
-
The server label.
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