File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,24 +99,24 @@ type ThinkModel =
9999 type : "open_ai" ;
100100 } ;
101101 model : "gpt-4o-mini" ;
102- instructions : string ;
103- functions : ThinkModelFunction [ ] ;
102+ instructions ? : string ;
103+ functions ? : ThinkModelFunction [ ] ;
104104 }
105105 | {
106106 provider : {
107107 type : "anthropic" ;
108108 } ;
109109 model : "claude-3-haiku-20240307" ;
110- instructions : string ;
111- functions : ThinkModelFunction [ ] ;
110+ instructions ? : string ;
111+ functions ? : ThinkModelFunction [ ] ;
112112 }
113113 | {
114114 provider : {
115115 type : "groq" ;
116116 } ;
117117 model : "" ;
118- instructions : string ;
119- functions : ThinkModelFunction [ ] ;
118+ instructions ? : string ;
119+ functions ? : ThinkModelFunction [ ] ;
120120 }
121121 | {
122122 provider : {
@@ -125,8 +125,8 @@ type ThinkModel =
125125 key : string ;
126126 } ;
127127 model : string ;
128- instructions : string ;
129- functions : ThinkModelFunction [ ] ;
128+ instructions ? : string ;
129+ functions ? : ThinkModelFunction [ ] ;
130130 } ;
131131
132132/**
@@ -138,12 +138,12 @@ interface AgentLiveSchema extends Record<string, unknown> {
138138 /**
139139 * @default 1
140140 */
141- channels : number ;
141+ channels ? : number ;
142142 encoding : AudioEncoding ;
143143 /**
144144 * @default false
145145 */
146- multichannel : boolean ;
146+ multichannel ? : boolean ;
147147 sampleRate : number ;
148148 } ;
149149 /**
@@ -169,11 +169,11 @@ interface AgentLiveSchema extends Record<string, unknown> {
169169 */
170170 think : ThinkModel ;
171171 } ;
172- context : {
172+ context ? : {
173173 /**
174174 * LLM message history (e.g. to restore existing conversation if websocket disconnects)
175175 */
176- messages : [ ] ;
176+ messages : { type : "user" | "assistant" ; content : string } [ ] ;
177177 /**
178178 * Whether to replay the last message, if it is an assistant message.
179179 */
You can’t perform that action at this time.
0 commit comments