mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-12-01 09:33:14 +00:00
feat: add support for structured output and JSON schema validation
This commit is contained in:
@@ -33,6 +33,8 @@ export interface Answer {
|
||||
thought: string;
|
||||
sources: { title: string; text: string; source: string }[];
|
||||
tool_calls: ToolCallsType[];
|
||||
structured?: boolean;
|
||||
schema?: object;
|
||||
}
|
||||
|
||||
export interface Query {
|
||||
@@ -46,6 +48,8 @@ export interface Query {
|
||||
tool_calls?: ToolCallsType[];
|
||||
error?: string;
|
||||
attachments?: { id: string; fileName: string }[];
|
||||
structured?: boolean;
|
||||
schema?: object;
|
||||
}
|
||||
|
||||
export interface RetrievalPayload {
|
||||
|
||||
Reference in New Issue
Block a user