This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[Question] [Microsoft.Extensions.AI] Stateful tools #6088
Labels
area-ai
Microsoft.Extensions.AI libraries
I am trying to figure out how to manage stateful tools.
Scenario
Problem
In this scenario I set the state right after creating the tool instance, but the list of
AIFunction
that I provided to the LLM at the beginning captured the tool instance, therefore I have to re-create theAIFunction
every time I need to invoke the tool.Possible solutions?
At this point I see two possible solutions:
or
AIFunction.AIInvokeAsync
method.Am I missing other solutions?
Thanks
The text was updated successfully, but these errors were encountered: