mirror of
https://github.com/block/buzz.git
synced 2026-11-29 04:32:08 +00:00
feat(desktop): harness-agnostic config bridge (#887)
Signed-off-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <wpfleger@block.xyz> Co-authored-by: npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7 <dcfd242e557282d7a1e2cf2e6877522682f1e5c6156dc92ca7d90eaedd3b0f95@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
@@ -11,3 +11,21 @@ export async function cancelManagedAgentTurn(
|
||||
});
|
||||
return { status: "sent" };
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a live model-switch control frame to a running agent. The switch rides
|
||||
* the harness's cancel-switch-requeue path (busy turn) or invalidate-and-reapply
|
||||
* (idle); the outcome arrives asynchronously as a `control_result` observer
|
||||
* frame, not as the return value here. This is fire-and-forget on the send side.
|
||||
*/
|
||||
export async function switchManagedAgentModel(
|
||||
pubkey: string,
|
||||
channelId: string,
|
||||
modelId: string,
|
||||
): Promise<void> {
|
||||
await sendAgentObserverControl(pubkey, {
|
||||
type: "switch_model",
|
||||
channelId,
|
||||
modelId,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user