@eoasmxd/freya-sdk 0.2.2 → 0.2.4

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 CHANGED
@@ -5,3 +5,4 @@ export * from './types/llm.js';
5
5
  export * from './types/tool.js';
6
6
  export * from './types/channel.js';
7
7
  export * from './types/command.js';
8
+ export * from './types/attachment.js';
package/dist/index.js CHANGED
@@ -5,3 +5,4 @@ export * from './types/llm.js';
5
5
  export * from './types/tool.js';
6
6
  export * from './types/channel.js';
7
7
  export * from './types/command.js';
8
+ export * from './types/attachment.js';
@@ -0,0 +1,8 @@
1
+ export interface FreyaAttachment {
2
+ type: 'image' | 'file';
3
+ mimeType: string;
4
+ url?: string;
5
+ base64?: string;
6
+ path?: string;
7
+ description?: string;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,16 +1,10 @@
1
- export interface ChannelAttachment {
2
- type: 'image' | 'file';
3
- mimeType: string;
4
- url?: string;
5
- base64?: string;
6
- path?: string;
7
- }
1
+ import type { FreyaAttachment } from './attachment.js';
8
2
  export interface ChannelMessage {
9
3
  channelId: string;
10
4
  userId: string;
11
5
  messageId: string;
12
6
  sessionId: string;
13
7
  content: string;
14
- attachments?: ChannelAttachment[];
8
+ attachments?: FreyaAttachment[];
15
9
  connectionId?: string;
16
10
  }
@@ -1,4 +1,4 @@
1
- import type { ChannelAttachment } from './channel.js';
1
+ import type { FreyaAttachment } from './attachment.js';
2
2
  import type { ToolDefinition } from './tool.js';
3
3
  export interface LLMConsumptionContext {
4
4
  ownerType: string;
@@ -9,7 +9,7 @@ export interface LLMOptions {
9
9
  providerId?: string;
10
10
  signal?: AbortSignal;
11
11
  onChunk?: (text: string) => void;
12
- attachments?: ChannelAttachment[];
12
+ attachments?: FreyaAttachment[];
13
13
  modelParams?: Record<string, any>;
14
14
  modelType?: 'default' | 'router' | 'image' | 'audio';
15
15
  onModelSelected?: (providerId: string, modelId: string) => void;
@@ -31,10 +31,11 @@ export interface LLMMessage {
31
31
  role: 'user' | 'assistant' | 'system' | 'tool';
32
32
  content: string;
33
33
  toolCalls?: LLMToolCall[];
34
- attachments?: ChannelAttachment[];
34
+ attachments?: FreyaAttachment[];
35
35
  toolCallId?: string;
36
36
  thoughtSignature?: string;
37
37
  toolName?: string;
38
+ timestamp?: number;
38
39
  }
39
40
  export interface LLMTokenUsage {
40
41
  promptTokens: number;
@@ -48,4 +49,5 @@ export interface ILLMService {
48
49
  usage?: LLMTokenUsage;
49
50
  }>;
50
51
  getContextWindow(modelId?: string): number;
52
+ getModelCapabilities?(modelId?: string, providerId?: string): string[];
51
53
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eoasmxd/freya-sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "publishConfig": {