mirror of
https://github.com/langchain-ai/openwork.git
synced 2026-07-01 20:37:03 -04:00
Merge pull request #25 from keejkrej/fix/streamagent-modelid-type
fix: sync preload type definitions with implementation
This commit is contained in:
Vendored
+9
-3
@@ -1,4 +1,4 @@
|
||||
import type { Thread, ModelConfig, StreamEvent, HITLDecision } from '../main/types'
|
||||
import type { Thread, ModelConfig, Provider, StreamEvent, HITLDecision } from '../main/types'
|
||||
|
||||
interface ElectronAPI {
|
||||
ipcRenderer: {
|
||||
@@ -15,12 +15,18 @@ interface ElectronAPI {
|
||||
|
||||
interface CustomAPI {
|
||||
agent: {
|
||||
invoke: (threadId: string, message: string, onEvent: (event: StreamEvent) => void) => () => void
|
||||
invoke: (
|
||||
threadId: string,
|
||||
message: string,
|
||||
onEvent: (event: StreamEvent) => void,
|
||||
modelId?: string
|
||||
) => () => void
|
||||
streamAgent: (
|
||||
threadId: string,
|
||||
message: string,
|
||||
command: unknown,
|
||||
onEvent: (event: StreamEvent) => void
|
||||
onEvent: (event: StreamEvent) => void,
|
||||
modelId?: string
|
||||
) => () => void
|
||||
interrupt: (
|
||||
threadId: string,
|
||||
|
||||
Reference in New Issue
Block a user