MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / fillNoChoiceRequiredParams

Function fillNoChoiceRequiredParams

lib/actionUtils.ts:74–82  ·  view source on GitHub ↗
(paramsFromAI: Params, schema: OpenAPIV3_1.SchemaObject)

Source from the content-addressed store, hash-verified

72}
73
74export function fillNoChoiceRequiredParams<
75 Params extends Record<string, unknown>,
76 Output extends Params,
77>(paramsFromAI: Params, schema: OpenAPIV3_1.SchemaObject): Output {
78 /** Combines the parameters from the AI with parameters where no
79 * choice is required by the AI. **/
80 const noChoiceParams = getFilledNoChoiceRequiredFields(schema);
81 return combineParams(paramsFromAI, noChoiceParams);
82}
83
84interface Params {
85 [key: string | number]: any;

Callers 2

constructHttpRequestFunction · 0.90

Calls 2

combineParamsFunction · 0.70

Tested by

no test coverage detected