@happyvertical/smrt-chat 0.57.36 → 0.57.38
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/agents/tool-loop.md +60 -6
- package/dist/assistant-turn-events.d.ts +12 -4
- package/dist/assistant-turn-events.d.ts.map +1 -1
- package/dist/assistant-turn.d.ts +29 -1
- package/dist/assistant-turn.d.ts.map +1 -1
- package/dist/chunks/{ChatService-D0XuiCTk.js → ChatService-BGBAqmZq.js} +14 -3
- package/dist/chunks/ChatService-BGBAqmZq.js.map +1 -0
- package/dist/chunks/assistant-turn-events-BbZUf-Ju.js.map +1 -1
- package/dist/chunks/chat-stream-BHUXKIzE.js +2689 -0
- package/dist/chunks/chat-stream-BHUXKIzE.js.map +1 -0
- package/dist/collections/ChatMessageCollection.d.ts +5 -1
- package/dist/collections/ChatMessageCollection.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/internal/agent-runtime.js +1 -1
- package/dist/manifest.json +2 -1
- package/dist/persona-conversation.d.ts +5 -0
- package/dist/persona-conversation.d.ts.map +1 -1
- package/dist/services/ChatService.d.ts +12 -1
- package/dist/services/ChatService.d.ts.map +1 -1
- package/dist/smrt-knowledge.json +5 -5
- package/dist/svelte/components/assistant/create-assistant-dock-controller.svelte.d.ts +6 -2
- package/dist/svelte/components/assistant/create-assistant-dock-controller.svelte.d.ts.map +1 -1
- package/dist/svelte/components/assistant/create-assistant-dock-controller.svelte.js +4 -1
- package/dist/sveltekit.d.ts +13 -2
- package/dist/sveltekit.d.ts.map +1 -1
- package/dist/sveltekit.js +7 -3
- package/dist/sveltekit.js.map +1 -1
- package/dist/tool-loop.d.ts +47 -9
- package/dist/tool-loop.d.ts.map +1 -1
- package/dist/voice.d.ts +4 -0
- package/dist/voice.d.ts.map +1 -1
- package/package.json +21 -21
- package/dist/chunks/ChatService-D0XuiCTk.js.map +0 -1
- package/dist/chunks/chat-stream-D6B3InMe.js +0 -2601
- package/dist/chunks/chat-stream-D6B3InMe.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SmrtCollection } from '@happyvertical/smrt-core';
|
|
2
2
|
import { ChatMessage } from '../models/ChatMessage.js';
|
|
3
|
-
import type { ChatMessageSearchFilters } from '../types.js';
|
|
3
|
+
import type { ChatMessageRole, ChatMessageSearchFilters } from '../types.js';
|
|
4
4
|
export declare class ChatMessageCollection extends SmrtCollection<ChatMessage> {
|
|
5
5
|
static readonly _itemClass: typeof ChatMessage;
|
|
6
6
|
/**
|
|
@@ -15,10 +15,14 @@ export declare class ChatMessageCollection extends SmrtCollection<ChatMessage> {
|
|
|
15
15
|
* lookup (S5 #1392): room ids are not globally unique, so a roomId-only read
|
|
16
16
|
* could surface another tenant's messages for a same-id room. The caller's
|
|
17
17
|
* membership gate is tenant-scoped, so the read MUST be too.
|
|
18
|
+
*
|
|
19
|
+
* `roles` (non-empty) keeps only those roles, in SQL, so `limit` counts
|
|
20
|
+
* them alone (#4458); omitted or empty reads every role.
|
|
18
21
|
*/
|
|
19
22
|
getByRoom(roomId: string, tenantId: string, options?: {
|
|
20
23
|
limit?: number;
|
|
21
24
|
before?: string;
|
|
25
|
+
roles?: readonly ChatMessageRole[];
|
|
22
26
|
}): Promise<ChatMessage[]>;
|
|
23
27
|
/**
|
|
24
28
|
* Get messages in a thread, tenant-bound (S5 #1392).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatMessageCollection.d.ts","sourceRoot":"","sources":["../../src/collections/ChatMessageCollection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatMessageCollection.d.ts","s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AAQ,EAAE,MAAM,GACf,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CAcrC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* @packageDocumentation
|
|
41
41
|
*/
|
|
42
42
|
import './__smrt-register__.js';
|
|
43
|
-
export { ASSISTANT_TURN_GENERIC_ERROR, type AssistantContinuationStore, type AssistantTurnAuthor, type AssistantTurnContinuation, type AssistantTurnErrorLogger, type AssistantTurnOptions, type AssistantTurnResult, type AssistantTurnState, AssistantTurnUserError, type AuthoredToolReply, CONTINUATION_CLAIM_TTL_MS, type ContinuationSessionLike, createAssistantTurnResponse, createMemoryContinuationStore, createSessionContinuationStore, DEFAULT_ASSISTANT_TURN_HEARTBEAT_MS, DEFAULT_CONTINUATION_TTL_MS, runAssistantTurn, SESSION_CONTINUATIONS_FIELD, } from './assistant-turn.js';
|
|
43
|
+
export { ASSISTANT_TURN_GENERIC_ERROR, type AssistantContinuationStore, type AssistantTurnAuthor, type AssistantTurnContinuation, type AssistantTurnErrorLogger, type AssistantTurnOptions, type AssistantTurnResult, type AssistantTurnState, AssistantTurnUserError, type AuthoredToolReply, CONTINUATION_CLAIM_TTL_MS, type ContinuationSessionLike, createAssistantTurnResponse, createMemoryContinuationStore, createSessionContinuationStore, DEFAULT_ASSISTANT_TURN_HEARTBEAT_MS, DEFAULT_CONTINUATION_TTL_MS, type ProviderErrorFallback, runAssistantTurn, SESSION_CONTINUATIONS_FIELD, } from './assistant-turn.js';
|
|
44
44
|
export * from './assistant-turn-events.js';
|
|
45
45
|
export { acceptAppliedChange, type CaptureChatFeedbackOptions, type ChatFeedbackBase, type ChatFeedbackPersona, type ChatFeedbackResult, captureChatFeedback, correctResponse, rateResponse, rejectAppliedChange, thumbsDown, thumbsUp, } from './chat-feedback.js';
|
|
46
46
|
export { CHAT_STREAM_TIMEOUT_ERROR, ChatStreamBadRequestError, type ChatStreamContext, type ChatStreamControlCommand, ChatStreamError, type ChatStreamEvent, type ChatStreamHandlerOptions, type ChatStreamMessage, type ChatStreamPersonaBinding, type ChatStreamRequestBody, type ChatStreamRole, type ChatStreamSession, ChatStreamUnauthorizedError, createChatStreamHandler, DEFAULT_CHAT_STREAM_HEARTBEAT_MS, encodeChatStreamEvent, MAX_CHAT_STREAM_CONTENT_LENGTH, MAX_CHAT_STREAM_MESSAGES, type RunChatConversationStreamOptions, runChatConversationStream, } from './chat-stream.js';
|
|
@@ -55,7 +55,7 @@ export { type AuthoredConversationMessages, type BindPersonaToSessionOptions, bi
|
|
|
55
55
|
export { AssistantRecipe, ChatRoomsRecipe } from './recipes.js';
|
|
56
56
|
export { createRuntimeReportTools, RUNTIME_REPORT_DEFINE_FUNCTION_NAME, RUNTIME_REPORT_DEFINE_TOOL_SLUG, RUNTIME_REPORT_LIST_FUNCTION_NAME, RUNTIME_REPORT_LIST_TOOL_SLUG, RUNTIME_REPORT_RUN_FUNCTION_NAME, RUNTIME_REPORT_RUN_TOOL_SLUG, RUNTIME_REPORT_SOURCES_FUNCTION_NAME, RUNTIME_REPORT_SOURCES_TOOL_SLUG, type RuntimeReportAuditEntry, type RuntimeReportConfirmationHost, type RuntimeReportSaveRequest, type RuntimeReportToolSource, type RuntimeReportToolsOptions, } from './runtime-report-tools.js';
|
|
57
57
|
export { ChatClientRequestConflictError, type ChatClientRequestOutcome, type ChatMessageAttachment, ChatService, clientRequestMessageId, } from './services/index.js';
|
|
58
|
-
export { appendClientToolResults, buildManifestToolCatalog, CLIENT_TOOL_RESULT_GUIDANCE, type ClientToolDefinition, type ClientToolEffect, type ClientToolResultInput, classifyToolError, DEFAULT_EMPTY_ANSWER_FALLBACK, DEFAULT_MAX_STEPS, FALLBACK_HISTORY_PLACEHOLDER, FALLBACK_REPLY_METADATA_KEY, type FallbackReplyReason, invokeManifestTool, isFallbackReply, MAX_CLIENT_TOOL_RESULT_CHARS, MAX_CLIENT_TOOL_SCHEMA_BYTES, MAX_CLIENT_TOOLS, MAX_DEDUPED_CALLS_PER_TURN, MAX_SERVER_TOOL_OBSERVATION_CHARS, MAX_TOOL_FAILURE_ARGS_CHARS, MAX_TOOL_LOOP_REASONING_CHARS, type ManifestTool, manifestToolToAITool, matchesToolAllowList, type PendingClientToolCall, replyContentFor, replyMetadataFor, resolveTurnReply, runToolLoop, SERVER_TOOL_OBSERVATION_TRUNCATED_MARKER, sanitizeClientToolDeclarations, TOOL_CALL_DEDUPED_NOTE, TOOL_CALL_DEDUPED_REJECTED_NOTE, TOOL_EXECUTION_ERROR_HINT, TOOL_LOOP_ANSWER_NOW_INSTRUCTION, type ToolErrorKind, type ToolExecutionContext, type ToolFailureRecord, type ToolInvocation, type ToolLoopCapReason, type ToolLoopOptions, type ToolLoopResult, type ToolLoopStepEvent, type ToolLoopStopReason, type ToolLoopUsage, type TurnReply, toolFailureAuditMetadata, toolFailureRecord, } from './tool-loop.js';
|
|
58
|
+
export { appendClientToolResults, buildManifestToolCatalog, CLIENT_TOOL_RESULT_GUIDANCE, type ClientToolDefinition, type ClientToolEffect, type ClientToolResultInput, classifyToolError, DEFAULT_EMPTY_ANSWER_FALLBACK, DEFAULT_MAX_REPEATED_CALLS, DEFAULT_MAX_STEPS, FALLBACK_HISTORY_PLACEHOLDER, FALLBACK_REPLY_METADATA_KEY, type FallbackReplyReason, invokeManifestTool, isFallbackReply, MAX_CLIENT_TOOL_RESULT_CHARS, MAX_CLIENT_TOOL_SCHEMA_BYTES, MAX_CLIENT_TOOLS, MAX_DEDUPED_CALLS_PER_TURN, MAX_REPEATED_CALLS_LIMIT, MAX_SERVER_TOOL_OBSERVATION_CHARS, MAX_TOOL_FAILURE_ARGS_CHARS, MAX_TOOL_LOOP_REASONING_CHARS, type ManifestTool, manifestToolToAITool, matchesToolAllowList, type PendingClientToolCall, replyContentFor, replyMetadataFor, resolveTurnReply, runToolLoop, SERVER_TOOL_OBSERVATION_TRUNCATED_MARKER, sanitizeClientToolDeclarations, TOOL_CALL_DEDUPED_NOTE, TOOL_CALL_DEDUPED_REJECTED_NOTE, TOOL_EXECUTION_ERROR_HINT, TOOL_LOOP_ANSWER_NOW_INSTRUCTION, TOOL_LOOP_REPEATED_CALLS_INSTRUCTION, type ToolErrorKind, type ToolExecutionContext, type ToolFailureRecord, type ToolInvocation, type ToolLoopCapReason, type ToolLoopOptions, type ToolLoopResult, type ToolLoopStepEvent, type ToolLoopStopReason, type ToolLoopUsage, type TurnReply, toolFailureAuditMetadata, toolFailureRecord, } from './tool-loop.js';
|
|
59
59
|
export type { AgentSessionOptions, AgentSessionStatus, ChatMessageOptions, ChatMessageRole, ChatMessageSearchFilters, ChatMessageType, ChatParticipantOptions, ChatParticipantRole, ChatParticipantStatus, ChatReactionOptions, ChatRoomOptions, ChatRoomStatus, ChatRoomType, ChatThreadOptions, OnlineStatus, VoiceGatewayTurnOptions, VoiceGatewayTurnStatus, VoiceSessionOptions, VoiceSessionStatus, } from './types.js';
|
|
60
60
|
export { CHAT_MODULE_META, CHAT_UI_SLOTS } from './ui.js';
|
|
61
61
|
export { assertVoiceGatewayBearer, type CreateVoiceChatSessionOptions, createVoiceChatSession, createVoiceGatewayTurnHandler, type HandleVoiceGatewayTurnOptions, handleVoiceGatewayTurn, MAX_VOICE_GATEWAY_TEXT_LENGTH, SMRT_CHAT_VOICE_TARGET, type VoiceChatSessionCreationResult, VoiceGatewayBadRequestError, VoiceGatewayError, VoiceGatewayReplayError, type VoiceGatewayTurnHandlerOptions, type VoiceGatewayTurnMetadata, type VoiceGatewayTurnPayload, type VoiceGatewayTurnResponse, type VoiceGatewayTurnResponseMetadata, VoiceGatewayUnauthorizedError, VoiceSessionExpiredError, VoiceSessionRejectedError, } from './voice.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAKH,OAAO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Participant, f as ChatMessage, i as clientRequestMessageId, l as ChatRoom, n as ChatService, o as VoiceSessionCollection, p as AgentSession, s as VoiceSession, t as ChatClientRequestConflictError, u as ChatReaction } from "./chunks/ChatService-
|
|
2
|
-
import { $ as
|
|
1
|
+
import { c as ChatThread, d as ChatParticipant, f as ChatMessage, i as clientRequestMessageId, l as ChatRoom, n as ChatService, o as VoiceSessionCollection, p as AgentSession, s as VoiceSession, t as ChatClientRequestConflictError, u as ChatReaction } from "./chunks/ChatService-BGBAqmZq.js";
|
|
2
|
+
import { $ as isFallbackReply, A as DEFAULT_EMPTY_ANSWER_FALLBACK, B as MAX_SERVER_TOOL_OBSERVATION_CHARS, C as DEFAULT_CONTINUATION_TTL_MS, D as createSessionContinuationStore, E as createMemoryContinuationStore, F as MAX_CLIENT_TOOLS, G as TOOL_CALL_DEDUPED_REJECTED_NOTE, H as MAX_TOOL_LOOP_REASONING_CHARS, I as MAX_CLIENT_TOOL_RESULT_CHARS, J as TOOL_LOOP_REPEATED_CALLS_INSTRUCTION, K as TOOL_EXECUTION_ERROR_HINT, L as MAX_CLIENT_TOOL_SCHEMA_BYTES, M as DEFAULT_MAX_STEPS, N as FALLBACK_HISTORY_PLACEHOLDER, O as runAssistantTurn, P as FALLBACK_REPLY_METADATA_KEY, Q as invokeManifestTool, R as MAX_DEDUPED_CALLS_PER_TURN, S as DEFAULT_ASSISTANT_TURN_HEARTBEAT_MS, T as createAssistantTurnResponse, U as SERVER_TOOL_OBSERVATION_TRUNCATED_MARKER, V as MAX_TOOL_FAILURE_ARGS_CHARS, W as TOOL_CALL_DEDUPED_NOTE, X as buildManifestToolCatalog, Y as appendClientToolResults, Z as classifyToolError, _ as resolveConversationInstructions, a as DEFAULT_CHAT_STREAM_HEARTBEAT_MS, at as sanitizeClientToolDeclarations, b as AssistantTurnUserError, c as createChatStreamHandler, ct as RUNTIME_REPORT_DEFINE_FUNCTION_NAME, d as bindPersonaToSession, dt as RUNTIME_REPORT_LIST_TOOL_SLUG, et as manifestToolToAITool, f as conversationPersonaFromAgentPersona, ft as RUNTIME_REPORT_RUN_FUNCTION_NAME, g as recallPersonaMemory, gt as createRuntimeReportTools, h as principalBindingFor, ht as RUNTIME_REPORT_SOURCES_TOOL_SLUG, i as ChatStreamUnauthorizedError, it as runToolLoop, j as DEFAULT_MAX_REPEATED_CALLS, k as CLIENT_TOOL_RESULT_GUIDANCE, l as encodeChatStreamEvent, lt as RUNTIME_REPORT_DEFINE_TOOL_SLUG, m as formatRecalledMemory, mt as RUNTIME_REPORT_SOURCES_FUNCTION_NAME, n as ChatStreamBadRequestError, nt as replyMetadataFor, o as MAX_CHAT_STREAM_CONTENT_LENGTH, ot as toolFailureAuditMetadata, p as conversationPersonaFromResolved, pt as RUNTIME_REPORT_RUN_TOOL_SLUG, q as TOOL_LOOP_ANSWER_NOW_INSTRUCTION, r as ChatStreamError, rt as resolveTurnReply, s as MAX_CHAT_STREAM_MESSAGES, st as toolFailureRecord, t as CHAT_STREAM_TIMEOUT_ERROR, tt as replyContentFor, u as runChatConversationStream, ut as RUNTIME_REPORT_LIST_FUNCTION_NAME, v as runPersonaConversationTurn, w as SESSION_CONTINUATIONS_FIELD, x as CONTINUATION_CLAIM_TTL_MS, y as ASSISTANT_TURN_GENERIC_ERROR, z as MAX_REPEATED_CALLS_LIMIT } from "./chunks/chat-stream-BHUXKIzE.js";
|
|
3
3
|
import { i as matchesToolAllowList, n as encodeAssistantTurnEvent, r as readAssistantTurnStream, t as AssistantTurnStreamError } from "./chunks/assistant-turn-events-BbZUf-Ju.js";
|
|
4
4
|
import { a as createServerDataSurfaceBridge, i as createDataSurfaceCommandBridge, n as DEFAULT_DATA_SURFACE_BRIDGE_TTL_MS, r as createDataSurfaceBridge, t as DATA_SURFACE_BRIDGE_VERSION } from "./chunks/data-surface-bridge-BJomMxjS.js";
|
|
5
5
|
import { HELPER_CLEARED_PREFERENCES, HELPER_PREFERENCES_VERSION, helperPreferenceFields, isHelperClearedPreferences, parseHelperPreferences } from "./helper-preferences.js";
|
|
@@ -1237,17 +1237,24 @@ function assertActiveAgentSession(session) {
|
|
|
1237
1237
|
if (!session.isActive()) throw new VoiceSessionRejectedError("Agent session is not active");
|
|
1238
1238
|
if (!session.chatRoomId) throw new VoiceSessionRejectedError("Agent session has no chat room");
|
|
1239
1239
|
}
|
|
1240
|
+
var VOICE_HISTORY_ROLES = [
|
|
1241
|
+
"user",
|
|
1242
|
+
"assistant",
|
|
1243
|
+
"system"
|
|
1244
|
+
];
|
|
1240
1245
|
async function loadConversationHistory(input) {
|
|
1241
1246
|
return (input.threadId ? await input.chatService.getThreadMessages({
|
|
1242
1247
|
threadId: input.threadId,
|
|
1243
1248
|
actorProfileId: input.actorProfileId,
|
|
1244
1249
|
tenantId: input.tenantId,
|
|
1245
|
-
limit: input.limit
|
|
1250
|
+
limit: input.limit,
|
|
1251
|
+
roles: VOICE_HISTORY_ROLES
|
|
1246
1252
|
}) : (await input.chatService.getRoomMessages({
|
|
1247
1253
|
roomId: input.roomId,
|
|
1248
1254
|
actorProfileId: input.actorProfileId,
|
|
1249
1255
|
tenantId: input.tenantId,
|
|
1250
|
-
limit: input.limit
|
|
1256
|
+
limit: input.limit,
|
|
1257
|
+
roles: VOICE_HISTORY_ROLES
|
|
1251
1258
|
})).reverse()).map(chatMessageToAIMessage).filter((message) => message !== null);
|
|
1252
1259
|
}
|
|
1253
1260
|
function chatMessageToAIMessage(message) {
|
|
@@ -1295,6 +1302,6 @@ function jsonResponse(body, status) {
|
|
|
1295
1302
|
});
|
|
1296
1303
|
}
|
|
1297
1304
|
//#endregion
|
|
1298
|
-
export { ASSISTANT_TURN_GENERIC_ERROR, AgentSession, AssistantRecipe, AssistantTurnStreamError, AssistantTurnUserError, CHAT_MODULE_META, CHAT_STREAM_TIMEOUT_ERROR, CHAT_UI_SLOTS, CLIENT_TOOL_RESULT_GUIDANCE, CONTINUATION_CLAIM_TTL_MS, ChatClientRequestConflictError, ChatMessage, ChatParticipant, ChatReaction, ChatRoom, ChatRoomsRecipe, ChatService, ChatStreamBadRequestError, ChatStreamError, ChatStreamUnauthorizedError, ChatThread, DATA_DISCOVER_FUNCTION_NAME, DATA_DISCOVER_TOOL_SLUG, DATA_INSPECT_FUNCTION_NAME, DATA_INSPECT_TOOL_SLUG, DATA_QUERY_FUNCTION_NAME, DATA_QUERY_TOOL_SLUG, DATA_SURFACE_BRIDGE_VERSION, DEFAULT_ASSISTANT_TURN_HEARTBEAT_MS, DEFAULT_CHAT_STREAM_HEARTBEAT_MS, DEFAULT_CONTINUATION_TTL_MS, DEFAULT_DATA_SURFACE_BRIDGE_TTL_MS, DEFAULT_DATA_SURFACE_DEADLINE_MS, DEFAULT_EMPTY_ANSWER_FALLBACK, DEFAULT_MAX_STEPS, DataSurfaceActionDeniedError, DataSurfaceDeadlineError, DataSurfaceDeniedError, DataSurfaceQueryError, DataSurfaceRequestError, DataSurfaceResultOrderError, FALLBACK_HISTORY_PLACEHOLDER, FALLBACK_REPLY_METADATA_KEY, HELPER_CLEARED_PREFERENCES, HELPER_PREFERENCES_VERSION, HelperPreferencesAuthorizationError, HelperPreferencesService, HelperPreferencesValidationError, HelperProfileStoreError, MAX_CHAT_STREAM_CONTENT_LENGTH, MAX_CHAT_STREAM_MESSAGES, MAX_CLIENT_TOOLS, MAX_CLIENT_TOOL_RESULT_CHARS, MAX_CLIENT_TOOL_SCHEMA_BYTES, MAX_DATA_SURFACE_DEADLINE_MS, MAX_DEDUPED_CALLS_PER_TURN, MAX_SERVER_TOOL_OBSERVATION_CHARS, MAX_TOOL_FAILURE_ARGS_CHARS, MAX_TOOL_LOOP_REASONING_CHARS, MAX_VOICE_GATEWAY_TEXT_LENGTH, OVERVIEW_APPLY_FUNCTION_NAME, OVERVIEW_APPLY_TOOL_SLUG, OVERVIEW_DESCRIBE_FUNCTION_NAME, OVERVIEW_DESCRIBE_TOOL_SLUG, OVERVIEW_TOOL_MAX_OPERATIONS, OVERVIEW_UNDO_FUNCTION_NAME, OVERVIEW_UNDO_TOOL_SLUG, OverviewToolError, ProfileHelperPreferenceStore, RUNTIME_REPORT_DEFINE_FUNCTION_NAME, RUNTIME_REPORT_DEFINE_TOOL_SLUG, RUNTIME_REPORT_LIST_FUNCTION_NAME, RUNTIME_REPORT_LIST_TOOL_SLUG, RUNTIME_REPORT_RUN_FUNCTION_NAME, RUNTIME_REPORT_RUN_TOOL_SLUG, RUNTIME_REPORT_SOURCES_FUNCTION_NAME, RUNTIME_REPORT_SOURCES_TOOL_SLUG, SERVER_TOOL_OBSERVATION_TRUNCATED_MARKER, SESSION_CONTINUATIONS_FIELD, SMRT_CHAT_VOICE_TARGET, TOOL_CALL_DEDUPED_NOTE, TOOL_CALL_DEDUPED_REJECTED_NOTE, TOOL_EXECUTION_ERROR_HINT, TOOL_LOOP_ANSWER_NOW_INSTRUCTION, VoiceGatewayBadRequestError, VoiceGatewayError, VoiceGatewayReplayError, VoiceGatewayTurn, VoiceGatewayUnauthorizedError, VoiceSession, VoiceSessionExpiredError, VoiceSessionRejectedError, acceptAppliedChange, appendClientToolResults, assertVoiceGatewayBearer, bindPersonaToSession, buildManifestToolCatalog, captureChatFeedback, classifyToolError, clientRequestMessageId, conversationPersonaFromAgentPersona, conversationPersonaFromResolved, correctResponse, createAssistantTurnResponse, createChatStreamHandler, createDataSurfaceBridge, createDataSurfaceCommandBridge, createDataSurfaceQueryFingerprint, createDataSurfaceTools, createHelperProfilePreferenceStore, createMemoryContinuationStore, createMemoryOverviewUndoStore, createOverviewTools, createRuntimeReportTools, createServerDataSurfaceBridge, createSessionContinuationStore, createVoiceChatSession, createVoiceGatewayTurnHandler, defaultOverviewUndoStore, encodeAssistantTurnEvent, encodeChatStreamEvent, formatOverviewIssues, formatRecalledMemory, handleVoiceGatewayTurn, helperPreferenceFields, invokeManifestTool, isFallbackReply, isHelperClearedPreferences, manifestToolToAITool, matchesToolAllowList, normalizeDataSurfaceRowCountHint, parseHelperPreferences, principalBindingFor, rateResponse, readAssistantTurnStream, recallPersonaMemory, rejectAppliedChange, replyContentFor, replyMetadataFor, resolveConversationInstructions, resolveTurnReply, runAssistantTurn, runChatConversationStream, runPersonaConversationTurn, runToolLoop, sanitizeClientToolDeclarations, thumbsDown, thumbsUp, toolFailureAuditMetadata, toolFailureRecord };
|
|
1305
|
+
export { ASSISTANT_TURN_GENERIC_ERROR, AgentSession, AssistantRecipe, AssistantTurnStreamError, AssistantTurnUserError, CHAT_MODULE_META, CHAT_STREAM_TIMEOUT_ERROR, CHAT_UI_SLOTS, CLIENT_TOOL_RESULT_GUIDANCE, CONTINUATION_CLAIM_TTL_MS, ChatClientRequestConflictError, ChatMessage, ChatParticipant, ChatReaction, ChatRoom, ChatRoomsRecipe, ChatService, ChatStreamBadRequestError, ChatStreamError, ChatStreamUnauthorizedError, ChatThread, DATA_DISCOVER_FUNCTION_NAME, DATA_DISCOVER_TOOL_SLUG, DATA_INSPECT_FUNCTION_NAME, DATA_INSPECT_TOOL_SLUG, DATA_QUERY_FUNCTION_NAME, DATA_QUERY_TOOL_SLUG, DATA_SURFACE_BRIDGE_VERSION, DEFAULT_ASSISTANT_TURN_HEARTBEAT_MS, DEFAULT_CHAT_STREAM_HEARTBEAT_MS, DEFAULT_CONTINUATION_TTL_MS, DEFAULT_DATA_SURFACE_BRIDGE_TTL_MS, DEFAULT_DATA_SURFACE_DEADLINE_MS, DEFAULT_EMPTY_ANSWER_FALLBACK, DEFAULT_MAX_REPEATED_CALLS, DEFAULT_MAX_STEPS, DataSurfaceActionDeniedError, DataSurfaceDeadlineError, DataSurfaceDeniedError, DataSurfaceQueryError, DataSurfaceRequestError, DataSurfaceResultOrderError, FALLBACK_HISTORY_PLACEHOLDER, FALLBACK_REPLY_METADATA_KEY, HELPER_CLEARED_PREFERENCES, HELPER_PREFERENCES_VERSION, HelperPreferencesAuthorizationError, HelperPreferencesService, HelperPreferencesValidationError, HelperProfileStoreError, MAX_CHAT_STREAM_CONTENT_LENGTH, MAX_CHAT_STREAM_MESSAGES, MAX_CLIENT_TOOLS, MAX_CLIENT_TOOL_RESULT_CHARS, MAX_CLIENT_TOOL_SCHEMA_BYTES, MAX_DATA_SURFACE_DEADLINE_MS, MAX_DEDUPED_CALLS_PER_TURN, MAX_REPEATED_CALLS_LIMIT, MAX_SERVER_TOOL_OBSERVATION_CHARS, MAX_TOOL_FAILURE_ARGS_CHARS, MAX_TOOL_LOOP_REASONING_CHARS, MAX_VOICE_GATEWAY_TEXT_LENGTH, OVERVIEW_APPLY_FUNCTION_NAME, OVERVIEW_APPLY_TOOL_SLUG, OVERVIEW_DESCRIBE_FUNCTION_NAME, OVERVIEW_DESCRIBE_TOOL_SLUG, OVERVIEW_TOOL_MAX_OPERATIONS, OVERVIEW_UNDO_FUNCTION_NAME, OVERVIEW_UNDO_TOOL_SLUG, OverviewToolError, ProfileHelperPreferenceStore, RUNTIME_REPORT_DEFINE_FUNCTION_NAME, RUNTIME_REPORT_DEFINE_TOOL_SLUG, RUNTIME_REPORT_LIST_FUNCTION_NAME, RUNTIME_REPORT_LIST_TOOL_SLUG, RUNTIME_REPORT_RUN_FUNCTION_NAME, RUNTIME_REPORT_RUN_TOOL_SLUG, RUNTIME_REPORT_SOURCES_FUNCTION_NAME, RUNTIME_REPORT_SOURCES_TOOL_SLUG, SERVER_TOOL_OBSERVATION_TRUNCATED_MARKER, SESSION_CONTINUATIONS_FIELD, SMRT_CHAT_VOICE_TARGET, TOOL_CALL_DEDUPED_NOTE, TOOL_CALL_DEDUPED_REJECTED_NOTE, TOOL_EXECUTION_ERROR_HINT, TOOL_LOOP_ANSWER_NOW_INSTRUCTION, TOOL_LOOP_REPEATED_CALLS_INSTRUCTION, VoiceGatewayBadRequestError, VoiceGatewayError, VoiceGatewayReplayError, VoiceGatewayTurn, VoiceGatewayUnauthorizedError, VoiceSession, VoiceSessionExpiredError, VoiceSessionRejectedError, acceptAppliedChange, appendClientToolResults, assertVoiceGatewayBearer, bindPersonaToSession, buildManifestToolCatalog, captureChatFeedback, classifyToolError, clientRequestMessageId, conversationPersonaFromAgentPersona, conversationPersonaFromResolved, correctResponse, createAssistantTurnResponse, createChatStreamHandler, createDataSurfaceBridge, createDataSurfaceCommandBridge, createDataSurfaceQueryFingerprint, createDataSurfaceTools, createHelperProfilePreferenceStore, createMemoryContinuationStore, createMemoryOverviewUndoStore, createOverviewTools, createRuntimeReportTools, createServerDataSurfaceBridge, createSessionContinuationStore, createVoiceChatSession, createVoiceGatewayTurnHandler, defaultOverviewUndoStore, encodeAssistantTurnEvent, encodeChatStreamEvent, formatOverviewIssues, formatRecalledMemory, handleVoiceGatewayTurn, helperPreferenceFields, invokeManifestTool, isFallbackReply, isHelperClearedPreferences, manifestToolToAITool, matchesToolAllowList, normalizeDataSurfaceRowCountHint, parseHelperPreferences, principalBindingFor, rateResponse, readAssistantTurnStream, recallPersonaMemory, rejectAppliedChange, replyContentFor, replyMetadataFor, resolveConversationInstructions, resolveTurnReply, runAssistantTurn, runChatConversationStream, runPersonaConversationTurn, runToolLoop, sanitizeClientToolDeclarations, thumbsDown, thumbsUp, toolFailureAuditMetadata, toolFailureRecord };
|
|
1299
1306
|
|
|
1300
1307
|
//# sourceMappingURL=index.js.map
|