tako-sdk 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +219 -0
- package/dist/index.d.cts +255 -4
- package/dist/index.d.ts +255 -4
- package/dist/index.js +194 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -25,6 +25,26 @@ __export(index_exports, {
|
|
|
25
25
|
APIErrorTypeFromJSONTyped: () => APIErrorTypeFromJSONTyped,
|
|
26
26
|
APIErrorTypeToJSON: () => APIErrorTypeToJSON,
|
|
27
27
|
APIErrorTypeToJSONTyped: () => APIErrorTypeToJSONTyped,
|
|
28
|
+
AgentAnswerAssumptionFromJSON: () => AgentAnswerAssumptionFromJSON,
|
|
29
|
+
AgentAnswerAssumptionFromJSONTyped: () => AgentAnswerAssumptionFromJSONTyped,
|
|
30
|
+
AgentAnswerAssumptionToJSON: () => AgentAnswerAssumptionToJSON,
|
|
31
|
+
AgentAnswerAssumptionToJSONTyped: () => AgentAnswerAssumptionToJSONTyped,
|
|
32
|
+
AgentAnswerCitationFromJSON: () => AgentAnswerCitationFromJSON,
|
|
33
|
+
AgentAnswerCitationFromJSONTyped: () => AgentAnswerCitationFromJSONTyped,
|
|
34
|
+
AgentAnswerCitationToJSON: () => AgentAnswerCitationToJSON,
|
|
35
|
+
AgentAnswerCitationToJSONTyped: () => AgentAnswerCitationToJSONTyped,
|
|
36
|
+
AgentAnswerDefinitionFromJSON: () => AgentAnswerDefinitionFromJSON,
|
|
37
|
+
AgentAnswerDefinitionFromJSONTyped: () => AgentAnswerDefinitionFromJSONTyped,
|
|
38
|
+
AgentAnswerDefinitionToJSON: () => AgentAnswerDefinitionToJSON,
|
|
39
|
+
AgentAnswerDefinitionToJSONTyped: () => AgentAnswerDefinitionToJSONTyped,
|
|
40
|
+
AgentAnswerMetadataFromJSON: () => AgentAnswerMetadataFromJSON,
|
|
41
|
+
AgentAnswerMetadataFromJSONTyped: () => AgentAnswerMetadataFromJSONTyped,
|
|
42
|
+
AgentAnswerMetadataToJSON: () => AgentAnswerMetadataToJSON,
|
|
43
|
+
AgentAnswerMetadataToJSONTyped: () => AgentAnswerMetadataToJSONTyped,
|
|
44
|
+
AgentAnswerMethodologyNoteFromJSON: () => AgentAnswerMethodologyNoteFromJSON,
|
|
45
|
+
AgentAnswerMethodologyNoteFromJSONTyped: () => AgentAnswerMethodologyNoteFromJSONTyped,
|
|
46
|
+
AgentAnswerMethodologyNoteToJSON: () => AgentAnswerMethodologyNoteToJSON,
|
|
47
|
+
AgentAnswerMethodologyNoteToJSONTyped: () => AgentAnswerMethodologyNoteToJSONTyped,
|
|
28
48
|
AgentApi: () => AgentApi,
|
|
29
49
|
AgentEffortLevel: () => AgentEffortLevel,
|
|
30
50
|
AgentEffortLevelFromJSON: () => AgentEffortLevelFromJSON,
|
|
@@ -302,6 +322,11 @@ __export(index_exports, {
|
|
|
302
322
|
canConsumeForm: () => canConsumeForm,
|
|
303
323
|
exists: () => exists,
|
|
304
324
|
instanceOfAPIErrorType: () => instanceOfAPIErrorType,
|
|
325
|
+
instanceOfAgentAnswerAssumption: () => instanceOfAgentAnswerAssumption,
|
|
326
|
+
instanceOfAgentAnswerCitation: () => instanceOfAgentAnswerCitation,
|
|
327
|
+
instanceOfAgentAnswerDefinition: () => instanceOfAgentAnswerDefinition,
|
|
328
|
+
instanceOfAgentAnswerMetadata: () => instanceOfAgentAnswerMetadata,
|
|
329
|
+
instanceOfAgentAnswerMethodologyNote: () => instanceOfAgentAnswerMethodologyNote,
|
|
305
330
|
instanceOfAgentEffortLevel: () => instanceOfAgentEffortLevel,
|
|
306
331
|
instanceOfAgentOutputSettings: () => instanceOfAgentOutputSettings,
|
|
307
332
|
instanceOfAgentResult: () => instanceOfAgentResult,
|
|
@@ -934,6 +959,173 @@ function TakoCardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
934
959
|
};
|
|
935
960
|
}
|
|
936
961
|
|
|
962
|
+
// src/generated/models/AgentAnswerCitation.ts
|
|
963
|
+
function instanceOfAgentAnswerCitation(value) {
|
|
964
|
+
if (!("index" in value) || value["index"] === void 0) return false;
|
|
965
|
+
if (!("title" in value) || value["title"] === void 0) return false;
|
|
966
|
+
return true;
|
|
967
|
+
}
|
|
968
|
+
function AgentAnswerCitationFromJSON(json) {
|
|
969
|
+
return AgentAnswerCitationFromJSONTyped(json, false);
|
|
970
|
+
}
|
|
971
|
+
function AgentAnswerCitationFromJSONTyped(json, ignoreDiscriminator) {
|
|
972
|
+
if (json == null) {
|
|
973
|
+
return json;
|
|
974
|
+
}
|
|
975
|
+
return {
|
|
976
|
+
"index": json["index"],
|
|
977
|
+
"title": json["title"],
|
|
978
|
+
"url": json["url"] == null ? void 0 : json["url"],
|
|
979
|
+
"source_name": json["source_name"] == null ? void 0 : json["source_name"]
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
function AgentAnswerCitationToJSON(json) {
|
|
983
|
+
return AgentAnswerCitationToJSONTyped(json, false);
|
|
984
|
+
}
|
|
985
|
+
function AgentAnswerCitationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
986
|
+
if (value == null) {
|
|
987
|
+
return value;
|
|
988
|
+
}
|
|
989
|
+
return {
|
|
990
|
+
"index": value["index"],
|
|
991
|
+
"title": value["title"],
|
|
992
|
+
"url": value["url"],
|
|
993
|
+
"source_name": value["source_name"]
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
// src/generated/models/AgentAnswerDefinition.ts
|
|
998
|
+
function instanceOfAgentAnswerDefinition(value) {
|
|
999
|
+
if (!("term" in value) || value["term"] === void 0) return false;
|
|
1000
|
+
if (!("definition" in value) || value["definition"] === void 0) return false;
|
|
1001
|
+
return true;
|
|
1002
|
+
}
|
|
1003
|
+
function AgentAnswerDefinitionFromJSON(json) {
|
|
1004
|
+
return AgentAnswerDefinitionFromJSONTyped(json, false);
|
|
1005
|
+
}
|
|
1006
|
+
function AgentAnswerDefinitionFromJSONTyped(json, ignoreDiscriminator) {
|
|
1007
|
+
if (json == null) {
|
|
1008
|
+
return json;
|
|
1009
|
+
}
|
|
1010
|
+
return {
|
|
1011
|
+
"term": json["term"],
|
|
1012
|
+
"definition": json["definition"],
|
|
1013
|
+
"source_ref": json["source_ref"] == null ? void 0 : json["source_ref"]
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
function AgentAnswerDefinitionToJSON(json) {
|
|
1017
|
+
return AgentAnswerDefinitionToJSONTyped(json, false);
|
|
1018
|
+
}
|
|
1019
|
+
function AgentAnswerDefinitionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1020
|
+
if (value == null) {
|
|
1021
|
+
return value;
|
|
1022
|
+
}
|
|
1023
|
+
return {
|
|
1024
|
+
"term": value["term"],
|
|
1025
|
+
"definition": value["definition"],
|
|
1026
|
+
"source_ref": value["source_ref"]
|
|
1027
|
+
};
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
// src/generated/models/AgentAnswerMethodologyNote.ts
|
|
1031
|
+
function instanceOfAgentAnswerMethodologyNote(value) {
|
|
1032
|
+
if (!("title" in value) || value["title"] === void 0) return false;
|
|
1033
|
+
if (!("description" in value) || value["description"] === void 0) return false;
|
|
1034
|
+
return true;
|
|
1035
|
+
}
|
|
1036
|
+
function AgentAnswerMethodologyNoteFromJSON(json) {
|
|
1037
|
+
return AgentAnswerMethodologyNoteFromJSONTyped(json, false);
|
|
1038
|
+
}
|
|
1039
|
+
function AgentAnswerMethodologyNoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
1040
|
+
if (json == null) {
|
|
1041
|
+
return json;
|
|
1042
|
+
}
|
|
1043
|
+
return {
|
|
1044
|
+
"title": json["title"],
|
|
1045
|
+
"description": json["description"]
|
|
1046
|
+
};
|
|
1047
|
+
}
|
|
1048
|
+
function AgentAnswerMethodologyNoteToJSON(json) {
|
|
1049
|
+
return AgentAnswerMethodologyNoteToJSONTyped(json, false);
|
|
1050
|
+
}
|
|
1051
|
+
function AgentAnswerMethodologyNoteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1052
|
+
if (value == null) {
|
|
1053
|
+
return value;
|
|
1054
|
+
}
|
|
1055
|
+
return {
|
|
1056
|
+
"title": value["title"],
|
|
1057
|
+
"description": value["description"]
|
|
1058
|
+
};
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
// src/generated/models/AgentAnswerAssumption.ts
|
|
1062
|
+
function instanceOfAgentAnswerAssumption(value) {
|
|
1063
|
+
if (!("title" in value) || value["title"] === void 0) return false;
|
|
1064
|
+
if (!("description" in value) || value["description"] === void 0) return false;
|
|
1065
|
+
return true;
|
|
1066
|
+
}
|
|
1067
|
+
function AgentAnswerAssumptionFromJSON(json) {
|
|
1068
|
+
return AgentAnswerAssumptionFromJSONTyped(json, false);
|
|
1069
|
+
}
|
|
1070
|
+
function AgentAnswerAssumptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
1071
|
+
if (json == null) {
|
|
1072
|
+
return json;
|
|
1073
|
+
}
|
|
1074
|
+
return {
|
|
1075
|
+
"title": json["title"],
|
|
1076
|
+
"description": json["description"],
|
|
1077
|
+
"category": json["category"] == null ? void 0 : json["category"],
|
|
1078
|
+
"source_ref": json["source_ref"] == null ? void 0 : json["source_ref"]
|
|
1079
|
+
};
|
|
1080
|
+
}
|
|
1081
|
+
function AgentAnswerAssumptionToJSON(json) {
|
|
1082
|
+
return AgentAnswerAssumptionToJSONTyped(json, false);
|
|
1083
|
+
}
|
|
1084
|
+
function AgentAnswerAssumptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1085
|
+
if (value == null) {
|
|
1086
|
+
return value;
|
|
1087
|
+
}
|
|
1088
|
+
return {
|
|
1089
|
+
"title": value["title"],
|
|
1090
|
+
"description": value["description"],
|
|
1091
|
+
"category": value["category"],
|
|
1092
|
+
"source_ref": value["source_ref"]
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
// src/generated/models/AgentAnswerMetadata.ts
|
|
1097
|
+
function instanceOfAgentAnswerMetadata(value) {
|
|
1098
|
+
return true;
|
|
1099
|
+
}
|
|
1100
|
+
function AgentAnswerMetadataFromJSON(json) {
|
|
1101
|
+
return AgentAnswerMetadataFromJSONTyped(json, false);
|
|
1102
|
+
}
|
|
1103
|
+
function AgentAnswerMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
1104
|
+
if (json == null) {
|
|
1105
|
+
return json;
|
|
1106
|
+
}
|
|
1107
|
+
return {
|
|
1108
|
+
"citations": json["citations"] == null ? void 0 : json["citations"].map(AgentAnswerCitationFromJSON),
|
|
1109
|
+
"definitions": json["definitions"] == null ? void 0 : json["definitions"].map(AgentAnswerDefinitionFromJSON),
|
|
1110
|
+
"assumptions": json["assumptions"] == null ? void 0 : json["assumptions"].map(AgentAnswerAssumptionFromJSON),
|
|
1111
|
+
"methodology": json["methodology"] == null ? void 0 : json["methodology"].map(AgentAnswerMethodologyNoteFromJSON)
|
|
1112
|
+
};
|
|
1113
|
+
}
|
|
1114
|
+
function AgentAnswerMetadataToJSON(json) {
|
|
1115
|
+
return AgentAnswerMetadataToJSONTyped(json, false);
|
|
1116
|
+
}
|
|
1117
|
+
function AgentAnswerMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1118
|
+
if (value == null) {
|
|
1119
|
+
return value;
|
|
1120
|
+
}
|
|
1121
|
+
return {
|
|
1122
|
+
"citations": value["citations"] == null ? void 0 : value["citations"].map(AgentAnswerCitationToJSON),
|
|
1123
|
+
"definitions": value["definitions"] == null ? void 0 : value["definitions"].map(AgentAnswerDefinitionToJSON),
|
|
1124
|
+
"assumptions": value["assumptions"] == null ? void 0 : value["assumptions"].map(AgentAnswerAssumptionToJSON),
|
|
1125
|
+
"methodology": value["methodology"] == null ? void 0 : value["methodology"].map(AgentAnswerMethodologyNoteToJSON)
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
|
|
937
1129
|
// src/generated/models/WebResult.ts
|
|
938
1130
|
function instanceOfWebResult(value) {
|
|
939
1131
|
if (!("title" in value) || value["title"] === void 0) return false;
|
|
@@ -990,6 +1182,7 @@ function AgentResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
990
1182
|
"answer": json["answer"] == null ? void 0 : json["answer"],
|
|
991
1183
|
"cards": json["cards"] == null ? void 0 : json["cards"].map(TakoCardFromJSON),
|
|
992
1184
|
"web_results": json["web_results"] == null ? void 0 : json["web_results"].map(WebResultFromJSON),
|
|
1185
|
+
"metadata": json["metadata"] == null ? void 0 : AgentAnswerMetadataFromJSON(json["metadata"]),
|
|
993
1186
|
"request_id": json["request_id"] == null ? void 0 : json["request_id"]
|
|
994
1187
|
};
|
|
995
1188
|
}
|
|
@@ -1004,6 +1197,7 @@ function AgentResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1004
1197
|
"answer": value["answer"],
|
|
1005
1198
|
"cards": value["cards"] == null ? void 0 : value["cards"].map(TakoCardToJSON),
|
|
1006
1199
|
"web_results": value["web_results"] == null ? void 0 : value["web_results"].map(WebResultToJSON),
|
|
1200
|
+
"metadata": AgentAnswerMetadataToJSON(value["metadata"]),
|
|
1007
1201
|
"request_id": value["request_id"]
|
|
1008
1202
|
};
|
|
1009
1203
|
}
|
|
@@ -3448,6 +3642,26 @@ var Tako = class {
|
|
|
3448
3642
|
APIErrorTypeFromJSONTyped,
|
|
3449
3643
|
APIErrorTypeToJSON,
|
|
3450
3644
|
APIErrorTypeToJSONTyped,
|
|
3645
|
+
AgentAnswerAssumptionFromJSON,
|
|
3646
|
+
AgentAnswerAssumptionFromJSONTyped,
|
|
3647
|
+
AgentAnswerAssumptionToJSON,
|
|
3648
|
+
AgentAnswerAssumptionToJSONTyped,
|
|
3649
|
+
AgentAnswerCitationFromJSON,
|
|
3650
|
+
AgentAnswerCitationFromJSONTyped,
|
|
3651
|
+
AgentAnswerCitationToJSON,
|
|
3652
|
+
AgentAnswerCitationToJSONTyped,
|
|
3653
|
+
AgentAnswerDefinitionFromJSON,
|
|
3654
|
+
AgentAnswerDefinitionFromJSONTyped,
|
|
3655
|
+
AgentAnswerDefinitionToJSON,
|
|
3656
|
+
AgentAnswerDefinitionToJSONTyped,
|
|
3657
|
+
AgentAnswerMetadataFromJSON,
|
|
3658
|
+
AgentAnswerMetadataFromJSONTyped,
|
|
3659
|
+
AgentAnswerMetadataToJSON,
|
|
3660
|
+
AgentAnswerMetadataToJSONTyped,
|
|
3661
|
+
AgentAnswerMethodologyNoteFromJSON,
|
|
3662
|
+
AgentAnswerMethodologyNoteFromJSONTyped,
|
|
3663
|
+
AgentAnswerMethodologyNoteToJSON,
|
|
3664
|
+
AgentAnswerMethodologyNoteToJSONTyped,
|
|
3451
3665
|
AgentApi,
|
|
3452
3666
|
AgentEffortLevel,
|
|
3453
3667
|
AgentEffortLevelFromJSON,
|
|
@@ -3725,6 +3939,11 @@ var Tako = class {
|
|
|
3725
3939
|
canConsumeForm,
|
|
3726
3940
|
exists,
|
|
3727
3941
|
instanceOfAPIErrorType,
|
|
3942
|
+
instanceOfAgentAnswerAssumption,
|
|
3943
|
+
instanceOfAgentAnswerCitation,
|
|
3944
|
+
instanceOfAgentAnswerDefinition,
|
|
3945
|
+
instanceOfAgentAnswerMetadata,
|
|
3946
|
+
instanceOfAgentAnswerMethodologyNote,
|
|
3728
3947
|
instanceOfAgentEffortLevel,
|
|
3729
3948
|
instanceOfAgentOutputSettings,
|
|
3730
3949
|
instanceOfAgentResult,
|
package/dist/index.d.cts
CHANGED
|
@@ -578,6 +578,249 @@ declare function TakoCardFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
578
578
|
declare function TakoCardToJSON(json: any): TakoCard;
|
|
579
579
|
declare function TakoCardToJSONTyped(value?: TakoCard | null, ignoreDiscriminator?: boolean): any;
|
|
580
580
|
|
|
581
|
+
/**
|
|
582
|
+
* Knowledge Search API
|
|
583
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
584
|
+
*
|
|
585
|
+
* The version of the OpenAPI document: 1.0.0
|
|
586
|
+
*
|
|
587
|
+
*
|
|
588
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
589
|
+
* https://openapi-generator.tech
|
|
590
|
+
* Do not edit the class manually.
|
|
591
|
+
*/
|
|
592
|
+
/**
|
|
593
|
+
* One indexed source behind the answer. Every inline [n] marker in
|
|
594
|
+
* AgentResult.answer joins to a citation's index, but a citation may also
|
|
595
|
+
* back a chart/card without an inline marker — markers map to citations,
|
|
596
|
+
* not 1:1. Covers web and Tako sources alike.
|
|
597
|
+
* @export
|
|
598
|
+
* @interface AgentAnswerCitation
|
|
599
|
+
*/
|
|
600
|
+
interface AgentAnswerCitation {
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @type {number}
|
|
604
|
+
* @memberof AgentAnswerCitation
|
|
605
|
+
*/
|
|
606
|
+
index: number;
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* @type {string}
|
|
610
|
+
* @memberof AgentAnswerCitation
|
|
611
|
+
*/
|
|
612
|
+
title: string;
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @type {string}
|
|
616
|
+
* @memberof AgentAnswerCitation
|
|
617
|
+
*/
|
|
618
|
+
url?: string | null;
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof AgentAnswerCitation
|
|
623
|
+
*/
|
|
624
|
+
source_name?: string | null;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Check if a given object implements the AgentAnswerCitation interface.
|
|
628
|
+
*/
|
|
629
|
+
declare function instanceOfAgentAnswerCitation(value: object): value is AgentAnswerCitation;
|
|
630
|
+
declare function AgentAnswerCitationFromJSON(json: any): AgentAnswerCitation;
|
|
631
|
+
declare function AgentAnswerCitationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAnswerCitation;
|
|
632
|
+
declare function AgentAnswerCitationToJSON(json: any): AgentAnswerCitation;
|
|
633
|
+
declare function AgentAnswerCitationToJSONTyped(value?: AgentAnswerCitation | null, ignoreDiscriminator?: boolean): any;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Knowledge Search API
|
|
637
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
638
|
+
*
|
|
639
|
+
* The version of the OpenAPI document: 1.0.0
|
|
640
|
+
*
|
|
641
|
+
*
|
|
642
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
643
|
+
* https://openapi-generator.tech
|
|
644
|
+
* Do not edit the class manually.
|
|
645
|
+
*/
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @export
|
|
649
|
+
* @interface AgentAnswerDefinition
|
|
650
|
+
*/
|
|
651
|
+
interface AgentAnswerDefinition {
|
|
652
|
+
/**
|
|
653
|
+
*
|
|
654
|
+
* @type {string}
|
|
655
|
+
* @memberof AgentAnswerDefinition
|
|
656
|
+
*/
|
|
657
|
+
term: string;
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
* @type {string}
|
|
661
|
+
* @memberof AgentAnswerDefinition
|
|
662
|
+
*/
|
|
663
|
+
definition: string;
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @type {number}
|
|
667
|
+
* @memberof AgentAnswerDefinition
|
|
668
|
+
*/
|
|
669
|
+
source_ref?: number | null;
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* Check if a given object implements the AgentAnswerDefinition interface.
|
|
673
|
+
*/
|
|
674
|
+
declare function instanceOfAgentAnswerDefinition(value: object): value is AgentAnswerDefinition;
|
|
675
|
+
declare function AgentAnswerDefinitionFromJSON(json: any): AgentAnswerDefinition;
|
|
676
|
+
declare function AgentAnswerDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAnswerDefinition;
|
|
677
|
+
declare function AgentAnswerDefinitionToJSON(json: any): AgentAnswerDefinition;
|
|
678
|
+
declare function AgentAnswerDefinitionToJSONTyped(value?: AgentAnswerDefinition | null, ignoreDiscriminator?: boolean): any;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Knowledge Search API
|
|
682
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
683
|
+
*
|
|
684
|
+
* The version of the OpenAPI document: 1.0.0
|
|
685
|
+
*
|
|
686
|
+
*
|
|
687
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
688
|
+
* https://openapi-generator.tech
|
|
689
|
+
* Do not edit the class manually.
|
|
690
|
+
*/
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @export
|
|
694
|
+
* @interface AgentAnswerMethodologyNote
|
|
695
|
+
*/
|
|
696
|
+
interface AgentAnswerMethodologyNote {
|
|
697
|
+
/**
|
|
698
|
+
*
|
|
699
|
+
* @type {string}
|
|
700
|
+
* @memberof AgentAnswerMethodologyNote
|
|
701
|
+
*/
|
|
702
|
+
title: string;
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @type {string}
|
|
706
|
+
* @memberof AgentAnswerMethodologyNote
|
|
707
|
+
*/
|
|
708
|
+
description: string;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Check if a given object implements the AgentAnswerMethodologyNote interface.
|
|
712
|
+
*/
|
|
713
|
+
declare function instanceOfAgentAnswerMethodologyNote(value: object): value is AgentAnswerMethodologyNote;
|
|
714
|
+
declare function AgentAnswerMethodologyNoteFromJSON(json: any): AgentAnswerMethodologyNote;
|
|
715
|
+
declare function AgentAnswerMethodologyNoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAnswerMethodologyNote;
|
|
716
|
+
declare function AgentAnswerMethodologyNoteToJSON(json: any): AgentAnswerMethodologyNote;
|
|
717
|
+
declare function AgentAnswerMethodologyNoteToJSONTyped(value?: AgentAnswerMethodologyNote | null, ignoreDiscriminator?: boolean): any;
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Knowledge Search API
|
|
721
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
722
|
+
*
|
|
723
|
+
* The version of the OpenAPI document: 1.0.0
|
|
724
|
+
*
|
|
725
|
+
*
|
|
726
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
727
|
+
* https://openapi-generator.tech
|
|
728
|
+
* Do not edit the class manually.
|
|
729
|
+
*/
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @export
|
|
733
|
+
* @interface AgentAnswerAssumption
|
|
734
|
+
*/
|
|
735
|
+
interface AgentAnswerAssumption {
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @type {string}
|
|
739
|
+
* @memberof AgentAnswerAssumption
|
|
740
|
+
*/
|
|
741
|
+
title: string;
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {string}
|
|
745
|
+
* @memberof AgentAnswerAssumption
|
|
746
|
+
*/
|
|
747
|
+
description: string;
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @type {string}
|
|
751
|
+
* @memberof AgentAnswerAssumption
|
|
752
|
+
*/
|
|
753
|
+
category?: string | null;
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @type {number}
|
|
757
|
+
* @memberof AgentAnswerAssumption
|
|
758
|
+
*/
|
|
759
|
+
source_ref?: number | null;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Check if a given object implements the AgentAnswerAssumption interface.
|
|
763
|
+
*/
|
|
764
|
+
declare function instanceOfAgentAnswerAssumption(value: object): value is AgentAnswerAssumption;
|
|
765
|
+
declare function AgentAnswerAssumptionFromJSON(json: any): AgentAnswerAssumption;
|
|
766
|
+
declare function AgentAnswerAssumptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAnswerAssumption;
|
|
767
|
+
declare function AgentAnswerAssumptionToJSON(json: any): AgentAnswerAssumption;
|
|
768
|
+
declare function AgentAnswerAssumptionToJSONTyped(value?: AgentAnswerAssumption | null, ignoreDiscriminator?: boolean): any;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Knowledge Search API
|
|
772
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
773
|
+
*
|
|
774
|
+
* The version of the OpenAPI document: 1.0.0
|
|
775
|
+
*
|
|
776
|
+
*
|
|
777
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
778
|
+
* https://openapi-generator.tech
|
|
779
|
+
* Do not edit the class manually.
|
|
780
|
+
*/
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Supplementary answer metadata. All fields optional — population varies
|
|
784
|
+
* by effort/engine (low fills citations only today); new components are
|
|
785
|
+
* added here additively.
|
|
786
|
+
* @export
|
|
787
|
+
* @interface AgentAnswerMetadata
|
|
788
|
+
*/
|
|
789
|
+
interface AgentAnswerMetadata {
|
|
790
|
+
/**
|
|
791
|
+
*
|
|
792
|
+
* @type {Array<AgentAnswerCitation>}
|
|
793
|
+
* @memberof AgentAnswerMetadata
|
|
794
|
+
*/
|
|
795
|
+
citations?: Array<AgentAnswerCitation> | null;
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @type {Array<AgentAnswerDefinition>}
|
|
799
|
+
* @memberof AgentAnswerMetadata
|
|
800
|
+
*/
|
|
801
|
+
definitions?: Array<AgentAnswerDefinition> | null;
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @type {Array<AgentAnswerAssumption>}
|
|
805
|
+
* @memberof AgentAnswerMetadata
|
|
806
|
+
*/
|
|
807
|
+
assumptions?: Array<AgentAnswerAssumption> | null;
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @type {Array<AgentAnswerMethodologyNote>}
|
|
811
|
+
* @memberof AgentAnswerMetadata
|
|
812
|
+
*/
|
|
813
|
+
methodology?: Array<AgentAnswerMethodologyNote> | null;
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Check if a given object implements the AgentAnswerMetadata interface.
|
|
817
|
+
*/
|
|
818
|
+
declare function instanceOfAgentAnswerMetadata(value: object): value is AgentAnswerMetadata;
|
|
819
|
+
declare function AgentAnswerMetadataFromJSON(json: any): AgentAnswerMetadata;
|
|
820
|
+
declare function AgentAnswerMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAnswerMetadata;
|
|
821
|
+
declare function AgentAnswerMetadataToJSON(json: any): AgentAnswerMetadata;
|
|
822
|
+
declare function AgentAnswerMetadataToJSONTyped(value?: AgentAnswerMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
823
|
+
|
|
581
824
|
/**
|
|
582
825
|
* Knowledge Search API
|
|
583
826
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -666,7 +909,9 @@ declare function WebResultToJSONTyped(value?: WebResult | null, ignoreDiscrimina
|
|
|
666
909
|
*/
|
|
667
910
|
|
|
668
911
|
/**
|
|
669
|
-
* Final agent output. answer is markdown
|
|
912
|
+
* Final agent output. answer is markdown prose with [n] citation markers;
|
|
913
|
+
* cards reuse the sibling TakoCard; metadata carries the structured
|
|
914
|
+
* components behind the answer.
|
|
670
915
|
* @export
|
|
671
916
|
* @interface AgentResult
|
|
672
917
|
*/
|
|
@@ -689,6 +934,12 @@ interface AgentResult {
|
|
|
689
934
|
* @memberof AgentResult
|
|
690
935
|
*/
|
|
691
936
|
web_results?: Array<WebResult>;
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @type {AgentAnswerMetadata}
|
|
940
|
+
* @memberof AgentResult
|
|
941
|
+
*/
|
|
942
|
+
metadata?: AgentAnswerMetadata | null;
|
|
692
943
|
/**
|
|
693
944
|
*
|
|
694
945
|
* @type {string}
|
|
@@ -718,7 +969,7 @@ declare function AgentResultToJSONTyped(value?: AgentResult | null, ignoreDiscri
|
|
|
718
969
|
*/
|
|
719
970
|
/**
|
|
720
971
|
* Public effort taxonomy for the Agent API. `low` runs the fast data-pipeline
|
|
721
|
-
* retriever (the default)
|
|
972
|
+
* retriever; `medium` (the default) runs the analytical orchestrator. `high` is
|
|
722
973
|
* not yet exposed.
|
|
723
974
|
* @export
|
|
724
975
|
*/
|
|
@@ -797,7 +1048,7 @@ interface AgentRunRequest {
|
|
|
797
1048
|
*/
|
|
798
1049
|
thread_id?: string | null;
|
|
799
1050
|
/**
|
|
800
|
-
* Agent effort. 'low'
|
|
1051
|
+
* Agent effort. 'low' returns fast results for simple queries; 'medium' (default) returns deeper analysis across multiple entities and metrics (slower).
|
|
801
1052
|
* @type {AgentEffortLevel}
|
|
802
1053
|
* @memberof AgentRunRequest
|
|
803
1054
|
*/
|
|
@@ -3776,4 +4027,4 @@ declare class Tako {
|
|
|
3776
4027
|
graphRelated(request: GraphRelatedRequest): Promise<GraphRelatedResponse>;
|
|
3777
4028
|
}
|
|
3778
4029
|
|
|
3779
|
-
export { APIErrorType, APIErrorTypeFromJSON, APIErrorTypeFromJSONTyped, APIErrorTypeToJSON, APIErrorTypeToJSONTyped, AgentApi, type AgentApiInterface, AgentEffortLevel, AgentEffortLevelFromJSON, AgentEffortLevelFromJSONTyped, AgentEffortLevelToJSON, AgentEffortLevelToJSONTyped, type AgentOutputSettings, AgentOutputSettingsFromJSON, AgentOutputSettingsFromJSONTyped, AgentOutputSettingsToJSON, AgentOutputSettingsToJSONTyped, AgentResource, type AgentResult, type AgentResultEvent, AgentResultEventFromJSON, AgentResultEventFromJSONTyped, AgentResultEventKindEnum, AgentResultEventToJSON, AgentResultEventToJSONTyped, AgentResultFromJSON, AgentResultFromJSONTyped, AgentResultToJSON, AgentResultToJSONTyped, type AgentRun, AgentRunFromJSON, AgentRunFromJSONTyped, AgentRunObjectEnum, type AgentRunRequest, AgentRunRequestFromJSON, AgentRunRequestFromJSONTyped, AgentRunRequestSourceIndexesEnum, AgentRunRequestToJSON, AgentRunRequestToJSONTyped, AgentRunStatus, AgentRunStatusFromJSON, AgentRunStatusFromJSONTyped, AgentRunStatusToJSON, AgentRunStatusToJSONTyped, AgentRunToJSON, AgentRunToJSONTyped, AgentStream, type AgentStreamEnvelope, AgentStreamEnvelopeFromJSON, AgentStreamEnvelopeFromJSONTyped, AgentStreamEnvelopeToJSON, AgentStreamEnvelopeToJSONTyped, type AgentStreamOptions, type AgentUsage, AgentUsageFromJSON, AgentUsageFromJSONTyped, AgentUsageToJSON, AgentUsageToJSONTyped, type AnswerRequest, type AnswerResponse, AnswerResponseFromJSON, AnswerResponseFromJSONTyped, AnswerResponseToJSON, AnswerResponseToJSONTyped, type ApiResponse, BASE_PATH, BaseAPI, type BaseAPIError, BaseAPIErrorFromJSON, BaseAPIErrorFromJSONTyped, BaseAPIErrorToJSON, BaseAPIErrorToJSONTyped, BlobApiResponse, type Block, BlockFromJSON, BlockFromJSONTyped, BlockToJSON, BlockToJSONTyped, COLLECTION_FORMATS, type ComponentConfig, ComponentConfigFromJSON, ComponentConfigFromJSONTyped, ComponentConfigToJSON, ComponentConfigToJSONTyped, ComponentTypeEnum, ComponentTypeEnumFromJSON, ComponentTypeEnumFromJSONTyped, ComponentTypeEnumToJSON, ComponentTypeEnumToJSONTyped, Configuration, type ConfigurationParameters, type Consume, ContentFormat, ContentFormatFromJSON, ContentFormatFromJSONTyped, ContentFormatToJSON, ContentFormatToJSONTyped, type ContentItem, ContentItemFromJSON, ContentItemFromJSONTyped, ContentItemToJSON, ContentItemToJSONTyped, ContentsDeliveryMode, ContentsDeliveryModeFromJSON, ContentsDeliveryModeFromJSONTyped, ContentsDeliveryModeToJSON, ContentsDeliveryModeToJSONTyped, type ContentsOperationRequest, type ContentsRequest, ContentsRequestFromJSON, ContentsRequestFromJSONTyped, ContentsRequestToJSON, ContentsRequestToJSONTyped, type ContentsResponse, ContentsResponseFromJSON, ContentsResponseFromJSONTyped, ContentsResponseToJSON, ContentsResponseToJSONTyped, type CreateAgentRunRequest, type CreateCard400Response, CreateCard400ResponseFromJSON, CreateCard400ResponseFromJSONTyped, CreateCard400ResponseToJSON, CreateCard400ResponseToJSONTyped, type CreateCardOperationRequest, type CreateCardRequest, CreateCardRequestFromJSON, CreateCardRequestFromJSONTyped, CreateCardRequestToJSON, CreateCardRequestToJSONTyped, type DataPipelineAnswerEvent, DataPipelineAnswerEventFromJSON, DataPipelineAnswerEventFromJSONTyped, DataPipelineAnswerEventKindEnum, DataPipelineAnswerEventToJSON, DataPipelineAnswerEventToJSONTyped, DefaultConfig, EntityClassName, EntityClassNameFromJSON, EntityClassNameFromJSONTyped, EntityClassNameToJSON, EntityClassNameToJSONTyped, type ErrorContext, type ErrorObject, ErrorObjectFromJSON, ErrorObjectFromJSONTyped, ErrorObjectToJSON, ErrorObjectToJSONTyped, type FetchAPI, FetchError, type FetchParams, type GetAgentRunRequest, type GraphNode, GraphNodeFromJSON, GraphNodeFromJSONTyped, GraphNodeToJSON, GraphNodeToJSONTyped, GraphNodeType, GraphNodeTypeFromJSON, GraphNodeTypeFromJSONTyped, GraphNodeTypeToJSON, GraphNodeTypeToJSONTyped, type GraphRelatedRequest, type GraphRelatedResponse, GraphRelatedResponseFromJSON, GraphRelatedResponseFromJSONTyped, GraphRelatedResponseToJSON, GraphRelatedResponseToJSONTyped, type GraphRelationPage, GraphRelationPageFromJSON, GraphRelationPageFromJSONTyped, GraphRelationPageToJSON, GraphRelationPageToJSONTyped, type GraphSearchRequest, type GraphSearchResponse, GraphSearchResponseFromJSON, GraphSearchResponseFromJSONTyped, GraphSearchResponseToJSON, GraphSearchResponseToJSONTyped, GraphSearchSubtypeEnum, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type HeartbeatEvent, HeartbeatEventFromJSON, HeartbeatEventFromJSONTyped, HeartbeatEventKindEnum, HeartbeatEventToJSON, HeartbeatEventToJSONTyped, type InitOverrideFunction, JSONApiResponse, type Json, type KnowledgeCardMethodology, KnowledgeCardMethodologyFromJSON, KnowledgeCardMethodologyFromJSONTyped, KnowledgeCardMethodologyToJSON, KnowledgeCardMethodologyToJSONTyped, KnowledgeCardRelevance, KnowledgeCardRelevanceFromJSON, KnowledgeCardRelevanceFromJSONTyped, KnowledgeCardRelevanceToJSON, KnowledgeCardRelevanceToJSONTyped, type Middleware, type ModelPropertyNaming, type OutputSettings, OutputSettingsFromJSON, OutputSettingsFromJSONTyped, OutputSettingsToJSON, OutputSettingsToJSONTyped, type ReasoningEvent, ReasoningEventFromJSON, ReasoningEventFromJSONTyped, ReasoningEventKindEnum, ReasoningEventToJSON, ReasoningEventToJSONTyped, type RelatedGroups, RelatedGroupsFromJSON, RelatedGroupsFromJSONTyped, RelatedGroupsToJSON, RelatedGroupsToJSONTyped, type RelationGroup, RelationGroupFromJSON, RelationGroupFromJSONTyped, RelationGroupToJSON, RelationGroupToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type ResultContent, ResultContentFromJSON, ResultContentFromJSONTyped, ResultContentToJSON, ResultContentToJSONTyped, SearchEffortLevel, SearchEffortLevelFromJSON, SearchEffortLevelFromJSONTyped, SearchEffortLevelToJSON, SearchEffortLevelToJSONTyped, type SearchOperationRequest, type SearchRequest, SearchRequestFromJSON, SearchRequestFromJSONTyped, SearchRequestToJSON, SearchRequestToJSONTyped, type SearchResponse, SearchResponseFromJSON, SearchResponseFromJSONTyped, SearchResponseToJSON, SearchResponseToJSONTyped, type SourceSettings, SourceSettingsFromJSON, SourceSettingsFromJSONTyped, SourceSettingsToJSON, SourceSettingsToJSONTyped, type Sources, SourcesFromJSON, SourcesFromJSONTyped, SourcesToJSON, SourcesToJSONTyped, type StatusEvent, StatusEventFromJSON, StatusEventFromJSONTyped, StatusEventKindEnum, StatusEventToJSON, StatusEventToJSONTyped, StreamCategory, StreamCategoryFromJSON, StreamCategoryFromJSONTyped, StreamCategoryToJSON, StreamCategoryToJSONTyped, type StreamDoneEvent, StreamDoneEventFromJSON, StreamDoneEventFromJSONTyped, StreamDoneEventKindEnum, StreamDoneEventToJSON, StreamDoneEventToJSONTyped, type StreamResetEvent, StreamResetEventFromJSON, StreamResetEventFromJSONTyped, StreamResetEventKindEnum, StreamResetEventToJSON, StreamResetEventToJSONTyped, type SubagentEvent, SubagentEventEventEnum, SubagentEventFromJSON, SubagentEventFromJSONTyped, SubagentEventKindEnum, SubagentEventToJSON, SubagentEventToJSONTyped, Tako, TakoApi, type TakoApiInterface, type TakoCard, TakoCardFromJSON, TakoCardFromJSONTyped, type TakoCardSource, TakoCardSourceFromJSON, TakoCardSourceFromJSONTyped, TakoCardSourceToJSON, TakoCardSourceToJSONTyped, TakoCardToJSON, TakoCardToJSONTyped, type TakoOptions, TakoSourceIndex, TakoSourceIndexFromJSON, TakoSourceIndexFromJSONTyped, TakoSourceIndexToJSON, TakoSourceIndexToJSONTyped, TextApiResponse, type TextEvent, TextEventFromJSON, TextEventFromJSONTyped, TextEventKindEnum, TextEventToJSON, TextEventToJSONTyped, type ThinVizCard, ThinVizCardEmbedModeEnum, ThinVizCardFromJSON, ThinVizCardFromJSONTyped, ThinVizCardToJSON, ThinVizCardToJSONTyped, type ToolCallEvent, ToolCallEventFromJSON, ToolCallEventFromJSONTyped, ToolCallEventKindEnum, ToolCallEventToJSON, ToolCallEventToJSONTyped, type ToolErrorEvent, ToolErrorEventFromJSON, ToolErrorEventFromJSONTyped, ToolErrorEventKindEnum, ToolErrorEventToJSON, ToolErrorEventToJSONTyped, type ToolResultEvent, ToolResultEventFromJSON, ToolResultEventFromJSONTyped, ToolResultEventKindEnum, ToolResultEventToJSON, ToolResultEventToJSONTyped, type ToolRetryEvent, ToolRetryEventFromJSON, ToolRetryEventFromJSONTyped, ToolRetryEventKindEnum, ToolRetryEventToJSON, ToolRetryEventToJSONTyped, VoidApiResponse, type WebResult, WebResultFromJSON, WebResultFromJSONTyped, WebResultToJSON, WebResultToJSONTyped, canConsumeForm, exists, instanceOfAPIErrorType, instanceOfAgentEffortLevel, instanceOfAgentOutputSettings, instanceOfAgentResult, instanceOfAgentResultEvent, instanceOfAgentRun, instanceOfAgentRunRequest, instanceOfAgentRunStatus, instanceOfAgentStreamEnvelope, instanceOfAgentUsage, instanceOfAnswerResponse, instanceOfBaseAPIError, instanceOfComponentConfig, instanceOfComponentTypeEnum, instanceOfContentFormat, instanceOfContentItem, instanceOfContentsDeliveryMode, instanceOfContentsRequest, instanceOfContentsResponse, instanceOfCreateCard400Response, instanceOfCreateCardRequest, instanceOfDataPipelineAnswerEvent, instanceOfEntityClassName, instanceOfErrorObject, instanceOfGraphNode, instanceOfGraphNodeType, instanceOfGraphRelatedResponse, instanceOfGraphRelationPage, instanceOfGraphSearchResponse, instanceOfHeartbeatEvent, instanceOfKnowledgeCardMethodology, instanceOfKnowledgeCardRelevance, instanceOfOutputSettings, instanceOfReasoningEvent, instanceOfRelatedGroups, instanceOfRelationGroup, instanceOfResultContent, instanceOfSearchEffortLevel, instanceOfSearchRequest, instanceOfSearchResponse, instanceOfSourceSettings, instanceOfSources, instanceOfStatusEvent, instanceOfStreamCategory, instanceOfStreamDoneEvent, instanceOfStreamResetEvent, instanceOfSubagentEvent, instanceOfTakoCard, instanceOfTakoCardSource, instanceOfTakoSourceIndex, instanceOfTextEvent, instanceOfThinVizCard, instanceOfToolCallEvent, instanceOfToolErrorEvent, instanceOfToolResultEvent, instanceOfToolRetryEvent, instanceOfWebResult, mapValues, querystring };
|
|
4030
|
+
export { APIErrorType, APIErrorTypeFromJSON, APIErrorTypeFromJSONTyped, APIErrorTypeToJSON, APIErrorTypeToJSONTyped, type AgentAnswerAssumption, AgentAnswerAssumptionFromJSON, AgentAnswerAssumptionFromJSONTyped, AgentAnswerAssumptionToJSON, AgentAnswerAssumptionToJSONTyped, type AgentAnswerCitation, AgentAnswerCitationFromJSON, AgentAnswerCitationFromJSONTyped, AgentAnswerCitationToJSON, AgentAnswerCitationToJSONTyped, type AgentAnswerDefinition, AgentAnswerDefinitionFromJSON, AgentAnswerDefinitionFromJSONTyped, AgentAnswerDefinitionToJSON, AgentAnswerDefinitionToJSONTyped, type AgentAnswerMetadata, AgentAnswerMetadataFromJSON, AgentAnswerMetadataFromJSONTyped, AgentAnswerMetadataToJSON, AgentAnswerMetadataToJSONTyped, type AgentAnswerMethodologyNote, AgentAnswerMethodologyNoteFromJSON, AgentAnswerMethodologyNoteFromJSONTyped, AgentAnswerMethodologyNoteToJSON, AgentAnswerMethodologyNoteToJSONTyped, AgentApi, type AgentApiInterface, AgentEffortLevel, AgentEffortLevelFromJSON, AgentEffortLevelFromJSONTyped, AgentEffortLevelToJSON, AgentEffortLevelToJSONTyped, type AgentOutputSettings, AgentOutputSettingsFromJSON, AgentOutputSettingsFromJSONTyped, AgentOutputSettingsToJSON, AgentOutputSettingsToJSONTyped, AgentResource, type AgentResult, type AgentResultEvent, AgentResultEventFromJSON, AgentResultEventFromJSONTyped, AgentResultEventKindEnum, AgentResultEventToJSON, AgentResultEventToJSONTyped, AgentResultFromJSON, AgentResultFromJSONTyped, AgentResultToJSON, AgentResultToJSONTyped, type AgentRun, AgentRunFromJSON, AgentRunFromJSONTyped, AgentRunObjectEnum, type AgentRunRequest, AgentRunRequestFromJSON, AgentRunRequestFromJSONTyped, AgentRunRequestSourceIndexesEnum, AgentRunRequestToJSON, AgentRunRequestToJSONTyped, AgentRunStatus, AgentRunStatusFromJSON, AgentRunStatusFromJSONTyped, AgentRunStatusToJSON, AgentRunStatusToJSONTyped, AgentRunToJSON, AgentRunToJSONTyped, AgentStream, type AgentStreamEnvelope, AgentStreamEnvelopeFromJSON, AgentStreamEnvelopeFromJSONTyped, AgentStreamEnvelopeToJSON, AgentStreamEnvelopeToJSONTyped, type AgentStreamOptions, type AgentUsage, AgentUsageFromJSON, AgentUsageFromJSONTyped, AgentUsageToJSON, AgentUsageToJSONTyped, type AnswerRequest, type AnswerResponse, AnswerResponseFromJSON, AnswerResponseFromJSONTyped, AnswerResponseToJSON, AnswerResponseToJSONTyped, type ApiResponse, BASE_PATH, BaseAPI, type BaseAPIError, BaseAPIErrorFromJSON, BaseAPIErrorFromJSONTyped, BaseAPIErrorToJSON, BaseAPIErrorToJSONTyped, BlobApiResponse, type Block, BlockFromJSON, BlockFromJSONTyped, BlockToJSON, BlockToJSONTyped, COLLECTION_FORMATS, type ComponentConfig, ComponentConfigFromJSON, ComponentConfigFromJSONTyped, ComponentConfigToJSON, ComponentConfigToJSONTyped, ComponentTypeEnum, ComponentTypeEnumFromJSON, ComponentTypeEnumFromJSONTyped, ComponentTypeEnumToJSON, ComponentTypeEnumToJSONTyped, Configuration, type ConfigurationParameters, type Consume, ContentFormat, ContentFormatFromJSON, ContentFormatFromJSONTyped, ContentFormatToJSON, ContentFormatToJSONTyped, type ContentItem, ContentItemFromJSON, ContentItemFromJSONTyped, ContentItemToJSON, ContentItemToJSONTyped, ContentsDeliveryMode, ContentsDeliveryModeFromJSON, ContentsDeliveryModeFromJSONTyped, ContentsDeliveryModeToJSON, ContentsDeliveryModeToJSONTyped, type ContentsOperationRequest, type ContentsRequest, ContentsRequestFromJSON, ContentsRequestFromJSONTyped, ContentsRequestToJSON, ContentsRequestToJSONTyped, type ContentsResponse, ContentsResponseFromJSON, ContentsResponseFromJSONTyped, ContentsResponseToJSON, ContentsResponseToJSONTyped, type CreateAgentRunRequest, type CreateCard400Response, CreateCard400ResponseFromJSON, CreateCard400ResponseFromJSONTyped, CreateCard400ResponseToJSON, CreateCard400ResponseToJSONTyped, type CreateCardOperationRequest, type CreateCardRequest, CreateCardRequestFromJSON, CreateCardRequestFromJSONTyped, CreateCardRequestToJSON, CreateCardRequestToJSONTyped, type DataPipelineAnswerEvent, DataPipelineAnswerEventFromJSON, DataPipelineAnswerEventFromJSONTyped, DataPipelineAnswerEventKindEnum, DataPipelineAnswerEventToJSON, DataPipelineAnswerEventToJSONTyped, DefaultConfig, EntityClassName, EntityClassNameFromJSON, EntityClassNameFromJSONTyped, EntityClassNameToJSON, EntityClassNameToJSONTyped, type ErrorContext, type ErrorObject, ErrorObjectFromJSON, ErrorObjectFromJSONTyped, ErrorObjectToJSON, ErrorObjectToJSONTyped, type FetchAPI, FetchError, type FetchParams, type GetAgentRunRequest, type GraphNode, GraphNodeFromJSON, GraphNodeFromJSONTyped, GraphNodeToJSON, GraphNodeToJSONTyped, GraphNodeType, GraphNodeTypeFromJSON, GraphNodeTypeFromJSONTyped, GraphNodeTypeToJSON, GraphNodeTypeToJSONTyped, type GraphRelatedRequest, type GraphRelatedResponse, GraphRelatedResponseFromJSON, GraphRelatedResponseFromJSONTyped, GraphRelatedResponseToJSON, GraphRelatedResponseToJSONTyped, type GraphRelationPage, GraphRelationPageFromJSON, GraphRelationPageFromJSONTyped, GraphRelationPageToJSON, GraphRelationPageToJSONTyped, type GraphSearchRequest, type GraphSearchResponse, GraphSearchResponseFromJSON, GraphSearchResponseFromJSONTyped, GraphSearchResponseToJSON, GraphSearchResponseToJSONTyped, GraphSearchSubtypeEnum, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type HeartbeatEvent, HeartbeatEventFromJSON, HeartbeatEventFromJSONTyped, HeartbeatEventKindEnum, HeartbeatEventToJSON, HeartbeatEventToJSONTyped, type InitOverrideFunction, JSONApiResponse, type Json, type KnowledgeCardMethodology, KnowledgeCardMethodologyFromJSON, KnowledgeCardMethodologyFromJSONTyped, KnowledgeCardMethodologyToJSON, KnowledgeCardMethodologyToJSONTyped, KnowledgeCardRelevance, KnowledgeCardRelevanceFromJSON, KnowledgeCardRelevanceFromJSONTyped, KnowledgeCardRelevanceToJSON, KnowledgeCardRelevanceToJSONTyped, type Middleware, type ModelPropertyNaming, type OutputSettings, OutputSettingsFromJSON, OutputSettingsFromJSONTyped, OutputSettingsToJSON, OutputSettingsToJSONTyped, type ReasoningEvent, ReasoningEventFromJSON, ReasoningEventFromJSONTyped, ReasoningEventKindEnum, ReasoningEventToJSON, ReasoningEventToJSONTyped, type RelatedGroups, RelatedGroupsFromJSON, RelatedGroupsFromJSONTyped, RelatedGroupsToJSON, RelatedGroupsToJSONTyped, type RelationGroup, RelationGroupFromJSON, RelationGroupFromJSONTyped, RelationGroupToJSON, RelationGroupToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type ResultContent, ResultContentFromJSON, ResultContentFromJSONTyped, ResultContentToJSON, ResultContentToJSONTyped, SearchEffortLevel, SearchEffortLevelFromJSON, SearchEffortLevelFromJSONTyped, SearchEffortLevelToJSON, SearchEffortLevelToJSONTyped, type SearchOperationRequest, type SearchRequest, SearchRequestFromJSON, SearchRequestFromJSONTyped, SearchRequestToJSON, SearchRequestToJSONTyped, type SearchResponse, SearchResponseFromJSON, SearchResponseFromJSONTyped, SearchResponseToJSON, SearchResponseToJSONTyped, type SourceSettings, SourceSettingsFromJSON, SourceSettingsFromJSONTyped, SourceSettingsToJSON, SourceSettingsToJSONTyped, type Sources, SourcesFromJSON, SourcesFromJSONTyped, SourcesToJSON, SourcesToJSONTyped, type StatusEvent, StatusEventFromJSON, StatusEventFromJSONTyped, StatusEventKindEnum, StatusEventToJSON, StatusEventToJSONTyped, StreamCategory, StreamCategoryFromJSON, StreamCategoryFromJSONTyped, StreamCategoryToJSON, StreamCategoryToJSONTyped, type StreamDoneEvent, StreamDoneEventFromJSON, StreamDoneEventFromJSONTyped, StreamDoneEventKindEnum, StreamDoneEventToJSON, StreamDoneEventToJSONTyped, type StreamResetEvent, StreamResetEventFromJSON, StreamResetEventFromJSONTyped, StreamResetEventKindEnum, StreamResetEventToJSON, StreamResetEventToJSONTyped, type SubagentEvent, SubagentEventEventEnum, SubagentEventFromJSON, SubagentEventFromJSONTyped, SubagentEventKindEnum, SubagentEventToJSON, SubagentEventToJSONTyped, Tako, TakoApi, type TakoApiInterface, type TakoCard, TakoCardFromJSON, TakoCardFromJSONTyped, type TakoCardSource, TakoCardSourceFromJSON, TakoCardSourceFromJSONTyped, TakoCardSourceToJSON, TakoCardSourceToJSONTyped, TakoCardToJSON, TakoCardToJSONTyped, type TakoOptions, TakoSourceIndex, TakoSourceIndexFromJSON, TakoSourceIndexFromJSONTyped, TakoSourceIndexToJSON, TakoSourceIndexToJSONTyped, TextApiResponse, type TextEvent, TextEventFromJSON, TextEventFromJSONTyped, TextEventKindEnum, TextEventToJSON, TextEventToJSONTyped, type ThinVizCard, ThinVizCardEmbedModeEnum, ThinVizCardFromJSON, ThinVizCardFromJSONTyped, ThinVizCardToJSON, ThinVizCardToJSONTyped, type ToolCallEvent, ToolCallEventFromJSON, ToolCallEventFromJSONTyped, ToolCallEventKindEnum, ToolCallEventToJSON, ToolCallEventToJSONTyped, type ToolErrorEvent, ToolErrorEventFromJSON, ToolErrorEventFromJSONTyped, ToolErrorEventKindEnum, ToolErrorEventToJSON, ToolErrorEventToJSONTyped, type ToolResultEvent, ToolResultEventFromJSON, ToolResultEventFromJSONTyped, ToolResultEventKindEnum, ToolResultEventToJSON, ToolResultEventToJSONTyped, type ToolRetryEvent, ToolRetryEventFromJSON, ToolRetryEventFromJSONTyped, ToolRetryEventKindEnum, ToolRetryEventToJSON, ToolRetryEventToJSONTyped, VoidApiResponse, type WebResult, WebResultFromJSON, WebResultFromJSONTyped, WebResultToJSON, WebResultToJSONTyped, canConsumeForm, exists, instanceOfAPIErrorType, instanceOfAgentAnswerAssumption, instanceOfAgentAnswerCitation, instanceOfAgentAnswerDefinition, instanceOfAgentAnswerMetadata, instanceOfAgentAnswerMethodologyNote, instanceOfAgentEffortLevel, instanceOfAgentOutputSettings, instanceOfAgentResult, instanceOfAgentResultEvent, instanceOfAgentRun, instanceOfAgentRunRequest, instanceOfAgentRunStatus, instanceOfAgentStreamEnvelope, instanceOfAgentUsage, instanceOfAnswerResponse, instanceOfBaseAPIError, instanceOfComponentConfig, instanceOfComponentTypeEnum, instanceOfContentFormat, instanceOfContentItem, instanceOfContentsDeliveryMode, instanceOfContentsRequest, instanceOfContentsResponse, instanceOfCreateCard400Response, instanceOfCreateCardRequest, instanceOfDataPipelineAnswerEvent, instanceOfEntityClassName, instanceOfErrorObject, instanceOfGraphNode, instanceOfGraphNodeType, instanceOfGraphRelatedResponse, instanceOfGraphRelationPage, instanceOfGraphSearchResponse, instanceOfHeartbeatEvent, instanceOfKnowledgeCardMethodology, instanceOfKnowledgeCardRelevance, instanceOfOutputSettings, instanceOfReasoningEvent, instanceOfRelatedGroups, instanceOfRelationGroup, instanceOfResultContent, instanceOfSearchEffortLevel, instanceOfSearchRequest, instanceOfSearchResponse, instanceOfSourceSettings, instanceOfSources, instanceOfStatusEvent, instanceOfStreamCategory, instanceOfStreamDoneEvent, instanceOfStreamResetEvent, instanceOfSubagentEvent, instanceOfTakoCard, instanceOfTakoCardSource, instanceOfTakoSourceIndex, instanceOfTextEvent, instanceOfThinVizCard, instanceOfToolCallEvent, instanceOfToolErrorEvent, instanceOfToolResultEvent, instanceOfToolRetryEvent, instanceOfWebResult, mapValues, querystring };
|
package/dist/index.d.ts
CHANGED
|
@@ -578,6 +578,249 @@ declare function TakoCardFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
578
578
|
declare function TakoCardToJSON(json: any): TakoCard;
|
|
579
579
|
declare function TakoCardToJSONTyped(value?: TakoCard | null, ignoreDiscriminator?: boolean): any;
|
|
580
580
|
|
|
581
|
+
/**
|
|
582
|
+
* Knowledge Search API
|
|
583
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
584
|
+
*
|
|
585
|
+
* The version of the OpenAPI document: 1.0.0
|
|
586
|
+
*
|
|
587
|
+
*
|
|
588
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
589
|
+
* https://openapi-generator.tech
|
|
590
|
+
* Do not edit the class manually.
|
|
591
|
+
*/
|
|
592
|
+
/**
|
|
593
|
+
* One indexed source behind the answer. Every inline [n] marker in
|
|
594
|
+
* AgentResult.answer joins to a citation's index, but a citation may also
|
|
595
|
+
* back a chart/card without an inline marker — markers map to citations,
|
|
596
|
+
* not 1:1. Covers web and Tako sources alike.
|
|
597
|
+
* @export
|
|
598
|
+
* @interface AgentAnswerCitation
|
|
599
|
+
*/
|
|
600
|
+
interface AgentAnswerCitation {
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @type {number}
|
|
604
|
+
* @memberof AgentAnswerCitation
|
|
605
|
+
*/
|
|
606
|
+
index: number;
|
|
607
|
+
/**
|
|
608
|
+
*
|
|
609
|
+
* @type {string}
|
|
610
|
+
* @memberof AgentAnswerCitation
|
|
611
|
+
*/
|
|
612
|
+
title: string;
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @type {string}
|
|
616
|
+
* @memberof AgentAnswerCitation
|
|
617
|
+
*/
|
|
618
|
+
url?: string | null;
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof AgentAnswerCitation
|
|
623
|
+
*/
|
|
624
|
+
source_name?: string | null;
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Check if a given object implements the AgentAnswerCitation interface.
|
|
628
|
+
*/
|
|
629
|
+
declare function instanceOfAgentAnswerCitation(value: object): value is AgentAnswerCitation;
|
|
630
|
+
declare function AgentAnswerCitationFromJSON(json: any): AgentAnswerCitation;
|
|
631
|
+
declare function AgentAnswerCitationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAnswerCitation;
|
|
632
|
+
declare function AgentAnswerCitationToJSON(json: any): AgentAnswerCitation;
|
|
633
|
+
declare function AgentAnswerCitationToJSONTyped(value?: AgentAnswerCitation | null, ignoreDiscriminator?: boolean): any;
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Knowledge Search API
|
|
637
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
638
|
+
*
|
|
639
|
+
* The version of the OpenAPI document: 1.0.0
|
|
640
|
+
*
|
|
641
|
+
*
|
|
642
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
643
|
+
* https://openapi-generator.tech
|
|
644
|
+
* Do not edit the class manually.
|
|
645
|
+
*/
|
|
646
|
+
/**
|
|
647
|
+
*
|
|
648
|
+
* @export
|
|
649
|
+
* @interface AgentAnswerDefinition
|
|
650
|
+
*/
|
|
651
|
+
interface AgentAnswerDefinition {
|
|
652
|
+
/**
|
|
653
|
+
*
|
|
654
|
+
* @type {string}
|
|
655
|
+
* @memberof AgentAnswerDefinition
|
|
656
|
+
*/
|
|
657
|
+
term: string;
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
* @type {string}
|
|
661
|
+
* @memberof AgentAnswerDefinition
|
|
662
|
+
*/
|
|
663
|
+
definition: string;
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @type {number}
|
|
667
|
+
* @memberof AgentAnswerDefinition
|
|
668
|
+
*/
|
|
669
|
+
source_ref?: number | null;
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* Check if a given object implements the AgentAnswerDefinition interface.
|
|
673
|
+
*/
|
|
674
|
+
declare function instanceOfAgentAnswerDefinition(value: object): value is AgentAnswerDefinition;
|
|
675
|
+
declare function AgentAnswerDefinitionFromJSON(json: any): AgentAnswerDefinition;
|
|
676
|
+
declare function AgentAnswerDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAnswerDefinition;
|
|
677
|
+
declare function AgentAnswerDefinitionToJSON(json: any): AgentAnswerDefinition;
|
|
678
|
+
declare function AgentAnswerDefinitionToJSONTyped(value?: AgentAnswerDefinition | null, ignoreDiscriminator?: boolean): any;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Knowledge Search API
|
|
682
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
683
|
+
*
|
|
684
|
+
* The version of the OpenAPI document: 1.0.0
|
|
685
|
+
*
|
|
686
|
+
*
|
|
687
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
688
|
+
* https://openapi-generator.tech
|
|
689
|
+
* Do not edit the class manually.
|
|
690
|
+
*/
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @export
|
|
694
|
+
* @interface AgentAnswerMethodologyNote
|
|
695
|
+
*/
|
|
696
|
+
interface AgentAnswerMethodologyNote {
|
|
697
|
+
/**
|
|
698
|
+
*
|
|
699
|
+
* @type {string}
|
|
700
|
+
* @memberof AgentAnswerMethodologyNote
|
|
701
|
+
*/
|
|
702
|
+
title: string;
|
|
703
|
+
/**
|
|
704
|
+
*
|
|
705
|
+
* @type {string}
|
|
706
|
+
* @memberof AgentAnswerMethodologyNote
|
|
707
|
+
*/
|
|
708
|
+
description: string;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Check if a given object implements the AgentAnswerMethodologyNote interface.
|
|
712
|
+
*/
|
|
713
|
+
declare function instanceOfAgentAnswerMethodologyNote(value: object): value is AgentAnswerMethodologyNote;
|
|
714
|
+
declare function AgentAnswerMethodologyNoteFromJSON(json: any): AgentAnswerMethodologyNote;
|
|
715
|
+
declare function AgentAnswerMethodologyNoteFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAnswerMethodologyNote;
|
|
716
|
+
declare function AgentAnswerMethodologyNoteToJSON(json: any): AgentAnswerMethodologyNote;
|
|
717
|
+
declare function AgentAnswerMethodologyNoteToJSONTyped(value?: AgentAnswerMethodologyNote | null, ignoreDiscriminator?: boolean): any;
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Knowledge Search API
|
|
721
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
722
|
+
*
|
|
723
|
+
* The version of the OpenAPI document: 1.0.0
|
|
724
|
+
*
|
|
725
|
+
*
|
|
726
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
727
|
+
* https://openapi-generator.tech
|
|
728
|
+
* Do not edit the class manually.
|
|
729
|
+
*/
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @export
|
|
733
|
+
* @interface AgentAnswerAssumption
|
|
734
|
+
*/
|
|
735
|
+
interface AgentAnswerAssumption {
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* @type {string}
|
|
739
|
+
* @memberof AgentAnswerAssumption
|
|
740
|
+
*/
|
|
741
|
+
title: string;
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {string}
|
|
745
|
+
* @memberof AgentAnswerAssumption
|
|
746
|
+
*/
|
|
747
|
+
description: string;
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @type {string}
|
|
751
|
+
* @memberof AgentAnswerAssumption
|
|
752
|
+
*/
|
|
753
|
+
category?: string | null;
|
|
754
|
+
/**
|
|
755
|
+
*
|
|
756
|
+
* @type {number}
|
|
757
|
+
* @memberof AgentAnswerAssumption
|
|
758
|
+
*/
|
|
759
|
+
source_ref?: number | null;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Check if a given object implements the AgentAnswerAssumption interface.
|
|
763
|
+
*/
|
|
764
|
+
declare function instanceOfAgentAnswerAssumption(value: object): value is AgentAnswerAssumption;
|
|
765
|
+
declare function AgentAnswerAssumptionFromJSON(json: any): AgentAnswerAssumption;
|
|
766
|
+
declare function AgentAnswerAssumptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAnswerAssumption;
|
|
767
|
+
declare function AgentAnswerAssumptionToJSON(json: any): AgentAnswerAssumption;
|
|
768
|
+
declare function AgentAnswerAssumptionToJSONTyped(value?: AgentAnswerAssumption | null, ignoreDiscriminator?: boolean): any;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Knowledge Search API
|
|
772
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
773
|
+
*
|
|
774
|
+
* The version of the OpenAPI document: 1.0.0
|
|
775
|
+
*
|
|
776
|
+
*
|
|
777
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
778
|
+
* https://openapi-generator.tech
|
|
779
|
+
* Do not edit the class manually.
|
|
780
|
+
*/
|
|
781
|
+
|
|
782
|
+
/**
|
|
783
|
+
* Supplementary answer metadata. All fields optional — population varies
|
|
784
|
+
* by effort/engine (low fills citations only today); new components are
|
|
785
|
+
* added here additively.
|
|
786
|
+
* @export
|
|
787
|
+
* @interface AgentAnswerMetadata
|
|
788
|
+
*/
|
|
789
|
+
interface AgentAnswerMetadata {
|
|
790
|
+
/**
|
|
791
|
+
*
|
|
792
|
+
* @type {Array<AgentAnswerCitation>}
|
|
793
|
+
* @memberof AgentAnswerMetadata
|
|
794
|
+
*/
|
|
795
|
+
citations?: Array<AgentAnswerCitation> | null;
|
|
796
|
+
/**
|
|
797
|
+
*
|
|
798
|
+
* @type {Array<AgentAnswerDefinition>}
|
|
799
|
+
* @memberof AgentAnswerMetadata
|
|
800
|
+
*/
|
|
801
|
+
definitions?: Array<AgentAnswerDefinition> | null;
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @type {Array<AgentAnswerAssumption>}
|
|
805
|
+
* @memberof AgentAnswerMetadata
|
|
806
|
+
*/
|
|
807
|
+
assumptions?: Array<AgentAnswerAssumption> | null;
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @type {Array<AgentAnswerMethodologyNote>}
|
|
811
|
+
* @memberof AgentAnswerMetadata
|
|
812
|
+
*/
|
|
813
|
+
methodology?: Array<AgentAnswerMethodologyNote> | null;
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Check if a given object implements the AgentAnswerMetadata interface.
|
|
817
|
+
*/
|
|
818
|
+
declare function instanceOfAgentAnswerMetadata(value: object): value is AgentAnswerMetadata;
|
|
819
|
+
declare function AgentAnswerMetadataFromJSON(json: any): AgentAnswerMetadata;
|
|
820
|
+
declare function AgentAnswerMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentAnswerMetadata;
|
|
821
|
+
declare function AgentAnswerMetadataToJSON(json: any): AgentAnswerMetadata;
|
|
822
|
+
declare function AgentAnswerMetadataToJSONTyped(value?: AgentAnswerMetadata | null, ignoreDiscriminator?: boolean): any;
|
|
823
|
+
|
|
581
824
|
/**
|
|
582
825
|
* Knowledge Search API
|
|
583
826
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -666,7 +909,9 @@ declare function WebResultToJSONTyped(value?: WebResult | null, ignoreDiscrimina
|
|
|
666
909
|
*/
|
|
667
910
|
|
|
668
911
|
/**
|
|
669
|
-
* Final agent output. answer is markdown
|
|
912
|
+
* Final agent output. answer is markdown prose with [n] citation markers;
|
|
913
|
+
* cards reuse the sibling TakoCard; metadata carries the structured
|
|
914
|
+
* components behind the answer.
|
|
670
915
|
* @export
|
|
671
916
|
* @interface AgentResult
|
|
672
917
|
*/
|
|
@@ -689,6 +934,12 @@ interface AgentResult {
|
|
|
689
934
|
* @memberof AgentResult
|
|
690
935
|
*/
|
|
691
936
|
web_results?: Array<WebResult>;
|
|
937
|
+
/**
|
|
938
|
+
*
|
|
939
|
+
* @type {AgentAnswerMetadata}
|
|
940
|
+
* @memberof AgentResult
|
|
941
|
+
*/
|
|
942
|
+
metadata?: AgentAnswerMetadata | null;
|
|
692
943
|
/**
|
|
693
944
|
*
|
|
694
945
|
* @type {string}
|
|
@@ -718,7 +969,7 @@ declare function AgentResultToJSONTyped(value?: AgentResult | null, ignoreDiscri
|
|
|
718
969
|
*/
|
|
719
970
|
/**
|
|
720
971
|
* Public effort taxonomy for the Agent API. `low` runs the fast data-pipeline
|
|
721
|
-
* retriever (the default)
|
|
972
|
+
* retriever; `medium` (the default) runs the analytical orchestrator. `high` is
|
|
722
973
|
* not yet exposed.
|
|
723
974
|
* @export
|
|
724
975
|
*/
|
|
@@ -797,7 +1048,7 @@ interface AgentRunRequest {
|
|
|
797
1048
|
*/
|
|
798
1049
|
thread_id?: string | null;
|
|
799
1050
|
/**
|
|
800
|
-
* Agent effort. 'low'
|
|
1051
|
+
* Agent effort. 'low' returns fast results for simple queries; 'medium' (default) returns deeper analysis across multiple entities and metrics (slower).
|
|
801
1052
|
* @type {AgentEffortLevel}
|
|
802
1053
|
* @memberof AgentRunRequest
|
|
803
1054
|
*/
|
|
@@ -3776,4 +4027,4 @@ declare class Tako {
|
|
|
3776
4027
|
graphRelated(request: GraphRelatedRequest): Promise<GraphRelatedResponse>;
|
|
3777
4028
|
}
|
|
3778
4029
|
|
|
3779
|
-
export { APIErrorType, APIErrorTypeFromJSON, APIErrorTypeFromJSONTyped, APIErrorTypeToJSON, APIErrorTypeToJSONTyped, AgentApi, type AgentApiInterface, AgentEffortLevel, AgentEffortLevelFromJSON, AgentEffortLevelFromJSONTyped, AgentEffortLevelToJSON, AgentEffortLevelToJSONTyped, type AgentOutputSettings, AgentOutputSettingsFromJSON, AgentOutputSettingsFromJSONTyped, AgentOutputSettingsToJSON, AgentOutputSettingsToJSONTyped, AgentResource, type AgentResult, type AgentResultEvent, AgentResultEventFromJSON, AgentResultEventFromJSONTyped, AgentResultEventKindEnum, AgentResultEventToJSON, AgentResultEventToJSONTyped, AgentResultFromJSON, AgentResultFromJSONTyped, AgentResultToJSON, AgentResultToJSONTyped, type AgentRun, AgentRunFromJSON, AgentRunFromJSONTyped, AgentRunObjectEnum, type AgentRunRequest, AgentRunRequestFromJSON, AgentRunRequestFromJSONTyped, AgentRunRequestSourceIndexesEnum, AgentRunRequestToJSON, AgentRunRequestToJSONTyped, AgentRunStatus, AgentRunStatusFromJSON, AgentRunStatusFromJSONTyped, AgentRunStatusToJSON, AgentRunStatusToJSONTyped, AgentRunToJSON, AgentRunToJSONTyped, AgentStream, type AgentStreamEnvelope, AgentStreamEnvelopeFromJSON, AgentStreamEnvelopeFromJSONTyped, AgentStreamEnvelopeToJSON, AgentStreamEnvelopeToJSONTyped, type AgentStreamOptions, type AgentUsage, AgentUsageFromJSON, AgentUsageFromJSONTyped, AgentUsageToJSON, AgentUsageToJSONTyped, type AnswerRequest, type AnswerResponse, AnswerResponseFromJSON, AnswerResponseFromJSONTyped, AnswerResponseToJSON, AnswerResponseToJSONTyped, type ApiResponse, BASE_PATH, BaseAPI, type BaseAPIError, BaseAPIErrorFromJSON, BaseAPIErrorFromJSONTyped, BaseAPIErrorToJSON, BaseAPIErrorToJSONTyped, BlobApiResponse, type Block, BlockFromJSON, BlockFromJSONTyped, BlockToJSON, BlockToJSONTyped, COLLECTION_FORMATS, type ComponentConfig, ComponentConfigFromJSON, ComponentConfigFromJSONTyped, ComponentConfigToJSON, ComponentConfigToJSONTyped, ComponentTypeEnum, ComponentTypeEnumFromJSON, ComponentTypeEnumFromJSONTyped, ComponentTypeEnumToJSON, ComponentTypeEnumToJSONTyped, Configuration, type ConfigurationParameters, type Consume, ContentFormat, ContentFormatFromJSON, ContentFormatFromJSONTyped, ContentFormatToJSON, ContentFormatToJSONTyped, type ContentItem, ContentItemFromJSON, ContentItemFromJSONTyped, ContentItemToJSON, ContentItemToJSONTyped, ContentsDeliveryMode, ContentsDeliveryModeFromJSON, ContentsDeliveryModeFromJSONTyped, ContentsDeliveryModeToJSON, ContentsDeliveryModeToJSONTyped, type ContentsOperationRequest, type ContentsRequest, ContentsRequestFromJSON, ContentsRequestFromJSONTyped, ContentsRequestToJSON, ContentsRequestToJSONTyped, type ContentsResponse, ContentsResponseFromJSON, ContentsResponseFromJSONTyped, ContentsResponseToJSON, ContentsResponseToJSONTyped, type CreateAgentRunRequest, type CreateCard400Response, CreateCard400ResponseFromJSON, CreateCard400ResponseFromJSONTyped, CreateCard400ResponseToJSON, CreateCard400ResponseToJSONTyped, type CreateCardOperationRequest, type CreateCardRequest, CreateCardRequestFromJSON, CreateCardRequestFromJSONTyped, CreateCardRequestToJSON, CreateCardRequestToJSONTyped, type DataPipelineAnswerEvent, DataPipelineAnswerEventFromJSON, DataPipelineAnswerEventFromJSONTyped, DataPipelineAnswerEventKindEnum, DataPipelineAnswerEventToJSON, DataPipelineAnswerEventToJSONTyped, DefaultConfig, EntityClassName, EntityClassNameFromJSON, EntityClassNameFromJSONTyped, EntityClassNameToJSON, EntityClassNameToJSONTyped, type ErrorContext, type ErrorObject, ErrorObjectFromJSON, ErrorObjectFromJSONTyped, ErrorObjectToJSON, ErrorObjectToJSONTyped, type FetchAPI, FetchError, type FetchParams, type GetAgentRunRequest, type GraphNode, GraphNodeFromJSON, GraphNodeFromJSONTyped, GraphNodeToJSON, GraphNodeToJSONTyped, GraphNodeType, GraphNodeTypeFromJSON, GraphNodeTypeFromJSONTyped, GraphNodeTypeToJSON, GraphNodeTypeToJSONTyped, type GraphRelatedRequest, type GraphRelatedResponse, GraphRelatedResponseFromJSON, GraphRelatedResponseFromJSONTyped, GraphRelatedResponseToJSON, GraphRelatedResponseToJSONTyped, type GraphRelationPage, GraphRelationPageFromJSON, GraphRelationPageFromJSONTyped, GraphRelationPageToJSON, GraphRelationPageToJSONTyped, type GraphSearchRequest, type GraphSearchResponse, GraphSearchResponseFromJSON, GraphSearchResponseFromJSONTyped, GraphSearchResponseToJSON, GraphSearchResponseToJSONTyped, GraphSearchSubtypeEnum, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type HeartbeatEvent, HeartbeatEventFromJSON, HeartbeatEventFromJSONTyped, HeartbeatEventKindEnum, HeartbeatEventToJSON, HeartbeatEventToJSONTyped, type InitOverrideFunction, JSONApiResponse, type Json, type KnowledgeCardMethodology, KnowledgeCardMethodologyFromJSON, KnowledgeCardMethodologyFromJSONTyped, KnowledgeCardMethodologyToJSON, KnowledgeCardMethodologyToJSONTyped, KnowledgeCardRelevance, KnowledgeCardRelevanceFromJSON, KnowledgeCardRelevanceFromJSONTyped, KnowledgeCardRelevanceToJSON, KnowledgeCardRelevanceToJSONTyped, type Middleware, type ModelPropertyNaming, type OutputSettings, OutputSettingsFromJSON, OutputSettingsFromJSONTyped, OutputSettingsToJSON, OutputSettingsToJSONTyped, type ReasoningEvent, ReasoningEventFromJSON, ReasoningEventFromJSONTyped, ReasoningEventKindEnum, ReasoningEventToJSON, ReasoningEventToJSONTyped, type RelatedGroups, RelatedGroupsFromJSON, RelatedGroupsFromJSONTyped, RelatedGroupsToJSON, RelatedGroupsToJSONTyped, type RelationGroup, RelationGroupFromJSON, RelationGroupFromJSONTyped, RelationGroupToJSON, RelationGroupToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type ResultContent, ResultContentFromJSON, ResultContentFromJSONTyped, ResultContentToJSON, ResultContentToJSONTyped, SearchEffortLevel, SearchEffortLevelFromJSON, SearchEffortLevelFromJSONTyped, SearchEffortLevelToJSON, SearchEffortLevelToJSONTyped, type SearchOperationRequest, type SearchRequest, SearchRequestFromJSON, SearchRequestFromJSONTyped, SearchRequestToJSON, SearchRequestToJSONTyped, type SearchResponse, SearchResponseFromJSON, SearchResponseFromJSONTyped, SearchResponseToJSON, SearchResponseToJSONTyped, type SourceSettings, SourceSettingsFromJSON, SourceSettingsFromJSONTyped, SourceSettingsToJSON, SourceSettingsToJSONTyped, type Sources, SourcesFromJSON, SourcesFromJSONTyped, SourcesToJSON, SourcesToJSONTyped, type StatusEvent, StatusEventFromJSON, StatusEventFromJSONTyped, StatusEventKindEnum, StatusEventToJSON, StatusEventToJSONTyped, StreamCategory, StreamCategoryFromJSON, StreamCategoryFromJSONTyped, StreamCategoryToJSON, StreamCategoryToJSONTyped, type StreamDoneEvent, StreamDoneEventFromJSON, StreamDoneEventFromJSONTyped, StreamDoneEventKindEnum, StreamDoneEventToJSON, StreamDoneEventToJSONTyped, type StreamResetEvent, StreamResetEventFromJSON, StreamResetEventFromJSONTyped, StreamResetEventKindEnum, StreamResetEventToJSON, StreamResetEventToJSONTyped, type SubagentEvent, SubagentEventEventEnum, SubagentEventFromJSON, SubagentEventFromJSONTyped, SubagentEventKindEnum, SubagentEventToJSON, SubagentEventToJSONTyped, Tako, TakoApi, type TakoApiInterface, type TakoCard, TakoCardFromJSON, TakoCardFromJSONTyped, type TakoCardSource, TakoCardSourceFromJSON, TakoCardSourceFromJSONTyped, TakoCardSourceToJSON, TakoCardSourceToJSONTyped, TakoCardToJSON, TakoCardToJSONTyped, type TakoOptions, TakoSourceIndex, TakoSourceIndexFromJSON, TakoSourceIndexFromJSONTyped, TakoSourceIndexToJSON, TakoSourceIndexToJSONTyped, TextApiResponse, type TextEvent, TextEventFromJSON, TextEventFromJSONTyped, TextEventKindEnum, TextEventToJSON, TextEventToJSONTyped, type ThinVizCard, ThinVizCardEmbedModeEnum, ThinVizCardFromJSON, ThinVizCardFromJSONTyped, ThinVizCardToJSON, ThinVizCardToJSONTyped, type ToolCallEvent, ToolCallEventFromJSON, ToolCallEventFromJSONTyped, ToolCallEventKindEnum, ToolCallEventToJSON, ToolCallEventToJSONTyped, type ToolErrorEvent, ToolErrorEventFromJSON, ToolErrorEventFromJSONTyped, ToolErrorEventKindEnum, ToolErrorEventToJSON, ToolErrorEventToJSONTyped, type ToolResultEvent, ToolResultEventFromJSON, ToolResultEventFromJSONTyped, ToolResultEventKindEnum, ToolResultEventToJSON, ToolResultEventToJSONTyped, type ToolRetryEvent, ToolRetryEventFromJSON, ToolRetryEventFromJSONTyped, ToolRetryEventKindEnum, ToolRetryEventToJSON, ToolRetryEventToJSONTyped, VoidApiResponse, type WebResult, WebResultFromJSON, WebResultFromJSONTyped, WebResultToJSON, WebResultToJSONTyped, canConsumeForm, exists, instanceOfAPIErrorType, instanceOfAgentEffortLevel, instanceOfAgentOutputSettings, instanceOfAgentResult, instanceOfAgentResultEvent, instanceOfAgentRun, instanceOfAgentRunRequest, instanceOfAgentRunStatus, instanceOfAgentStreamEnvelope, instanceOfAgentUsage, instanceOfAnswerResponse, instanceOfBaseAPIError, instanceOfComponentConfig, instanceOfComponentTypeEnum, instanceOfContentFormat, instanceOfContentItem, instanceOfContentsDeliveryMode, instanceOfContentsRequest, instanceOfContentsResponse, instanceOfCreateCard400Response, instanceOfCreateCardRequest, instanceOfDataPipelineAnswerEvent, instanceOfEntityClassName, instanceOfErrorObject, instanceOfGraphNode, instanceOfGraphNodeType, instanceOfGraphRelatedResponse, instanceOfGraphRelationPage, instanceOfGraphSearchResponse, instanceOfHeartbeatEvent, instanceOfKnowledgeCardMethodology, instanceOfKnowledgeCardRelevance, instanceOfOutputSettings, instanceOfReasoningEvent, instanceOfRelatedGroups, instanceOfRelationGroup, instanceOfResultContent, instanceOfSearchEffortLevel, instanceOfSearchRequest, instanceOfSearchResponse, instanceOfSourceSettings, instanceOfSources, instanceOfStatusEvent, instanceOfStreamCategory, instanceOfStreamDoneEvent, instanceOfStreamResetEvent, instanceOfSubagentEvent, instanceOfTakoCard, instanceOfTakoCardSource, instanceOfTakoSourceIndex, instanceOfTextEvent, instanceOfThinVizCard, instanceOfToolCallEvent, instanceOfToolErrorEvent, instanceOfToolResultEvent, instanceOfToolRetryEvent, instanceOfWebResult, mapValues, querystring };
|
|
4030
|
+
export { APIErrorType, APIErrorTypeFromJSON, APIErrorTypeFromJSONTyped, APIErrorTypeToJSON, APIErrorTypeToJSONTyped, type AgentAnswerAssumption, AgentAnswerAssumptionFromJSON, AgentAnswerAssumptionFromJSONTyped, AgentAnswerAssumptionToJSON, AgentAnswerAssumptionToJSONTyped, type AgentAnswerCitation, AgentAnswerCitationFromJSON, AgentAnswerCitationFromJSONTyped, AgentAnswerCitationToJSON, AgentAnswerCitationToJSONTyped, type AgentAnswerDefinition, AgentAnswerDefinitionFromJSON, AgentAnswerDefinitionFromJSONTyped, AgentAnswerDefinitionToJSON, AgentAnswerDefinitionToJSONTyped, type AgentAnswerMetadata, AgentAnswerMetadataFromJSON, AgentAnswerMetadataFromJSONTyped, AgentAnswerMetadataToJSON, AgentAnswerMetadataToJSONTyped, type AgentAnswerMethodologyNote, AgentAnswerMethodologyNoteFromJSON, AgentAnswerMethodologyNoteFromJSONTyped, AgentAnswerMethodologyNoteToJSON, AgentAnswerMethodologyNoteToJSONTyped, AgentApi, type AgentApiInterface, AgentEffortLevel, AgentEffortLevelFromJSON, AgentEffortLevelFromJSONTyped, AgentEffortLevelToJSON, AgentEffortLevelToJSONTyped, type AgentOutputSettings, AgentOutputSettingsFromJSON, AgentOutputSettingsFromJSONTyped, AgentOutputSettingsToJSON, AgentOutputSettingsToJSONTyped, AgentResource, type AgentResult, type AgentResultEvent, AgentResultEventFromJSON, AgentResultEventFromJSONTyped, AgentResultEventKindEnum, AgentResultEventToJSON, AgentResultEventToJSONTyped, AgentResultFromJSON, AgentResultFromJSONTyped, AgentResultToJSON, AgentResultToJSONTyped, type AgentRun, AgentRunFromJSON, AgentRunFromJSONTyped, AgentRunObjectEnum, type AgentRunRequest, AgentRunRequestFromJSON, AgentRunRequestFromJSONTyped, AgentRunRequestSourceIndexesEnum, AgentRunRequestToJSON, AgentRunRequestToJSONTyped, AgentRunStatus, AgentRunStatusFromJSON, AgentRunStatusFromJSONTyped, AgentRunStatusToJSON, AgentRunStatusToJSONTyped, AgentRunToJSON, AgentRunToJSONTyped, AgentStream, type AgentStreamEnvelope, AgentStreamEnvelopeFromJSON, AgentStreamEnvelopeFromJSONTyped, AgentStreamEnvelopeToJSON, AgentStreamEnvelopeToJSONTyped, type AgentStreamOptions, type AgentUsage, AgentUsageFromJSON, AgentUsageFromJSONTyped, AgentUsageToJSON, AgentUsageToJSONTyped, type AnswerRequest, type AnswerResponse, AnswerResponseFromJSON, AnswerResponseFromJSONTyped, AnswerResponseToJSON, AnswerResponseToJSONTyped, type ApiResponse, BASE_PATH, BaseAPI, type BaseAPIError, BaseAPIErrorFromJSON, BaseAPIErrorFromJSONTyped, BaseAPIErrorToJSON, BaseAPIErrorToJSONTyped, BlobApiResponse, type Block, BlockFromJSON, BlockFromJSONTyped, BlockToJSON, BlockToJSONTyped, COLLECTION_FORMATS, type ComponentConfig, ComponentConfigFromJSON, ComponentConfigFromJSONTyped, ComponentConfigToJSON, ComponentConfigToJSONTyped, ComponentTypeEnum, ComponentTypeEnumFromJSON, ComponentTypeEnumFromJSONTyped, ComponentTypeEnumToJSON, ComponentTypeEnumToJSONTyped, Configuration, type ConfigurationParameters, type Consume, ContentFormat, ContentFormatFromJSON, ContentFormatFromJSONTyped, ContentFormatToJSON, ContentFormatToJSONTyped, type ContentItem, ContentItemFromJSON, ContentItemFromJSONTyped, ContentItemToJSON, ContentItemToJSONTyped, ContentsDeliveryMode, ContentsDeliveryModeFromJSON, ContentsDeliveryModeFromJSONTyped, ContentsDeliveryModeToJSON, ContentsDeliveryModeToJSONTyped, type ContentsOperationRequest, type ContentsRequest, ContentsRequestFromJSON, ContentsRequestFromJSONTyped, ContentsRequestToJSON, ContentsRequestToJSONTyped, type ContentsResponse, ContentsResponseFromJSON, ContentsResponseFromJSONTyped, ContentsResponseToJSON, ContentsResponseToJSONTyped, type CreateAgentRunRequest, type CreateCard400Response, CreateCard400ResponseFromJSON, CreateCard400ResponseFromJSONTyped, CreateCard400ResponseToJSON, CreateCard400ResponseToJSONTyped, type CreateCardOperationRequest, type CreateCardRequest, CreateCardRequestFromJSON, CreateCardRequestFromJSONTyped, CreateCardRequestToJSON, CreateCardRequestToJSONTyped, type DataPipelineAnswerEvent, DataPipelineAnswerEventFromJSON, DataPipelineAnswerEventFromJSONTyped, DataPipelineAnswerEventKindEnum, DataPipelineAnswerEventToJSON, DataPipelineAnswerEventToJSONTyped, DefaultConfig, EntityClassName, EntityClassNameFromJSON, EntityClassNameFromJSONTyped, EntityClassNameToJSON, EntityClassNameToJSONTyped, type ErrorContext, type ErrorObject, ErrorObjectFromJSON, ErrorObjectFromJSONTyped, ErrorObjectToJSON, ErrorObjectToJSONTyped, type FetchAPI, FetchError, type FetchParams, type GetAgentRunRequest, type GraphNode, GraphNodeFromJSON, GraphNodeFromJSONTyped, GraphNodeToJSON, GraphNodeToJSONTyped, GraphNodeType, GraphNodeTypeFromJSON, GraphNodeTypeFromJSONTyped, GraphNodeTypeToJSON, GraphNodeTypeToJSONTyped, type GraphRelatedRequest, type GraphRelatedResponse, GraphRelatedResponseFromJSON, GraphRelatedResponseFromJSONTyped, GraphRelatedResponseToJSON, GraphRelatedResponseToJSONTyped, type GraphRelationPage, GraphRelationPageFromJSON, GraphRelationPageFromJSONTyped, GraphRelationPageToJSON, GraphRelationPageToJSONTyped, type GraphSearchRequest, type GraphSearchResponse, GraphSearchResponseFromJSON, GraphSearchResponseFromJSONTyped, GraphSearchResponseToJSON, GraphSearchResponseToJSONTyped, GraphSearchSubtypeEnum, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, type HeartbeatEvent, HeartbeatEventFromJSON, HeartbeatEventFromJSONTyped, HeartbeatEventKindEnum, HeartbeatEventToJSON, HeartbeatEventToJSONTyped, type InitOverrideFunction, JSONApiResponse, type Json, type KnowledgeCardMethodology, KnowledgeCardMethodologyFromJSON, KnowledgeCardMethodologyFromJSONTyped, KnowledgeCardMethodologyToJSON, KnowledgeCardMethodologyToJSONTyped, KnowledgeCardRelevance, KnowledgeCardRelevanceFromJSON, KnowledgeCardRelevanceFromJSONTyped, KnowledgeCardRelevanceToJSON, KnowledgeCardRelevanceToJSONTyped, type Middleware, type ModelPropertyNaming, type OutputSettings, OutputSettingsFromJSON, OutputSettingsFromJSONTyped, OutputSettingsToJSON, OutputSettingsToJSONTyped, type ReasoningEvent, ReasoningEventFromJSON, ReasoningEventFromJSONTyped, ReasoningEventKindEnum, ReasoningEventToJSON, ReasoningEventToJSONTyped, type RelatedGroups, RelatedGroupsFromJSON, RelatedGroupsFromJSONTyped, RelatedGroupsToJSON, RelatedGroupsToJSONTyped, type RelationGroup, RelationGroupFromJSON, RelationGroupFromJSONTyped, RelationGroupToJSON, RelationGroupToJSONTyped, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, type ResultContent, ResultContentFromJSON, ResultContentFromJSONTyped, ResultContentToJSON, ResultContentToJSONTyped, SearchEffortLevel, SearchEffortLevelFromJSON, SearchEffortLevelFromJSONTyped, SearchEffortLevelToJSON, SearchEffortLevelToJSONTyped, type SearchOperationRequest, type SearchRequest, SearchRequestFromJSON, SearchRequestFromJSONTyped, SearchRequestToJSON, SearchRequestToJSONTyped, type SearchResponse, SearchResponseFromJSON, SearchResponseFromJSONTyped, SearchResponseToJSON, SearchResponseToJSONTyped, type SourceSettings, SourceSettingsFromJSON, SourceSettingsFromJSONTyped, SourceSettingsToJSON, SourceSettingsToJSONTyped, type Sources, SourcesFromJSON, SourcesFromJSONTyped, SourcesToJSON, SourcesToJSONTyped, type StatusEvent, StatusEventFromJSON, StatusEventFromJSONTyped, StatusEventKindEnum, StatusEventToJSON, StatusEventToJSONTyped, StreamCategory, StreamCategoryFromJSON, StreamCategoryFromJSONTyped, StreamCategoryToJSON, StreamCategoryToJSONTyped, type StreamDoneEvent, StreamDoneEventFromJSON, StreamDoneEventFromJSONTyped, StreamDoneEventKindEnum, StreamDoneEventToJSON, StreamDoneEventToJSONTyped, type StreamResetEvent, StreamResetEventFromJSON, StreamResetEventFromJSONTyped, StreamResetEventKindEnum, StreamResetEventToJSON, StreamResetEventToJSONTyped, type SubagentEvent, SubagentEventEventEnum, SubagentEventFromJSON, SubagentEventFromJSONTyped, SubagentEventKindEnum, SubagentEventToJSON, SubagentEventToJSONTyped, Tako, TakoApi, type TakoApiInterface, type TakoCard, TakoCardFromJSON, TakoCardFromJSONTyped, type TakoCardSource, TakoCardSourceFromJSON, TakoCardSourceFromJSONTyped, TakoCardSourceToJSON, TakoCardSourceToJSONTyped, TakoCardToJSON, TakoCardToJSONTyped, type TakoOptions, TakoSourceIndex, TakoSourceIndexFromJSON, TakoSourceIndexFromJSONTyped, TakoSourceIndexToJSON, TakoSourceIndexToJSONTyped, TextApiResponse, type TextEvent, TextEventFromJSON, TextEventFromJSONTyped, TextEventKindEnum, TextEventToJSON, TextEventToJSONTyped, type ThinVizCard, ThinVizCardEmbedModeEnum, ThinVizCardFromJSON, ThinVizCardFromJSONTyped, ThinVizCardToJSON, ThinVizCardToJSONTyped, type ToolCallEvent, ToolCallEventFromJSON, ToolCallEventFromJSONTyped, ToolCallEventKindEnum, ToolCallEventToJSON, ToolCallEventToJSONTyped, type ToolErrorEvent, ToolErrorEventFromJSON, ToolErrorEventFromJSONTyped, ToolErrorEventKindEnum, ToolErrorEventToJSON, ToolErrorEventToJSONTyped, type ToolResultEvent, ToolResultEventFromJSON, ToolResultEventFromJSONTyped, ToolResultEventKindEnum, ToolResultEventToJSON, ToolResultEventToJSONTyped, type ToolRetryEvent, ToolRetryEventFromJSON, ToolRetryEventFromJSONTyped, ToolRetryEventKindEnum, ToolRetryEventToJSON, ToolRetryEventToJSONTyped, VoidApiResponse, type WebResult, WebResultFromJSON, WebResultFromJSONTyped, WebResultToJSON, WebResultToJSONTyped, canConsumeForm, exists, instanceOfAPIErrorType, instanceOfAgentAnswerAssumption, instanceOfAgentAnswerCitation, instanceOfAgentAnswerDefinition, instanceOfAgentAnswerMetadata, instanceOfAgentAnswerMethodologyNote, instanceOfAgentEffortLevel, instanceOfAgentOutputSettings, instanceOfAgentResult, instanceOfAgentResultEvent, instanceOfAgentRun, instanceOfAgentRunRequest, instanceOfAgentRunStatus, instanceOfAgentStreamEnvelope, instanceOfAgentUsage, instanceOfAnswerResponse, instanceOfBaseAPIError, instanceOfComponentConfig, instanceOfComponentTypeEnum, instanceOfContentFormat, instanceOfContentItem, instanceOfContentsDeliveryMode, instanceOfContentsRequest, instanceOfContentsResponse, instanceOfCreateCard400Response, instanceOfCreateCardRequest, instanceOfDataPipelineAnswerEvent, instanceOfEntityClassName, instanceOfErrorObject, instanceOfGraphNode, instanceOfGraphNodeType, instanceOfGraphRelatedResponse, instanceOfGraphRelationPage, instanceOfGraphSearchResponse, instanceOfHeartbeatEvent, instanceOfKnowledgeCardMethodology, instanceOfKnowledgeCardRelevance, instanceOfOutputSettings, instanceOfReasoningEvent, instanceOfRelatedGroups, instanceOfRelationGroup, instanceOfResultContent, instanceOfSearchEffortLevel, instanceOfSearchRequest, instanceOfSearchResponse, instanceOfSourceSettings, instanceOfSources, instanceOfStatusEvent, instanceOfStreamCategory, instanceOfStreamDoneEvent, instanceOfStreamResetEvent, instanceOfSubagentEvent, instanceOfTakoCard, instanceOfTakoCardSource, instanceOfTakoSourceIndex, instanceOfTextEvent, instanceOfThinVizCard, instanceOfToolCallEvent, instanceOfToolErrorEvent, instanceOfToolResultEvent, instanceOfToolRetryEvent, instanceOfWebResult, mapValues, querystring };
|
package/dist/index.js
CHANGED
|
@@ -569,6 +569,173 @@ function TakoCardToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
569
569
|
};
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
+
// src/generated/models/AgentAnswerCitation.ts
|
|
573
|
+
function instanceOfAgentAnswerCitation(value) {
|
|
574
|
+
if (!("index" in value) || value["index"] === void 0) return false;
|
|
575
|
+
if (!("title" in value) || value["title"] === void 0) return false;
|
|
576
|
+
return true;
|
|
577
|
+
}
|
|
578
|
+
function AgentAnswerCitationFromJSON(json) {
|
|
579
|
+
return AgentAnswerCitationFromJSONTyped(json, false);
|
|
580
|
+
}
|
|
581
|
+
function AgentAnswerCitationFromJSONTyped(json, ignoreDiscriminator) {
|
|
582
|
+
if (json == null) {
|
|
583
|
+
return json;
|
|
584
|
+
}
|
|
585
|
+
return {
|
|
586
|
+
"index": json["index"],
|
|
587
|
+
"title": json["title"],
|
|
588
|
+
"url": json["url"] == null ? void 0 : json["url"],
|
|
589
|
+
"source_name": json["source_name"] == null ? void 0 : json["source_name"]
|
|
590
|
+
};
|
|
591
|
+
}
|
|
592
|
+
function AgentAnswerCitationToJSON(json) {
|
|
593
|
+
return AgentAnswerCitationToJSONTyped(json, false);
|
|
594
|
+
}
|
|
595
|
+
function AgentAnswerCitationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
596
|
+
if (value == null) {
|
|
597
|
+
return value;
|
|
598
|
+
}
|
|
599
|
+
return {
|
|
600
|
+
"index": value["index"],
|
|
601
|
+
"title": value["title"],
|
|
602
|
+
"url": value["url"],
|
|
603
|
+
"source_name": value["source_name"]
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
// src/generated/models/AgentAnswerDefinition.ts
|
|
608
|
+
function instanceOfAgentAnswerDefinition(value) {
|
|
609
|
+
if (!("term" in value) || value["term"] === void 0) return false;
|
|
610
|
+
if (!("definition" in value) || value["definition"] === void 0) return false;
|
|
611
|
+
return true;
|
|
612
|
+
}
|
|
613
|
+
function AgentAnswerDefinitionFromJSON(json) {
|
|
614
|
+
return AgentAnswerDefinitionFromJSONTyped(json, false);
|
|
615
|
+
}
|
|
616
|
+
function AgentAnswerDefinitionFromJSONTyped(json, ignoreDiscriminator) {
|
|
617
|
+
if (json == null) {
|
|
618
|
+
return json;
|
|
619
|
+
}
|
|
620
|
+
return {
|
|
621
|
+
"term": json["term"],
|
|
622
|
+
"definition": json["definition"],
|
|
623
|
+
"source_ref": json["source_ref"] == null ? void 0 : json["source_ref"]
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
function AgentAnswerDefinitionToJSON(json) {
|
|
627
|
+
return AgentAnswerDefinitionToJSONTyped(json, false);
|
|
628
|
+
}
|
|
629
|
+
function AgentAnswerDefinitionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
630
|
+
if (value == null) {
|
|
631
|
+
return value;
|
|
632
|
+
}
|
|
633
|
+
return {
|
|
634
|
+
"term": value["term"],
|
|
635
|
+
"definition": value["definition"],
|
|
636
|
+
"source_ref": value["source_ref"]
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
// src/generated/models/AgentAnswerMethodologyNote.ts
|
|
641
|
+
function instanceOfAgentAnswerMethodologyNote(value) {
|
|
642
|
+
if (!("title" in value) || value["title"] === void 0) return false;
|
|
643
|
+
if (!("description" in value) || value["description"] === void 0) return false;
|
|
644
|
+
return true;
|
|
645
|
+
}
|
|
646
|
+
function AgentAnswerMethodologyNoteFromJSON(json) {
|
|
647
|
+
return AgentAnswerMethodologyNoteFromJSONTyped(json, false);
|
|
648
|
+
}
|
|
649
|
+
function AgentAnswerMethodologyNoteFromJSONTyped(json, ignoreDiscriminator) {
|
|
650
|
+
if (json == null) {
|
|
651
|
+
return json;
|
|
652
|
+
}
|
|
653
|
+
return {
|
|
654
|
+
"title": json["title"],
|
|
655
|
+
"description": json["description"]
|
|
656
|
+
};
|
|
657
|
+
}
|
|
658
|
+
function AgentAnswerMethodologyNoteToJSON(json) {
|
|
659
|
+
return AgentAnswerMethodologyNoteToJSONTyped(json, false);
|
|
660
|
+
}
|
|
661
|
+
function AgentAnswerMethodologyNoteToJSONTyped(value, ignoreDiscriminator = false) {
|
|
662
|
+
if (value == null) {
|
|
663
|
+
return value;
|
|
664
|
+
}
|
|
665
|
+
return {
|
|
666
|
+
"title": value["title"],
|
|
667
|
+
"description": value["description"]
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
// src/generated/models/AgentAnswerAssumption.ts
|
|
672
|
+
function instanceOfAgentAnswerAssumption(value) {
|
|
673
|
+
if (!("title" in value) || value["title"] === void 0) return false;
|
|
674
|
+
if (!("description" in value) || value["description"] === void 0) return false;
|
|
675
|
+
return true;
|
|
676
|
+
}
|
|
677
|
+
function AgentAnswerAssumptionFromJSON(json) {
|
|
678
|
+
return AgentAnswerAssumptionFromJSONTyped(json, false);
|
|
679
|
+
}
|
|
680
|
+
function AgentAnswerAssumptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
681
|
+
if (json == null) {
|
|
682
|
+
return json;
|
|
683
|
+
}
|
|
684
|
+
return {
|
|
685
|
+
"title": json["title"],
|
|
686
|
+
"description": json["description"],
|
|
687
|
+
"category": json["category"] == null ? void 0 : json["category"],
|
|
688
|
+
"source_ref": json["source_ref"] == null ? void 0 : json["source_ref"]
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
function AgentAnswerAssumptionToJSON(json) {
|
|
692
|
+
return AgentAnswerAssumptionToJSONTyped(json, false);
|
|
693
|
+
}
|
|
694
|
+
function AgentAnswerAssumptionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
695
|
+
if (value == null) {
|
|
696
|
+
return value;
|
|
697
|
+
}
|
|
698
|
+
return {
|
|
699
|
+
"title": value["title"],
|
|
700
|
+
"description": value["description"],
|
|
701
|
+
"category": value["category"],
|
|
702
|
+
"source_ref": value["source_ref"]
|
|
703
|
+
};
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
// src/generated/models/AgentAnswerMetadata.ts
|
|
707
|
+
function instanceOfAgentAnswerMetadata(value) {
|
|
708
|
+
return true;
|
|
709
|
+
}
|
|
710
|
+
function AgentAnswerMetadataFromJSON(json) {
|
|
711
|
+
return AgentAnswerMetadataFromJSONTyped(json, false);
|
|
712
|
+
}
|
|
713
|
+
function AgentAnswerMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
714
|
+
if (json == null) {
|
|
715
|
+
return json;
|
|
716
|
+
}
|
|
717
|
+
return {
|
|
718
|
+
"citations": json["citations"] == null ? void 0 : json["citations"].map(AgentAnswerCitationFromJSON),
|
|
719
|
+
"definitions": json["definitions"] == null ? void 0 : json["definitions"].map(AgentAnswerDefinitionFromJSON),
|
|
720
|
+
"assumptions": json["assumptions"] == null ? void 0 : json["assumptions"].map(AgentAnswerAssumptionFromJSON),
|
|
721
|
+
"methodology": json["methodology"] == null ? void 0 : json["methodology"].map(AgentAnswerMethodologyNoteFromJSON)
|
|
722
|
+
};
|
|
723
|
+
}
|
|
724
|
+
function AgentAnswerMetadataToJSON(json) {
|
|
725
|
+
return AgentAnswerMetadataToJSONTyped(json, false);
|
|
726
|
+
}
|
|
727
|
+
function AgentAnswerMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
728
|
+
if (value == null) {
|
|
729
|
+
return value;
|
|
730
|
+
}
|
|
731
|
+
return {
|
|
732
|
+
"citations": value["citations"] == null ? void 0 : value["citations"].map(AgentAnswerCitationToJSON),
|
|
733
|
+
"definitions": value["definitions"] == null ? void 0 : value["definitions"].map(AgentAnswerDefinitionToJSON),
|
|
734
|
+
"assumptions": value["assumptions"] == null ? void 0 : value["assumptions"].map(AgentAnswerAssumptionToJSON),
|
|
735
|
+
"methodology": value["methodology"] == null ? void 0 : value["methodology"].map(AgentAnswerMethodologyNoteToJSON)
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
|
|
572
739
|
// src/generated/models/WebResult.ts
|
|
573
740
|
function instanceOfWebResult(value) {
|
|
574
741
|
if (!("title" in value) || value["title"] === void 0) return false;
|
|
@@ -625,6 +792,7 @@ function AgentResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
625
792
|
"answer": json["answer"] == null ? void 0 : json["answer"],
|
|
626
793
|
"cards": json["cards"] == null ? void 0 : json["cards"].map(TakoCardFromJSON),
|
|
627
794
|
"web_results": json["web_results"] == null ? void 0 : json["web_results"].map(WebResultFromJSON),
|
|
795
|
+
"metadata": json["metadata"] == null ? void 0 : AgentAnswerMetadataFromJSON(json["metadata"]),
|
|
628
796
|
"request_id": json["request_id"] == null ? void 0 : json["request_id"]
|
|
629
797
|
};
|
|
630
798
|
}
|
|
@@ -639,6 +807,7 @@ function AgentResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
639
807
|
"answer": value["answer"],
|
|
640
808
|
"cards": value["cards"] == null ? void 0 : value["cards"].map(TakoCardToJSON),
|
|
641
809
|
"web_results": value["web_results"] == null ? void 0 : value["web_results"].map(WebResultToJSON),
|
|
810
|
+
"metadata": AgentAnswerMetadataToJSON(value["metadata"]),
|
|
642
811
|
"request_id": value["request_id"]
|
|
643
812
|
};
|
|
644
813
|
}
|
|
@@ -3082,6 +3251,26 @@ export {
|
|
|
3082
3251
|
APIErrorTypeFromJSONTyped,
|
|
3083
3252
|
APIErrorTypeToJSON,
|
|
3084
3253
|
APIErrorTypeToJSONTyped,
|
|
3254
|
+
AgentAnswerAssumptionFromJSON,
|
|
3255
|
+
AgentAnswerAssumptionFromJSONTyped,
|
|
3256
|
+
AgentAnswerAssumptionToJSON,
|
|
3257
|
+
AgentAnswerAssumptionToJSONTyped,
|
|
3258
|
+
AgentAnswerCitationFromJSON,
|
|
3259
|
+
AgentAnswerCitationFromJSONTyped,
|
|
3260
|
+
AgentAnswerCitationToJSON,
|
|
3261
|
+
AgentAnswerCitationToJSONTyped,
|
|
3262
|
+
AgentAnswerDefinitionFromJSON,
|
|
3263
|
+
AgentAnswerDefinitionFromJSONTyped,
|
|
3264
|
+
AgentAnswerDefinitionToJSON,
|
|
3265
|
+
AgentAnswerDefinitionToJSONTyped,
|
|
3266
|
+
AgentAnswerMetadataFromJSON,
|
|
3267
|
+
AgentAnswerMetadataFromJSONTyped,
|
|
3268
|
+
AgentAnswerMetadataToJSON,
|
|
3269
|
+
AgentAnswerMetadataToJSONTyped,
|
|
3270
|
+
AgentAnswerMethodologyNoteFromJSON,
|
|
3271
|
+
AgentAnswerMethodologyNoteFromJSONTyped,
|
|
3272
|
+
AgentAnswerMethodologyNoteToJSON,
|
|
3273
|
+
AgentAnswerMethodologyNoteToJSONTyped,
|
|
3085
3274
|
AgentApi,
|
|
3086
3275
|
AgentEffortLevel,
|
|
3087
3276
|
AgentEffortLevelFromJSON,
|
|
@@ -3359,6 +3548,11 @@ export {
|
|
|
3359
3548
|
canConsumeForm,
|
|
3360
3549
|
exists,
|
|
3361
3550
|
instanceOfAPIErrorType,
|
|
3551
|
+
instanceOfAgentAnswerAssumption,
|
|
3552
|
+
instanceOfAgentAnswerCitation,
|
|
3553
|
+
instanceOfAgentAnswerDefinition,
|
|
3554
|
+
instanceOfAgentAnswerMetadata,
|
|
3555
|
+
instanceOfAgentAnswerMethodologyNote,
|
|
3362
3556
|
instanceOfAgentEffortLevel,
|
|
3363
3557
|
instanceOfAgentOutputSettings,
|
|
3364
3558
|
instanceOfAgentResult,
|