Skip to content

armgit / pibot

Public Imported from GitHub
0

Open-source, local-first AI agent team for your desktop: multi-agent group chats, computer use, browser, MCP, routines and approvals. macOS, Windows, Linux + Android. Built on pi.

335 B
Raw Blame
import type { ToolRunContext } from "../../core/local-types.ts";

/** Only user-visible runs can persist a card that the normal send lane can answer. */
export function canAskUser(context: Partial<ToolRunContext>) {
  return (
    !!context.todoRun && !context.executionTaskId && !context.routineRunId && !context.routineSource
  );
}