Skip to content

[Feature Request]: Expose DelegatingAIFunction.InnerFunction as Public for Custom Middleware Access #7527

@Jimex

Description

@Jimex

Description

Is it possible to change the access level of DelegatingAIFunction.InnerFunction from protected to public? This would be useful for accessing InnerFunction from a Custom Function Calling Middleware.

Code Sample

var aiFunction = context.Function;
if (aiFunction is DelegatingAIFunction delegatingAIFunction)
{ 
       //Access the function customized property heredelegatingAIFunction.InnerFunction as MyAIFunction).CustomContext["ChatId"];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-aiMicrosoft.Extensions.AI librariesuntriaged

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions