McpServerToolApprovalRequestContent class
A request for user approval of an MCP server tool call.
This is an experimental feature.
- Inheritance
-
- Object
- AIContent
- UserInputRequestContent
- McpServerToolApprovalRequestContent
Constructors
- McpServerToolApprovalRequestContent({required String id, required McpServerToolCallContent toolCall, Object? rawRepresentation, AdditionalPropertiesDictionary? additionalProperties})
- Creates a new McpServerToolApprovalRequestContent.
Properties
- additionalProperties ↔ AdditionalPropertiesDictionary?
-
Additional properties.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
The unique identifier for this input request.
finalinherited
- rawRepresentation ↔ Object?
-
The underlying implementation-specific representation of this content.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toolCall → McpServerToolCallContent
-
The MCP server tool call requiring approval.
final
Methods
-
createResponse(
bool approved) → McpServerToolApprovalResponseContent - Creates a response to this approval request.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited