Language

ExternalInputRequest.IExternalRequestEnvelope.GetInnerRequestContent Method

Definition

Returns the inner AI content that should be delivered to the host on the wire. Typically a FunctionCallContent or ToolApprovalRequestContent.

Microsoft.Extensions.AI.AIContent? IExternalRequestEnvelope.GetInnerRequestContent();
abstract member Microsoft.Agents.AI.Workflows.IExternalRequestEnvelope.GetInnerRequestContent : unit -> Microsoft.Extensions.AI.AIContent
override this.Microsoft.Agents.AI.Workflows.IExternalRequestEnvelope.GetInnerRequestContent : unit -> Microsoft.Extensions.AI.AIContent
Function GetInnerRequestContent () As AIContent Implements IExternalRequestEnvelope.GetInnerRequestContent

Returns

The inner content, or null if no suitable inner content is available.

Implements

Remarks

Prefers ToolApprovalRequestContent (when the workflow declared requireApproval: true) over FunctionCallContent so that hosts which speak the approval protocol see the approval-bearing content.

Applies to