d3f3f991a5
This PR allows to infer the schema of the current item of an iterator step: - iterator step receive a variable - added an util that navigate to the array in schema - navigateOutputSchemaProperty - use the array value in schema to generate a new schema - used the existing getFunctionOutputSchema that I renamed and moved to twenty-shared Also cleaned a bit the existing schema for AI. Before https://github.com/user-attachments/assets/9767fc89-3524-4bfb-b1ab-8abe92084767 After https://github.com/user-attachments/assets/3650c1d2-14f2-44f9-b10c-e649fe04128d
10 lines
284 B
TypeScript
10 lines
284 B
TypeScript
export type {
|
|
BaseOutputSchemaV2,
|
|
Leaf,
|
|
LeafType,
|
|
Node,
|
|
NodeType,
|
|
} from './types/base-output-schema.type';
|
|
export { buildOutputSchemaFromValue } from './utils/buildOutputSchemaFromValue';
|
|
export { navigateOutputSchemaProperty } from './utils/navigateOutputSchemaProperty';
|