Skip to content

Commit f11790e

Browse files
committed
Added conversation_end to response_to_user
1 parent afe1a44 commit f11790e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Infrastructure/BotSharp.Core/Routing/Reasoning/ReasonerHelper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ public static void FixMalformedResponse(IServiceProvider services, FunctionCallF
6565
}
6666
}
6767

68+
if (args.AgentName == "response_to_user")
69+
{
70+
args.AgentName = "";
71+
malformed = true;
72+
}
73+
6874
if (malformed)
6975
{
7076
Console.WriteLine($"Captured LLM malformed response");

src/Infrastructure/BotSharp.Core/data/agents/01fcc3e5-9af7-49e6-ad7a-a760bd12dc4a/functions/response_to_user.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"content": {
88
"type": "string",
99
"description": "Response content"
10+
},
11+
"conversation_end": {
12+
"type": "boolean",
13+
"description": "User is ending the conversation."
1014
}
1115
},
1216
"required": [ "content" ]

0 commit comments

Comments
 (0)