Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/drop-legacy-question.md
Original file line number Diff line number Diff line change
@@ -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.
16 changes: 0 additions & 16 deletions packages/agent-interface/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -813,11 +802,6 @@ export interface SdkProviderAdapter {
* provider's native control call to unblock the agent.
*/
respondToInteraction?(response: InteractionResponse): Promise<void>;
/**
* @deprecated Use `respondToInteraction`. Retained for back-compat; an
* adapter implementing only this still answers `kind: "question"` asks.
*/
submitQuestionAnswer?(answers: Record<string, string[]>): Promise<void>;
}
export * from "./interaction.js";
export * from "./agent-profile.js";
Expand Down
Loading