Skip to content

Commit 9e93f8e

Browse files
author
aden.chen
committed
logging infomation when LLM response function call
1 parent 37d2a02 commit 9e93f8e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Plugins/BotSharp.Plugin.OpenAI/Providers/Chat/ChatCompletionProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ public async Task<RoleDialogModel> GetChatCompletions(Agent agent, List<RoleDial
5454
RoleDialogModel responseMessage;
5555
if (reason == ChatFinishReason.FunctionCall || reason == ChatFinishReason.ToolCalls)
5656
{
57+
_logger.LogInformation($"Action: {nameof(GetChatCompletions)}, Reason: {reason}, Agent: {agent.Name}, ToolCalls: {string.Join(",", value.ToolCalls.Select(x => x.FunctionName))}");
58+
5759
var toolCall = value.ToolCalls.FirstOrDefault();
5860
responseMessage = new RoleDialogModel(AgentRole.Function, text)
5961
{

0 commit comments

Comments
 (0)