Skip to content
Discussion options

You must be logged in to vote

Both of those are valid. As are:

  • deriving from FunctionInvokingChatClient and overriding methods like CreateResponseMessages
  • wrapping the AIFunctions with your own DelegatingAIFunctions that catch the inner exceptions and return whatever new result you want to use instead
  • inserting your own middleware IChatClient after the FICC that inspects FunctionResultContent that comes through and rewriting the Result based on a non-null Exception it contains

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by verdie-g
Comment options

You must be logged in to vote
6 replies
@verdie-g
Comment options

@stephentoub
Comment options

@verdie-g
Comment options

@amanda-tarafa
Comment options

@verdie-g
Comment options

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