File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,24 @@ export interface LLMServiceInterface {
14
14
* @param engineeredPrompt - The prompt that has been engineered for the LLM.
15
15
* @param promptId - The ID of the prompt (optional).
16
16
* @param outputTokenLimit - The limit on the number of output tokens (optional).
17
+ * @param options - The object of other options in the request (optional)
17
18
* @returns A promise that resolves to the LLM's response as a string.
18
19
*/
19
20
callLLM (
20
21
engineeredPrompt : string ,
21
22
promptId ?: string ,
22
- outputTokenLimit ?: number
23
+ outputTokenLimit ?: number ,
24
+ options ?: CallLLMOptions
23
25
) : Promise < string > ;
24
26
}
27
+
28
+ export type CallLLMOptions = {
29
+ // Values to be added to the parameters property on the request.
30
+ parameters ?: {
31
+ guided_json ?: string ; // TODO: define the type in detail
32
+ } ;
33
+ // Properties to be added to the body of the request.
34
+ properties ?: {
35
+ stop_sequence ?: string [ ] ; // TODO: define the type in detail
36
+ } ;
37
+ } ;
You can’t perform that action at this time.
0 commit comments