@ykurilov/agent-chat-core 0.89.1 → 0.90.0
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/CHANGELOG.md +14 -0
- package/dist/{chunk-MXJ2YLCP.js → chunk-LH6CTSB7.js} +37 -5
- package/dist/chunk-LH6CTSB7.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/storage-contract.js +1 -1
- package/dist/types/agent-run/run-agent-turn.d.ts +3 -0
- package/dist/types/chat-service.d.ts +4 -0
- package/dist/types/frozen-context/frozen-context-messages.d.ts +2 -0
- package/package.json +1 -1
- package/dist/chunk-MXJ2YLCP.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/storage-contract.js
CHANGED
|
@@ -199,6 +199,9 @@ export interface AgentTurnInput {
|
|
|
199
199
|
/** Блоки приложения для вопроса хода: один опрос в начале хода, дальше застывают в ответе (`agent.contextBlocks`). */
|
|
200
200
|
contextBlocks?: ContextBlocksSource;
|
|
201
201
|
contextBlocksRefresh?: ContextBlocksRefresh;
|
|
202
|
+
contextBlocksHistory?: {
|
|
203
|
+
latest: readonly string[];
|
|
204
|
+
};
|
|
202
205
|
/** Срок ответа `contextBlocks`, мс, уже проверенный; `Infinity` — без срока. Нет — 5 с. */
|
|
203
206
|
contextBlocksTimeoutMs?: number;
|
|
204
207
|
/**
|
|
@@ -224,6 +224,10 @@ export interface AgentSettings {
|
|
|
224
224
|
contextBlocks?: ContextBlocksSource;
|
|
225
225
|
/** Снимок до смены начала истории, как у памяти; по умолчанию `turn` — прежнее чтение каждого хода. */
|
|
226
226
|
contextBlocksRefresh?: ContextBlocksRefresh;
|
|
227
|
+
/** В запросе модели оставить только последнюю выданную версию выбранных app-блоков. Raw история сохраняется. */
|
|
228
|
+
contextBlocksHistory?: {
|
|
229
|
+
latest: readonly string[];
|
|
230
|
+
};
|
|
227
231
|
/**
|
|
228
232
|
* Права человека из базы приложения (админ ли, тариф): зовётся один раз в начале хода, до `contextBlocks` и сборки
|
|
229
233
|
* инструментов; повторная попытка и запасной провайдер не зовут снова. Итог — полем `viewer` в `contextBlocks` и в
|
|
@@ -29,6 +29,8 @@ export interface FrozenContextProjection {
|
|
|
29
29
|
anchorHistory?: readonly AgentChatMessage[];
|
|
30
30
|
/** Допустимые ключи блоков в проекции; нет — прежний набор. Текст переписки не фильтруется. */
|
|
31
31
|
includeKey?: (key: string) => boolean;
|
|
32
|
+
/** Только последнее выданное обновление выбранных app-ключей; raw snapshots и прочие блоки сохраняются. */
|
|
33
|
+
latestKeys?: readonly string[];
|
|
32
34
|
}
|
|
33
35
|
/**
|
|
34
36
|
* Заметка продолжения последней, а перед ней — решения подтверждения, по которым инструмент ещё не выполнен: AI SDK
|