mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-11 07:04:58 -05:00
* improvement(tools): use react query to fetch child workflow schema, avoid refetch and duplicated utils * consolidated utils & testing mocks
29 lines
753 B
TypeScript
29 lines
753 B
TypeScript
/**
|
|
* Builder classes for fluent test data construction.
|
|
*
|
|
* Use builders when you need fine-grained control over complex objects.
|
|
*
|
|
* @example
|
|
* ```ts
|
|
* import { WorkflowBuilder, ExecutionContextBuilder } from '@sim/testing/builders'
|
|
*
|
|
* // Build a workflow
|
|
* const workflow = WorkflowBuilder.linear(3).build()
|
|
*
|
|
* // Build an execution context
|
|
* const ctx = ExecutionContextBuilder.forWorkflow('my-wf')
|
|
* .withBlockState('block-1', { output: 'hello' })
|
|
* .build()
|
|
* ```
|
|
*/
|
|
|
|
export { ExecutionContextBuilder } from './execution.builder'
|
|
export {
|
|
createErrorFetch,
|
|
createToolMockFetch,
|
|
type TestToolConfig,
|
|
type ToolResponse,
|
|
ToolTester,
|
|
} from './tool-tester.builder'
|
|
export { WorkflowBuilder } from './workflow.builder'
|