Skip to content

The open alternative to Salesforce, designed for AI.

234 B
Raw Blame
import { isPlainObject } from 'twenty-shared/utils';

export const readToolCallStatus = (toolOutput: unknown): unknown =>
  isPlainObject(toolOutput) && isPlainObject(toolOutput.result)
    ? toolOutput.result.status
    : undefined;