Skip to content
Discussion options

You must be logged in to vote

@ysl0628
I have the found the solution to the problem. In order to get Human In loop (interaction) addResult working, two things needs to be applied

  1. On the messaging structure, you must a add "status' property with following properties { type: "requires-action", reason: "tool-calls" } in the example below
const fakeToolCallMessage = {
  id: "msg-1",
  role: "assistant" as const,
  status: { type: "requires-action", reason: "tool-calls" } as const, //  Add this status
  content: [
    {
      type: "tool-call" as const,
      toolCallId: "fake-toolcall-1",
      toolName: "fake_tool_name",
      argsText: JSON.stringify(args),
      args,
      // state: "call",
    } as const
  ],
  cr…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@saadswift
Comment options

@saadswift
Comment options

Answer selected by saadswift
@ysl0628
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants