@@ -87,16 +87,11 @@ export interface UserQuery {
8787export type ResponseData = AnswerResponse | ErrorResponse | ActionResponse | SideEffectResponse | ThoughtResponse | TitleResponse |
8888 QueryResponse | ContextResponse | UserQuery ;
8989
90- export interface AidaBuildRequestOptions {
90+ export interface BuildRequestOptions {
9191 input : string ;
9292}
9393
94- export interface HistoryChunk {
95- text : string ;
96- entity : Host . AidaClient . Entity ;
97- }
98-
99- export interface AidaRequestOptions {
94+ export interface RequestOptions {
10095 temperature ?: number ;
10196 modelId ?: string ;
10297}
@@ -156,7 +151,7 @@ export abstract class AiAgent<T> {
156151 #aidaClient: Host . AidaClient . AidaClient ;
157152 #serverSideLoggingEnabled: boolean ;
158153 abstract readonly preamble : string ;
159- abstract readonly options : AidaRequestOptions ;
154+ abstract readonly options : RequestOptions ;
160155 abstract readonly clientFeature : Host . AidaClient . ClientFeature ;
161156 abstract readonly userTier : string | undefined ;
162157 abstract handleContextDetails ( select : ConversationContext < T > | null ) : AsyncGenerator < ContextResponse , void , void > ;
@@ -178,7 +173,7 @@ export abstract class AiAgent<T> {
178173 this . #serverSideLoggingEnabled = opts . serverSideLoggingEnabled ?? false ;
179174 }
180175
181- get chatHistoryForTesting ( ) : Array < HistoryChunk > {
176+ get chatHistoryForTesting ( ) : Array < Host . AidaClient . HistoryChunk > {
182177 return this . #chatHistoryForAida;
183178 }
184179
@@ -250,7 +245,7 @@ export abstract class AiAgent<T> {
250245 return { response, rpcId} ;
251246 }
252247
253- buildRequest ( opts : AidaBuildRequestOptions ) : Host . AidaClient . AidaRequest {
248+ buildRequest ( opts : BuildRequestOptions ) : Host . AidaClient . AidaRequest {
254249 const history = this . #chatHistoryForAida;
255250 const request : Host . AidaClient . AidaRequest = {
256251 input : opts . input ,
@@ -317,8 +312,8 @@ STOP`;
317312 return text ;
318313 }
319314
320- get #chatHistoryForAida( ) : HistoryChunk [ ] {
321- const history : Array < HistoryChunk > = [ ] ;
315+ get #chatHistoryForAida( ) : Host . AidaClient . HistoryChunk [ ] {
316+ const history : Array < Host . AidaClient . HistoryChunk > = [ ] ;
322317 let response : {
323318 title ?: string ,
324319 thought ?: string ,
0 commit comments