Files
oh-my-opencode/dist/tools/delegate-task/sync-prompt-sender.d.ts
T
2026-03-14 04:56:50 +00:00

23 lines
867 B
TypeScript

import type { DelegateTaskArgs, OpencodeClient } from "./types";
import { promptSyncWithModelSuggestionRetry, promptWithModelSuggestionRetry } from "../../shared/model-suggestion-retry";
type SendSyncPromptDeps = {
promptWithModelSuggestionRetry: typeof promptWithModelSuggestionRetry;
promptSyncWithModelSuggestionRetry: typeof promptSyncWithModelSuggestionRetry;
};
export declare function sendSyncPrompt(client: OpencodeClient, input: {
sessionID: string;
agentToUse: string;
args: DelegateTaskArgs;
systemContent: string | undefined;
categoryModel: {
providerID: string;
modelID: string;
variant?: string;
} | undefined;
toastManager: {
removeTask: (id: string) => void;
} | null | undefined;
taskId: string | undefined;
}, deps?: SendSyncPromptDeps): Promise<string | null>;
export {};