From 32b77e496ad5db1f2f2e85fbd316da8cdf252e3d Mon Sep 17 00:00:00 2001 From: Drew Stone Date: Thu, 25 Jun 2026 14:27:49 -0600 Subject: [PATCH] feat(agent-interface)!: remove deprecated question event + submitQuestionAnswer --- .changeset/drop-legacy-question.md | 5 +++++ packages/agent-interface/src/index.ts | 16 ---------------- 2 files changed, 5 insertions(+), 16 deletions(-) create mode 100644 .changeset/drop-legacy-question.md diff --git a/.changeset/drop-legacy-question.md b/.changeset/drop-legacy-question.md new file mode 100644 index 0000000..16f5019 --- /dev/null +++ b/.changeset/drop-legacy-question.md @@ -0,0 +1,5 @@ +--- +"@tangle-network/agent-interface": minor +--- + +BREAKING: remove the deprecated `question` stream event and `submitQuestionAnswer` adapter method. Use the generalized `interaction` event (`kind: "question"`) and `respondToInteraction` introduced in 0.12.0. diff --git a/packages/agent-interface/src/index.ts b/packages/agent-interface/src/index.ts index 138b271..49c5e48 100644 --- a/packages/agent-interface/src/index.ts +++ b/packages/agent-interface/src/index.ts @@ -319,17 +319,6 @@ export type StreamEvent = type: "interaction.cancel"; id: string; reason?: string; - } - /** @deprecated Use the `interaction` event with `kind: "question"`. Retained - * so existing emitters/consumers keep working during migration. */ - | { - type: "question"; - questionId: string; - questions: Array<{ - question: string; - options?: Array<{ label: string; description?: string }>; - multiSelect?: boolean; - }>; }; export type ToolInvocation = { @@ -813,11 +802,6 @@ export interface SdkProviderAdapter { * provider's native control call to unblock the agent. */ respondToInteraction?(response: InteractionResponse): Promise; - /** - * @deprecated Use `respondToInteraction`. Retained for back-compat; an - * adapter implementing only this still answers `kind: "question"` asks. - */ - submitQuestionAnswer?(answers: Record): Promise; } export * from "./interaction.js"; export * from "./agent-profile.js";