@trilogy-data/trilogy-studio-components 0.1.7 → 0.1.9
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/{ChatCreatorModal-B8RhlpPL.js → ChatCreatorModal-OdRvXdg7.js} +1 -1
- package/dist/{Dashboard-oBAWlBMW.js → Dashboard-0k2aaopG.js} +3 -3
- package/dist/{DashboardCreatorInline-B72GLcaC.js → DashboardCreatorInline-C3VT9f4a.js} +1 -1
- package/dist/{DashboardMobile-C-McOG7k.js → DashboardMobile-2Lc3YcR2.js} +3 -3
- package/dist/{LLMConnectionList-DPCfgarg.js → LLMConnectionList-CyW30Rgm.js} +1 -1
- package/dist/{LLMView-B86FIyRN.js → LLMView-DKOdYGLc.js} +1 -1
- package/dist/Manager-DU3egRRh.js +4 -0
- package/dist/{ResultComponent-Dxnrk2Dh.js → ResultComponent-D6ENatmo.js} +1 -1
- package/dist/{Sidebar-CJ0BzkLx.js → Sidebar-Cdr2TdFV.js} +3 -3
- package/dist/{TutorialPage-BNMNSo5r.js → TutorialPage-BGa-NtBJ.js} +4 -4
- package/dist/{WelcomePage-BYly-Udt.js → WelcomePage-DLxIPXsA.js} +1 -1
- package/dist/composables/useChatWithTools.d.ts +10 -0
- package/dist/composables/useChatWithTools.d.ts.map +1 -1
- package/dist/{cssMode-BITZe9nD.js → cssMode-B3ho0HV1.js} +1 -1
- package/dist/{freemarker2-CC2fKKsj.js → freemarker2-CVSRiESZ.js} +1 -1
- package/dist/{handlebars-CEbMNOIs.js → handlebars-Ds19fsS7.js} +1 -1
- package/dist/{html-CSdn50VK.js → html-C4KpMEX_.js} +1 -1
- package/dist/{htmlMode-C31BRE4I.js → htmlMode-BpDpZxd_.js} +1 -1
- package/dist/{javascript-BGHDr4vx.js → javascript-DVRyvgPM.js} +1 -1
- package/dist/{jsonMode-_kL4Z_-N.js → jsonMode-BBjGf1vJ.js} +1 -1
- package/dist/{liquid-CYX16zd5.js → liquid-dmReO7kS.js} +1 -1
- package/dist/llm/chatAgentPrompt.d.ts +35 -0
- package/dist/llm/chatAgentPrompt.d.ts.map +1 -1
- package/dist/llm/index.d.ts +2 -0
- package/dist/llm/index.d.ts.map +1 -1
- package/dist/{main-DbIe_w23.js → main-B7Jr4lF7.js} +14619 -14560
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +20 -17
- package/dist/main.umd.cjs +484 -484
- package/dist/{mdx-CAjFCbvN.js → mdx-BwmfqX1A.js} +1 -1
- package/dist/{python-BEj8hRLY.js → python-BwbsBL9D.js} +1 -1
- package/dist/{razor-C1emroIL.js → razor-Cez_dCE1.js} +1 -1
- package/dist/{tsMode-BAXp9nYi.js → tsMode-D-UYasUi.js} +1 -1
- package/dist/{typescript-O4eT6TES.js → typescript-_9ojgBKb.js} +1 -1
- package/dist/{useDashboard-Bx4sGPt8.js → useDashboard-CdXX3N67.js} +1 -1
- package/dist/views/LLMView.vue.d.ts.map +1 -1
- package/dist/{xml-CfEu4rM8.js → xml-BZe5K5QU.js} +1 -1
- package/dist/{yaml-CHmez3Zn.js → yaml-B_vCzyTx.js} +1 -1
- package/package.json +1 -1
- package/dist/Manager-DZ3h9i7j.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, inject as L, ref as S, watch as b, computed as c, resolveComponent as U, createElementBlock as d, createCommentVNode as m, openBlock as l, createElementVNode as a, withModifiers as j, createTextVNode as O, withDirectives as h, createBlock as D, Fragment as M, renderList as N, toDisplayString as C, vModelSelect as k, normalizeClass as R, vModelText as E } from "vue";
|
|
2
|
-
import { h as I, K, a as T } from "./main-
|
|
2
|
+
import { h as I, K, a as T } from "./main-B7Jr4lF7.js";
|
|
3
3
|
const z = B({
|
|
4
4
|
name: "ChatCreatorModal",
|
|
5
5
|
components: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as sn, ref as k, provide as Bo, onBeforeUnmount as Vn, onBeforeMount as Lo, onMounted as Kn, nextTick as yt, watch as G, createElementBlock as Pt, openBlock as vt, normalizeStyle as Te, renderSlot as Qn, withDirectives as Ho, createVNode as Bt, vShow as Wo, inject as jo, computed as Lt, useSlots as $o, normalizeClass as yn, createCommentVNode as Ye, getCurrentInstance as Uo, createBlock as xe, unref as _, createElementVNode as He, withCtx as bn, Fragment as xn, renderList as Xo, Teleport as wn, toDisplayString as qo } from "vue";
|
|
2
|
-
import { u as Yo, D as Go, _ as Vo, a as Ko, b as Qo, C as Jo, M as Zo } from "./useDashboard-
|
|
3
|
-
import { D as ti } from "./DashboardCreatorInline-
|
|
4
|
-
import { q as ei, a as ni } from "./main-
|
|
2
|
+
import { u as Yo, D as Go, _ as Vo, a as Ko, b as Qo, C as Jo, M as Zo } from "./useDashboard-CdXX3N67.js";
|
|
3
|
+
import { D as ti } from "./DashboardCreatorInline-C3VT9f4a.js";
|
|
4
|
+
import { q as ei, a as ni } from "./main-B7Jr4lF7.js";
|
|
5
5
|
var oi = Object.defineProperty, ii = (e, t, n) => t in e ? oi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, f = (e, t, n) => (ii(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
6
6
|
function ri(e) {
|
|
7
7
|
let t = 0, n;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject as m, ref as p, computed as D, createElementBlock as l, createCommentVNode as C, openBlock as i, createElementVNode as r, withDirectives as y, withKeys as E, vModelText as _, Fragment as k, renderList as I, toDisplayString as N, vModelSelect as P } from "vue";
|
|
2
|
-
import { a as V } from "./main-
|
|
2
|
+
import { a as V } from "./main-B7Jr4lF7.js";
|
|
3
3
|
const F = {
|
|
4
4
|
name: "DashboardCreatorInline",
|
|
5
5
|
props: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as he, computed as pe, createElementBlock as u, openBlock as d, createVNode as h, createCommentVNode as I, createBlock as R, unref as e, Fragment as k, renderList as be, normalizeStyle as fe, createElementVNode as r, Teleport as x, toDisplayString as ge, createTextVNode as A, nextTick as ve } from "vue";
|
|
2
|
-
import { u as Ce, D as ye, _ as Ie, a as ke, b as we, C as Te, M as Me } from "./useDashboard-
|
|
3
|
-
import { D as De } from "./DashboardCreatorInline-
|
|
4
|
-
import { q as Ee, F as g, a as Fe } from "./main-
|
|
2
|
+
import { u as Ce, D as ye, _ as Ie, a as ke, b as we, C as Te, M as Me } from "./useDashboard-CdXX3N67.js";
|
|
3
|
+
import { D as De } from "./DashboardCreatorInline-C3VT9f4a.js";
|
|
4
|
+
import { q as Ee, F as g, a as Fe } from "./main-B7Jr4lF7.js";
|
|
5
5
|
const Se = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "dashboard-mobile-container"
|
|
@@ -2,7 +2,7 @@ var Oe = Object.defineProperty;
|
|
|
2
2
|
var xe = (t, e, o) => e in t ? Oe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[e] = o;
|
|
3
3
|
var ne = (t, e, o) => xe(t, typeof e != "symbol" ? e + "" : e, o);
|
|
4
4
|
import { defineComponent as ae, ref as C, inject as Y, createElementBlock as l, createCommentVNode as I, openBlock as r, createElementVNode as s, withModifiers as A, withDirectives as _, vModelText as G, vModelSelect as ve, vModelCheckbox as Re, Fragment as pe, computed as $, createBlock as z, withCtx as q, unref as Be, normalizeClass as me, toDisplayString as j, createTextVNode as de, renderList as fe, resolveComponent as U, createVNode as x, Transition as be, onMounted as Pe, onUnmounted as Ye, normalizeStyle as Fe, watch as Ae, vModelDynamic as Ge } from "vue";
|
|
5
|
-
import { K as N, a as X, T as Ee, L as Se, l as je, m as Ke, n as Qe, o as Me, S as Le, h as De, e as _e, A as Ne, O as Ie, G as qe, g as Ve } from "./main-
|
|
5
|
+
import { K as N, a as X, T as Ee, L as Se, l as je, m as Ke, n as Qe, o as Me, S as Le, h as De, e as _e, A as Ne, O as Ie, G as qe, g as Ve } from "./main-B7Jr4lF7.js";
|
|
6
6
|
function He(t, e, o, i) {
|
|
7
7
|
const c = [];
|
|
8
8
|
return Object.values(t).sort((a, d) => a.connected && !d.connected ? -1 : !a.connected && d.connected ? 1 : a.name.localeCompare(d.name)).forEach((a) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as q, inject as R, ref as y, computed as F, watch as M, nextTick as X, onMounted as Z, createElementBlock as u, openBlock as d, createElementVNode as a, createCommentVNode as b, createTextVNode as N, withDirectives as B, Fragment as U, renderList as V, toDisplayString as h, vModelSelect as x, normalizeClass as T, withKeys as ee, withModifiers as te, vModelText as ne, resolveComponent as O, createBlock as j, createVNode as se, withCtx as G } from "vue";
|
|
2
|
-
import { w as A, x as oe, a as Q, y as ae, z as ie, B as re } from "./main-
|
|
2
|
+
import { w as A, x as oe, a as Q, y as ae, z as ie, B as re } from "./main-B7Jr4lF7.js";
|
|
3
3
|
const P = [
|
|
4
4
|
{ name: "id", type: "int" },
|
|
5
5
|
{ name: "quantity", type: "float" },
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as g, createElementBlock as l, openBlock as o, createVNode as C, withCtx as D, toDisplayString as v, createElementVNode as i, createCommentVNode as k, createTextVNode as R, defineComponent as S, inject as $, ref as f, normalizeStyle as b, createBlock as h, Fragment as E } from "vue";
|
|
2
|
-
import { a as w, r as L, H as q, R as T, v as H } from "./main-
|
|
2
|
+
import { a as w, r as L, H as q, R as T, v as H } from "./main-B7Jr4lF7.js";
|
|
3
3
|
const A = {
|
|
4
4
|
class: "editor-refinement-container",
|
|
5
5
|
"data-testid": "editor-refinement-container"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { inject as A, ref as g, onMounted as x, computed as G, resolveComponent as D, createBlock as L, openBlock as r, withCtx as k, createElementBlock as y, Fragment as V, renderList as J, createElementVNode as o, createCommentVNode as S, createVNode as N, normalizeClass as U, toDisplayString as K, createTextVNode as H, defineComponent as X, withDirectives as T, vModelText as P, unref as ie, vModelSelect as te, withModifiers as B, watch as le, normalizeStyle as de, vShow as W } from "vue";
|
|
2
|
-
import { S as Y, e as Z, g as q, K as E, a as F, T as Q, L as oe, f as re, u as ne, t as ce, D as ue, h as se, i as ae, j as me, d as ve, k as pe } from "./main-
|
|
3
|
-
import { d as ee, a as be, L as ye, C as he } from "./LLMConnectionList-
|
|
4
|
-
import { D as fe } from "./DashboardCreatorInline-
|
|
2
|
+
import { S as Y, e as Z, g as q, K as E, a as F, T as Q, L as oe, f as re, u as ne, t as ce, D as ue, h as se, i as ae, j as me, d as ve, k as pe } from "./main-B7Jr4lF7.js";
|
|
3
|
+
import { d as ee, a as be, L as ye, C as he } from "./LLMConnectionList-CyW30Rgm.js";
|
|
4
|
+
import { D as fe } from "./DashboardCreatorInline-C3VT9f4a.js";
|
|
5
5
|
const ge = {
|
|
6
6
|
name: "DocumentationSidebar",
|
|
7
7
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as E, computed as R, createElementBlock as r, openBlock as i, createElementVNode as n, createCommentVNode as S, toDisplayString as a, Fragment as D, renderList as H, normalizeClass as g, renderSlot as W, inject as f, watch as K, resolveComponent as l, createTextVNode as x, createVNode as C, createBlock as h, withCtx as N } from "vue";
|
|
2
|
-
import { a as T, C as q, E as F, M as z, b as J, c as X, d as Y, L as Z, s as $, K as V } from "./main-
|
|
3
|
-
import { L as tt, C as et, d as A } from "./LLMConnectionList-
|
|
4
|
-
import B from "./ResultComponent-
|
|
5
|
-
import ot from "./Dashboard-
|
|
2
|
+
import { a as T, C as q, E as F, M as z, b as J, c as X, d as Y, L as Z, s as $, K as V } from "./main-B7Jr4lF7.js";
|
|
3
|
+
import { L as tt, C as et, d as A } from "./LLMConnectionList-CyW30Rgm.js";
|
|
4
|
+
import B from "./ResultComponent-D6ENatmo.js";
|
|
5
|
+
import ot from "./Dashboard-0k2aaopG.js";
|
|
6
6
|
const nt = Q({
|
|
7
7
|
name: "FunctionDoc",
|
|
8
8
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as k, inject as g, ref as m, computed as f, createElementBlock as o, openBlock as n, createElementVNode as t, unref as _, Fragment as v, createCommentVNode as c, createTextVNode as l, createVNode as C } from "vue";
|
|
2
|
-
import { k as x, p as T, a as W } from "./main-
|
|
2
|
+
import { k as x, p as T, a as W } from "./main-B7Jr4lF7.js";
|
|
3
3
|
const E = { class: "container" }, N = { class: "content" }, S = { class: "logo" }, V = ["src"], $ = { key: 1 }, D = { class: "buttons" }, I = { key: 0 }, L = { key: 1 }, j = { key: 1 }, w = /* @__PURE__ */ k({
|
|
4
4
|
__name: "WelcomePage",
|
|
5
5
|
emits: [
|
|
@@ -8,6 +8,7 @@ import { NavigationStore } from '../stores/useScreenNavigation';
|
|
|
8
8
|
import { ChatMessage, ChatArtifact, ChatImport } from '../chats/chat';
|
|
9
9
|
import { ModelConceptInput } from '../llm/data/models';
|
|
10
10
|
import { CompletionItem } from '../stores/resolver';
|
|
11
|
+
import { LLMToolDefinition } from '../llm/base';
|
|
11
12
|
export interface UseChatWithToolsOptions {
|
|
12
13
|
llmConnectionStore: LLMConnectionStoreType;
|
|
13
14
|
connectionStore: ConnectionStoreType | null;
|
|
@@ -31,6 +32,15 @@ export interface UseChatWithToolsOptions {
|
|
|
31
32
|
navigationStore?: NavigationStore | null;
|
|
32
33
|
/** Optional callback when title is updated (alternative to navigationStore) */
|
|
33
34
|
onTitleUpdate?: (newTitle: string, chatId: string) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Custom tool definitions to pass to the LLM (standalone mode only).
|
|
37
|
+
*/
|
|
38
|
+
customTools?: LLMToolDefinition[];
|
|
39
|
+
/**
|
|
40
|
+
* Handler called when the LLM invokes one of the `customTools`.
|
|
41
|
+
* Return a string result to feed back to the LLM.
|
|
42
|
+
*/
|
|
43
|
+
onCustomToolCall?: (toolName: string, toolInput: Record<string, unknown>) => Promise<string>;
|
|
34
44
|
}
|
|
35
45
|
export interface UseChatWithToolsReturn {
|
|
36
46
|
isChatLoading: ComputedRef<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatWithTools.d.ts","sourceRoot":"","sources":["../../composables/useChatWithTools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,qBAAqB,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAG1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAC3D,OAAO,KAAK,EAAgB,cAAc,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"useChatWithTools.d.ts","sourceRoot":"","sources":["../../composables/useChatWithTools.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,qBAAqB,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,eAA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,EAAE,CAAC,CAAA;CACpD;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,sBAAsB,CA8iBzF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as et } from "./main-
|
|
1
|
+
import { a7 as et } from "./main-B7Jr4lF7.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as f } from "./main-
|
|
1
|
+
import { a7 as f } from "./main-B7Jr4lF7.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as l } from "./main-
|
|
1
|
+
import { a7 as l } from "./main-B7Jr4lF7.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as s } from "./main-
|
|
1
|
+
import { a7 as s } from "./main-B7Jr4lF7.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as lt } from "./main-
|
|
1
|
+
import { a7 as lt } from "./main-B7Jr4lF7.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { conf as t, language as e } from "./typescript-
|
|
1
|
+
import { conf as t, language as e } from "./typescript-_9ojgBKb.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as Et } from "./main-
|
|
1
|
+
import { a7 as Et } from "./main-B7Jr4lF7.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a7 as l } from "./main-
|
|
1
|
+
import { a7 as l } from "./main-B7Jr4lF7.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
import { ModelConceptInput } from './data/models';
|
|
2
2
|
import { ChatImport } from '../chats/chat';
|
|
3
|
+
export interface TrilogyPromptContext {
|
|
4
|
+
/** Trilogy SELECT rules and syntax reference */
|
|
5
|
+
rulesInput: string;
|
|
6
|
+
/** Available aggregate functions (e.g. sum, count, avg) */
|
|
7
|
+
aggFunctions: string[];
|
|
8
|
+
/** Available scalar/common functions */
|
|
9
|
+
functions: string[];
|
|
10
|
+
/** Valid Trilogy data types */
|
|
11
|
+
datatypes: string[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Build a fully custom system prompt for a Trilogy-powered agent.
|
|
15
|
+
*
|
|
16
|
+
* The template function receives the Trilogy language constants so you can
|
|
17
|
+
* embed them wherever makes sense for your application. This is useful when
|
|
18
|
+
* you need a domain-specific persona (e.g. a map explorer, a support bot)
|
|
19
|
+
* but still want correct Trilogy syntax guidance injected automatically.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const SYSTEM_PROMPT = buildCustomTrilogyPrompt(
|
|
24
|
+
* ({ rulesInput, aggFunctions, functions, datatypes }) => `
|
|
25
|
+
* You are an assistant for the SF Trees map application.
|
|
26
|
+
*
|
|
27
|
+
* TRILOGY SYNTAX RULES:
|
|
28
|
+
* ${rulesInput}
|
|
29
|
+
*
|
|
30
|
+
* AGGREGATE FUNCTIONS: ${aggFunctions.join(', ')}
|
|
31
|
+
* COMMON FUNCTIONS: ${functions.join(', ')}
|
|
32
|
+
* VALID DATA TYPES: ${datatypes.join(', ')}
|
|
33
|
+
* `
|
|
34
|
+
* )
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare function buildCustomTrilogyPrompt(templateFn: (ctx: TrilogyPromptContext) => string): string;
|
|
3
38
|
export declare const CHAT_TOOLS: ({
|
|
4
39
|
readonly name: "connect_data_connection";
|
|
5
40
|
readonly description: "Connect or reconnect a data connection that is not currently active. Use this when a query fails because the connection is not active, or when you need to establish a connection before running queries.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatAgentPrompt.d.ts","sourceRoot":"","sources":["../../llm/chatAgentPrompt.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAQ/C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAM,GAAG,IAAI,CAAA;IACjC,oBAAoB,EAAE,MAAM,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,iBAAiB,EAAE,CAAA;IACvC,aAAa,CAAC,EAAE,UAAU,EAAE,CAAA;IAC5B,6BAA6B,CAAC,EAAE,UAAU,EAAE,CAAA;IAC5C,sBAAsB,CAAC,EAAE,OAAO,CAAA;CACjC;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,sBAAsB,GAAG,MAAM,CA+DlF"}
|
package/dist/llm/index.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export type { OpenRouterModel, OpenRouterOAuthConfig } from './openrouter';
|
|
|
8
8
|
export { createPrompt, createFilterPrompt, createDashboardPrompt } from './data/prompts';
|
|
9
9
|
export { createChatNamePrompt, extractChatName } from './chatHelpers';
|
|
10
10
|
export type { ModelConceptInput } from './data/models';
|
|
11
|
+
export { buildChatAgentSystemPrompt, buildCustomTrilogyPrompt, CHAT_TOOLS, } from './chatAgentPrompt';
|
|
12
|
+
export type { ChatAgentPromptOptions, TrilogyPromptContext, } from './chatAgentPrompt';
|
|
11
13
|
export { EDITOR_REFINEMENT_TOOLS, buildEditorRefinementPrompt } from './editorRefinementTools';
|
|
12
14
|
export type { EditorRefinementContext } from './editorRefinementTools';
|
|
13
15
|
export { EditorRefinementToolExecutor } from './editorRefinementToolExecutor';
|
package/dist/llm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../llm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,YAAY,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAA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