@streamoid/agent 0.6.39 → 0.6.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +14 -4
- package/dist/index.js +12499 -12469
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -154,16 +154,19 @@ export interface AgentChatShellAdapters {
|
|
|
154
154
|
canvas?: HostCanvasContextValue;
|
|
155
155
|
/**
|
|
156
156
|
* Scope the pane to the host app. The scope itself comes from
|
|
157
|
-
* `hostContext.app` — the pane is scoped to wherever it was opened
|
|
158
|
-
*
|
|
157
|
+
* `hostContext.app` — the pane is scoped to wherever it was opened — so
|
|
158
|
+
* every field here is optional:
|
|
159
159
|
*
|
|
160
160
|
* - `sections`: the app's outcome table. One suggestion per section, from
|
|
161
161
|
* its first sample's primary outcome. Change the samples and the
|
|
162
162
|
* suggestions follow. Omit it for the catalog briefs this app can run alone.
|
|
163
163
|
* - `selection`: what was selected when the pane opened — a removable chip
|
|
164
164
|
* in the composer, and the subject suggestions name.
|
|
165
|
-
* - `onSuggestion`:
|
|
166
|
-
*
|
|
165
|
+
* - `onSuggestion`: DEPRECATED AND NOT CALLED. Picking a suggestion always
|
|
166
|
+
* puts the instruction in the composer, like every other card in the row.
|
|
167
|
+
*
|
|
168
|
+
* There is no scope picker in the pane. A task that needs another app is
|
|
169
|
+
* offered the widening by the run that needs it.
|
|
167
170
|
*/
|
|
168
171
|
scope?: AgentScopeAdapter | null;
|
|
169
172
|
}
|
|
@@ -211,6 +214,8 @@ export interface AgentScopeSuggestion {
|
|
|
211
214
|
sectionKey: string;
|
|
212
215
|
outcomeKey: string;
|
|
213
216
|
sampleId?: string;
|
|
217
|
+
/** The sample's own name, where the host gave one. */
|
|
218
|
+
sampleTitle?: string;
|
|
214
219
|
subject: 'sample' | 'selection';
|
|
215
220
|
text: string;
|
|
216
221
|
ceilingMinutes?: number;
|
|
@@ -221,6 +226,11 @@ export interface AgentScopeSuggestion {
|
|
|
221
226
|
export interface AgentScopeAdapter {
|
|
222
227
|
sections?: AgentScopeSection[] | null;
|
|
223
228
|
selection?: AgentScopeSelection | null;
|
|
229
|
+
/**
|
|
230
|
+
* @deprecated NOT CALLED. A suggestion always fills the composer. Kept so
|
|
231
|
+
* hosts that still pass it keep compiling; remove it from the host, then
|
|
232
|
+
* from here.
|
|
233
|
+
*/
|
|
224
234
|
onSuggestion?: (suggestion: AgentScopeSuggestion) => boolean | void;
|
|
225
235
|
}
|
|
226
236
|
|