Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

846 B
Raw Blame
/**
 * A summary-only row for calls without a registered result renderer.
 * The row shows only the tool name; raw arguments and results are never
 * exposed as a fallback disclosure.
 */

import type { ToolDetail } from '@service-agent-fold/generated/types';
import type { JSX } from 'solid-js';
import { ToolCard } from '../../ui';
import type { ToolCallCommon } from './shared';

type ExchangeDetail = Extract<ToolDetail, { kind: 'other' }>;

export function ExchangeToolCall(props: {
  detail: ExchangeDetail;
  common: ToolCallCommon;
}): JSX.Element {
  return (
    <ToolCard
      title={props.common.label}
      status={props.common.status}
      muted={props.common.muted || props.detail.error != null}
      trailing={
        props.common.trailing ??
        (props.detail.error != null ? 'Failed' : undefined)
      }
    />
  );
}