Skip to content

Commit ea441c7

Browse files
authored
Fix conversation_end
1 parent 8d8ee32 commit ea441c7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Infrastructure/BotSharp.Core/Conversations/Services/ConversationService.SendMessage.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ await hook.OnTaskCompleted(response)
150150
await HookEmitter.Emit<IConversationHook>(_services, async hook =>
151151
await hook.OnConversationEnding(response)
152152
);
153+
response.FunctionName = "conversation_end";
153154
}
154155
}
155156

src/Infrastructure/BotSharp.Core/Routing/Handlers/RouteToAgentRoutingHandler.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public class RouteToAgentRoutingHandler : RoutingHandlerBase, IRoutingHandler
2626
new ParameterPropertyDef("user_goal_agent",
2727
"agent who can acheive user initial task, must align with user_goal_description.",
2828
required: true),
29+
new ParameterPropertyDef("conversation_end",
30+
"user is ending the conversation.",
31+
type: "boolean",
32+
required: true),
2933
new ParameterPropertyDef("is_new_task",
3034
"whether the user is requesting a new task that is different from the previous topic.",
3135
type: "boolean")

0 commit comments

Comments
 (0)