The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type ExtendedUIMessagePart } from 'twenty-shared/ai';
export const buildToolPart = ({
toolName,
toolCallId,
input,
output,
}: {
toolName: string;
toolCallId: string;
input: unknown;
output: unknown;
}): ExtendedUIMessagePart => ({
type: `tool-${toolName}`,
toolCallId,
state: 'output-available',
input,
output,
});