Replies: 1 comment 1 reply
-
|
Just to make sure, this is about wanting multiple tool calls requested by the model in the same response to be invoked concurrently (i.e. parallelism), right? You can either: a) Add your own FunctionInvokingChatClient to the IChatClient you pass to ChatClientAgent, configuring it however you want, e.g. IChatClient client = ...;
client = client.AsBuilder().UseFunctionInvocation(...).Build();
... = new ChatClientAgent(client, ...);The ChatClientAgent will see that the IChatClient already has a FunctionInvokingChatClient and will not add one of its own. b) Ask the ChatClientAgent for its FunctionInvokingChatClient instance and configure it after the fact, e.g. ChatClientAgent agent = ...;
FunctionInvokingChatClient? ficc = agent.GetService<FunctionInvokingChatClient>();
...; // set properties on `ficc` |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This property should allow the framework to execute tools concurrently.
In a simple flow which created ChatClientAgent - how do I set this property?
In SK, we could set this property as follows:
In Agent Framework - I see this property exists in
FunctionInvokingChatClient, but I don't know how do I initiate it when usingChatClientAgent.Beta Was this translation helpful? Give feedback.
All reactions