FEAT: implement temp version of main tooling feedback loop

This commit is contained in:
William Jeynes
2026-02-09 20:25:36 +00:00
parent 5841e8a922
commit cd2c8621e8
13 changed files with 119 additions and 72 deletions
-6
View File
@@ -6,12 +6,6 @@ export function createToolConditional(a: String, b: String): ConditionalEdgeRout
// @ts-expect-error
var genericToolConditional: ConditionalEdgeRouter<typeof MessagesState, String> = (state) => {
const lastMessage = state.messages.at(-1);
//STARTTEMP
if (lastMessage?.content?.toString().indexOf("qwe") != -1) {
return a
}
//ENDTEMP
// Check if it's an AIMessage before accessing tool_calls
if (!lastMessage || !AIMessage.isInstance(lastMessage)) {