Skip to content

Commit 6a87668

Browse files
feat: add json_schema as parameter to call LLM
1 parent 4e44e80 commit 6a87668

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/types/llmService/LLMService.ts

+2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ export interface LLMServiceInterface {
1212
/**
1313
* Calls the LLM with the provided engineered prompt, prompt ID, and input token limit.
1414
* @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)
1516
* @param promptId - The ID of the prompt (optional).
1617
* @param outputTokenLimit - The limit on the number of output tokens (optional).
1718
* @returns A promise that resolves to the LLM's response as a string.
1819
*/
1920
callLLM(
2021
engineeredPrompt: string,
22+
jsonSchema?: string,
2123
promptId?: string,
2224
outputTokenLimit?: number
2325
): Promise<string>;

0 commit comments

Comments
 (0)