Skip to content

The open alternative to Salesforce, designed for AI.

458 B
Raw Blame
import { workflowGraphqlRequest } from 'test/integration/graphql/suites/workflow/utils/workflow-graphql-request.util';

export const answerToolCall = async ({
  toolCall,
  response,
}: {
  toolCall: { threadId: string; toolCallId: string };
  response: Record<string, unknown>;
}) =>
  workflowGraphqlRequest(
    'mutation Answer($input: AnswerToolCallInput!) { answerToolCall(input: $input) { streamId } }',
    { input: { ...toolCall, response } },
  );