@doclo/flows 0.1.6 → 0.1.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.d.ts +8 -0
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -605,6 +605,9 @@ type ParseConfig = {
|
|
|
605
605
|
onTie?: 'random' | 'fail' | 'retry';
|
|
606
606
|
};
|
|
607
607
|
maxTokens?: number;
|
|
608
|
+
promptRef?: string;
|
|
609
|
+
promptVariables?: Record<string, any>;
|
|
610
|
+
additionalInstructions?: string;
|
|
608
611
|
};
|
|
609
612
|
type ExtractConfig = {
|
|
610
613
|
type: 'extract';
|
|
@@ -621,6 +624,9 @@ type ExtractConfig = {
|
|
|
621
624
|
max_tokens?: number;
|
|
622
625
|
};
|
|
623
626
|
maxTokens?: number;
|
|
627
|
+
promptRef?: string;
|
|
628
|
+
promptVariables?: Record<string, any>;
|
|
629
|
+
additionalInstructions?: string;
|
|
624
630
|
};
|
|
625
631
|
type SplitConfig = {
|
|
626
632
|
type: 'split';
|
|
@@ -656,6 +662,8 @@ type CategorizeConfig = {
|
|
|
656
662
|
onTie?: 'random' | 'fail' | 'retry';
|
|
657
663
|
};
|
|
658
664
|
promptRef?: string;
|
|
665
|
+
promptVariables?: Record<string, any>;
|
|
666
|
+
additionalInstructions?: string;
|
|
659
667
|
maxTokens?: number;
|
|
660
668
|
};
|
|
661
669
|
type TriggerConfig = {
|
package/dist/index.js
CHANGED
|
@@ -2036,7 +2036,10 @@ function createNodeFromConfig(nodeType, config, providers, flows) {
|
|
|
2036
2036
|
return parse({
|
|
2037
2037
|
provider,
|
|
2038
2038
|
consensus: cfg.consensus,
|
|
2039
|
-
maxTokens: cfg.maxTokens
|
|
2039
|
+
maxTokens: cfg.maxTokens,
|
|
2040
|
+
promptRef: cfg.promptRef,
|
|
2041
|
+
promptVariables: cfg.promptVariables,
|
|
2042
|
+
additionalInstructions: cfg.additionalInstructions
|
|
2040
2043
|
});
|
|
2041
2044
|
}
|
|
2042
2045
|
case "extract": {
|
|
@@ -2046,7 +2049,10 @@ function createNodeFromConfig(nodeType, config, providers, flows) {
|
|
|
2046
2049
|
schema: cfg.schema,
|
|
2047
2050
|
consensus: cfg.consensus,
|
|
2048
2051
|
reasoning: cfg.reasoning,
|
|
2049
|
-
maxTokens: cfg.maxTokens
|
|
2052
|
+
maxTokens: cfg.maxTokens,
|
|
2053
|
+
promptRef: cfg.promptRef,
|
|
2054
|
+
promptVariables: cfg.promptVariables,
|
|
2055
|
+
additionalInstructions: cfg.additionalInstructions
|
|
2050
2056
|
});
|
|
2051
2057
|
}
|
|
2052
2058
|
case "split": {
|
|
@@ -2068,7 +2074,10 @@ function createNodeFromConfig(nodeType, config, providers, flows) {
|
|
|
2068
2074
|
provider,
|
|
2069
2075
|
categories: cfg.categories,
|
|
2070
2076
|
consensus: cfg.consensus,
|
|
2071
|
-
maxTokens: cfg.maxTokens
|
|
2077
|
+
maxTokens: cfg.maxTokens,
|
|
2078
|
+
promptRef: cfg.promptRef,
|
|
2079
|
+
promptVariables: cfg.promptVariables,
|
|
2080
|
+
additionalInstructions: cfg.additionalInstructions
|
|
2072
2081
|
});
|
|
2073
2082
|
}
|
|
2074
2083
|
default:
|