mirror of
https://github.com/block/buzz.git
synced 2026-11-03 16:01:35 +00:00
Signed-off-by: Tyler Longwell <tlongwell@squareup.com> Co-authored-by: tlongwell-block <109685178+tlongwell-block@users.noreply.github.com> Co-authored-by: Tyler Longwell <tlongwell@squareup.com>
14 lines
392 B
TypeScript
14 lines
392 B
TypeScript
import { sendAgentObserverControl } from "@/shared/api/observerRelay";
|
|
import type { CancelManagedAgentTurnResult } from "@/shared/api/types";
|
|
|
|
export async function cancelManagedAgentTurn(
|
|
pubkey: string,
|
|
channelId: string,
|
|
): Promise<CancelManagedAgentTurnResult> {
|
|
await sendAgentObserverControl(pubkey, {
|
|
type: "cancel_turn",
|
|
channelId,
|
|
});
|
|
return { status: "sent" };
|
|
}
|