You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After running the following code, it is not possible to retrieve the function calls and function result messages so that they can be readded to the history.
In .NET, after invoking the chat completion model, the ChatHistory is mutated so that it includes all of the messages that were created (including function calls from the assistant role and function results as tool messages)
Because of this limitation, it is not possible for the AI to reuse context it was able to retrieve in previous function calls/results. For example, in the following chat, the AI used a function call to get the states of the lightbulbs. This included the IDs of the lights which are necessary for subsequent function calls.
Unfortunately, because the function result is lost, subsequent questions aren't able to use that information and the AI cannot complete them.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Java: Not possible to retrieve function calls and function results
.Net: Java: Not possible to retrieve function calls and function results
May 13, 2024
matthewbolanos
changed the title
.Net: Java: Not possible to retrieve function calls and function results
Java: Not possible to retrieve function calls and function results
May 13, 2024
After running the following code, it is not possible to retrieve the function calls and function result messages so that they can be readded to the history.
In .NET, after invoking the chat completion model, the
ChatHistory
is mutated so that it includes all of the messages that were created (including function calls from the assistant role and function results as tool messages)Because of this limitation, it is not possible for the AI to reuse context it was able to retrieve in previous function calls/results. For example, in the following chat, the AI used a function call to get the states of the lightbulbs. This included the IDs of the lights which are necessary for subsequent function calls.
Unfortunately, because the function result is lost, subsequent questions aren't able to use that information and the AI cannot complete them.
The text was updated successfully, but these errors were encountered: