Skip to content
Discussion options

You must be logged in to vote

@JP-droidic If your operations like parsing an input, generating SQL, running the query are SK functions, then you could use IFunctionInvocationFilter to receive a call before each function is executed. When it happens, you can get an information about function, it's arguments, rendered prompt etc, so you can share this information with user.

Filter definition:

private sealed class FirstFunctionFilter(ITestOutputHelper output) : IFunctionInvocationFilter
{
private readonly ITestOutputHelper _output = output;
public async Task OnFunctionInvocationAsync(

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@JP-droidic
Comment options

@dmytrostruk
Comment options

@JP-droidic
Comment options

@dmytrostruk
Comment options

Answer selected by sophialagerkranspandey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants