Skip to content

Commit 6e0f2f4

Browse files
zhaotaiTerry Zhaoadrianlyjak
authored
citation can be null (#869)
* citation can be null * Add changeset --------- Co-authored-by: Terry Zhao <[email protected]> Co-authored-by: Adrian Lyjak <[email protected]>
1 parent 0708d11 commit 6e0f2f4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/brave-ways-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"llama-cloud-services": patch
3+
---
4+
5+
Agent data extraction citations can be undefined

ts/llama_cloud_services/src/beta/agent/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export interface ExtractedFieldMetadata {
3838
confidence?: number;
3939
/** The confidence score for the field based on the extracted text only */
4040
extraction_confidence?: number;
41-
citation: FieldCitation[];
41+
citation?: FieldCitation[];
4242
}
4343

4444
export interface FieldCitation {

0 commit comments

Comments
 (0)