Skip to main content

Definition

Assembly: CloudNimble.McpEssentials.Core.dll Namespace: CloudNimble.McpEssentials.Core.Tasks.Elicitations Inheritance: System.Object

Syntax

Summary

Selects Tasks wrapping from McpElicitFormAttribute and McpElicitUrlAttribute when Tasks is registered.

Methods

Apply

Wraps ExecutionModeSelector so a McpElicitFormAttribute tool stays on tools/call (Synchronous) and a McpElicitUrlAttribute tool is Optional.

Syntax

Parameters

Exceptions

Remarks

Form wins when both attributes are present. URL tools wrap only when the client advertised Tasks on this call, so a waiter can outlive the POST.

IsFormTool

Returns whether context matched a tool stamped with McpElicitFormAttribute.

Syntax

Parameters

Returns

Type: bool true when the matched primitive carries the attribute.

IsFormTool

Returns whether primitive carries McpElicitFormAttribute on the type or method.

Syntax

Parameters

Returns

Type: bool true when the attribute is present.

IsUrlTool

Returns whether context matched a tool stamped with McpElicitUrlAttribute.

Syntax

Parameters

Returns

Type: bool true when the matched primitive carries the attribute.

IsUrlTool

Returns whether primitive carries McpElicitUrlAttribute on the type or method.

Syntax

Parameters

Returns

Type: bool true when the attribute is present.