Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ private static Object doImplement0(AiServiceMethodCreateInfo methodCreateInfo, I
committableChatMemory.add(toolResult);
}
if (immediateToolReturn) {
committableChatMemory.commit();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we commit the messages after the type-check in the next 3 lines?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that probably makes sense

if (!TypeUtil.isResult(returnType)) {
throw IllegalConfigurationException
.illegalConfiguration("@Tool with IMMEDIATE return behavior must return a Result");
Expand Down