ToolApprovalRequestContentExtensions Class

Definition

Provides extension methods on ToolApprovalRequestContent for creating AlwaysApproveToolApprovalResponseContent instances that instruct the ToolApprovalAgent middleware to record standing approval rules.

public static class ToolApprovalRequestContentExtensions
type ToolApprovalRequestContentExtensions = class
Public Module ToolApprovalRequestContentExtensions
Inheritance
ToolApprovalRequestContentExtensions

Methods

Name Description
CreateAlwaysApproveToolResponse(ToolApprovalRequestContent, String)

Creates an approved AlwaysApproveToolApprovalResponseContent that also instructs the middleware to always approve future calls to the same tool, regardless of the arguments provided.

CreateAlwaysApproveToolWithArgumentsResponse(ToolApprovalRequestContent, String)

Creates an approved AlwaysApproveToolApprovalResponseContent that also instructs the middleware to always approve future calls to the same tool with the exact same arguments.

Applies to