at-shared-types 1.0.5 → 1.0.6

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.
@@ -1,2 +1,3 @@
1
1
  export * from "./engine";
2
2
  export * from "./chat/index";
3
+ export * from "./session/index";
@@ -0,0 +1 @@
1
+ export * from "./session";
@@ -0,0 +1,16 @@
1
+ /** A single role message in a prompt (system, user, assistant, etc.) */
2
+ export interface AIPromptRoleDTO {
3
+ /** Role type: system | user | assistant */
4
+ role: "system" | "user" | "assistant";
5
+ /**
6
+ * Content of the message.
7
+ * Can include placeholders like {{var:name}} or {{prompt:other.prompt.id}}.
8
+ */
9
+ content: string;
10
+ }
11
+ export interface AISessionConfigDTO {
12
+ id: string;
13
+ messages?: AIPromptRoleDTO[];
14
+ priority?: number;
15
+ slot?: string;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "at-shared-types",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "types": "dist/index.d.ts",
5
5
  "files": [
6
6
  "dist"