@lota-sdk/shared 0.1.6 → 0.1.7

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.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
package/src/index.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './constants/attachments'
2
2
  export * from './constants/workstream'
3
+ export * from './runtime/agent-types'
3
4
  export * from './runtime/chat-message-metadata'
4
5
  export * from './schemas/chat-api'
5
6
  export * from './schemas/chat-message'
@@ -0,0 +1,22 @@
1
+ import type { Output, PrepareStepFunction, StopCondition, ToolLoopAgentOnFinishCallback, ToolSet } from 'ai'
2
+
3
+ export type ChatMode = 'direct' | 'workstreamMode' | 'fixedWorkstreamMode'
4
+
5
+ export interface CreateRoutedAgentOptions<TTools extends ToolSet = ToolSet> {
6
+ mode: ChatMode
7
+ tools: TTools
8
+ extraInstructions?: string
9
+ stopWhen?: StopCondition<TTools> | Array<StopCondition<TTools>>
10
+ prepareStep?: PrepareStepFunction<TTools>
11
+ maxRetries?: number
12
+ modelOverride?: { model: unknown; providerOptions?: Record<string, unknown> }
13
+ onFinish?: ToolLoopAgentOnFinishCallback<TTools>
14
+ }
15
+
16
+ export interface CreateHelperToolLoopAgentOptions {
17
+ instructions?: string
18
+ maxOutputTokens?: number
19
+ temperature?: number
20
+ output?: Output.Output
21
+ maxRetries?: number
22
+ }