@lota-sdk/shared 0.4.10 → 0.4.12
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lota-sdk/shared",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"registry": "https://registry.npmjs.org/"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"ai": "^6.0.
|
|
28
|
+
"ai": "^6.0.168",
|
|
29
29
|
"zod": "^4.3.6"
|
|
30
30
|
}
|
|
31
31
|
}
|
package/src/constants/model.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export const OPENAI_REASONING_MODEL_ID = 'openrouter/openai/gpt-5.4' as const
|
|
2
2
|
|
|
3
|
+
export const OPENROUTER_GEMINI_PRO_MODEL_ID = 'openrouter/google/gemini-3.1-pro-preview' as const
|
|
3
4
|
export const OPENROUTER_GEMINI_FLASH_MODEL_ID = 'openrouter/google/gemini-3-flash-preview' as const
|
|
4
5
|
export const OPENROUTER_TEAM_AGENT_MODEL_ID = 'openrouter/google/gemini-3-flash-preview' as const
|
|
5
6
|
export const OPENROUTER_WEB_RESEARCH_MODEL_ID = 'openrouter/stepfun/step-3.5-flash' as const
|
|
@@ -46,9 +46,43 @@ export const multiAgentEventDataSchema = z.object({
|
|
|
46
46
|
note: z.string().optional(),
|
|
47
47
|
})
|
|
48
48
|
|
|
49
|
-
export const
|
|
49
|
+
export const agentActivityPhaseSchema = z.enum(['started', 'completed', 'failed'])
|
|
50
50
|
|
|
51
|
-
export
|
|
51
|
+
export const agentActivityDataSchema = z.object({
|
|
52
|
+
traceId: z.string().min(1),
|
|
53
|
+
activityId: z.string().min(1),
|
|
54
|
+
kind: z.literal('tool'),
|
|
55
|
+
toolName: z.string().min(1),
|
|
56
|
+
toolCallId: z.string().optional(),
|
|
57
|
+
agentId: z.string().optional(),
|
|
58
|
+
agentName: z.string().optional(),
|
|
59
|
+
phase: agentActivityPhaseSchema,
|
|
60
|
+
errorText: z.string().optional(),
|
|
61
|
+
})
|
|
62
|
+
export type AgentActivityData = z.infer<typeof agentActivityDataSchema>
|
|
63
|
+
|
|
64
|
+
export const thinkingStepStatusSchema = z.enum(['streaming', 'done'])
|
|
65
|
+
|
|
66
|
+
export const thinkingStepDataSchema = z.object({
|
|
67
|
+
traceId: z.string().min(1),
|
|
68
|
+
stepId: z.string().min(1),
|
|
69
|
+
index: z.number().int().nonnegative(),
|
|
70
|
+
title: z.string().min(1),
|
|
71
|
+
status: thinkingStepStatusSchema,
|
|
72
|
+
})
|
|
73
|
+
export type ThinkingStepData = z.infer<typeof thinkingStepDataSchema>
|
|
74
|
+
|
|
75
|
+
export const dataPartsSchemas = {
|
|
76
|
+
'multi-agent-event': multiAgentEventDataSchema,
|
|
77
|
+
'agent-activity': agentActivityDataSchema,
|
|
78
|
+
'thinking-step': thinkingStepDataSchema,
|
|
79
|
+
} as const
|
|
80
|
+
|
|
81
|
+
export type CustomDataParts = {
|
|
82
|
+
'multi-agent-event': z.infer<typeof multiAgentEventDataSchema>
|
|
83
|
+
'agent-activity': z.infer<typeof agentActivityDataSchema>
|
|
84
|
+
'thinking-step': z.infer<typeof thinkingStepDataSchema>
|
|
85
|
+
}
|
|
52
86
|
|
|
53
87
|
export type AnyChatTools = Record<string, { input: unknown; output: unknown }>
|
|
54
88
|
export type HostExtensionChatTools = AnyChatTools
|