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