Test_Run_Builder utilities for test execution and management utilities.
Name | Type | Description |
---|---|---|
data | T | The data structure to use |
Name | Description |
---|---|
[TestRunBuilder](/sdk/python/references/test_runs/test_run_builder)[T] | The current TestRunBuilder instance for method chaining |
Name | Type | Description |
---|---|---|
data | DataValue[T] | The data to use |
Name | Description |
---|---|
[TestRunBuilder](/sdk/python/references/test_runs/test_run_builder)[T] | The current TestRunBuilder instance for method chaining |
Name | Type | Description |
---|---|---|
*evaluators | str | The evaluators to add |
Name | Description |
---|---|
[TestRunBuilder](/sdk/python/references/test_runs/test_run_builder)[T] | The current TestRunBuilder instance for method chaining |
Name | Type | Description |
---|---|---|
config | HumanEvaluationConfig | The human evaluation configuration to use |
Name | Description |
---|---|
[TestRunBuilder](/sdk/python/references/test_runs/test_run_builder)[T] | The current TestRunBuilder instance for method chaining |
Name | Type | Description |
---|---|---|
workflow_id | str | The ID of the workflow to use |
context_to_evaluate | Optional[str] | The context to evaluate for the workflow (variable name essentially). |
Name | Description |
---|---|
[TestRunBuilder](/sdk/python/references/test_runs/test_run_builder)[T] | The current TestRunBuilder instance for method chaining |
ValueError
- If a prompt version ID, prompt chain version ID or output function is already set for this run builderName | Type | Description |
---|---|---|
prompt_version_id | str | The ID of the prompt version to use |
context_to_evaluate | Optional[str] | The context to evaluate for the prompt (variable name essentially). |
Name | Description |
---|---|
[TestRunBuilder](/sdk/python/references/test_runs/test_run_builder)[T] | The current TestRunBuilder instance for method chaining |
ValueError
- If a workflow ID, prompt chain version ID or output function is already set for this run builderName | Type | Description |
---|---|---|
prompt_chain_version_id | str | The ID of the prompt chain version to use |
context_to_evaluate | Optional[str] | The context to evaluate for the prompt chain (variable name essentially). |
Name | Description |
---|---|
[TestRunBuilder](/sdk/python/references/test_runs/test_run_builder)[T] | The current TestRunBuilder instance for method chaining |
ValueError
- If a workflow ID, prompt version ID or output function is already set for this run builderName | Type | Description |
---|---|---|
output_function | Callable[[T], Union[[YieldedOutput](/sdk/python/references/models/test_run), Awaitable[YieldedOutput]]] | The output function to use |
Name | Description |
---|---|
[TestRunBuilder](/sdk/python/references/test_runs/test_run_builder)[T] | The current TestRunBuilder instance for method chaining |
ValueError
- If a workflow ID, prompt chain version ID or prompt version ID is already set for this run builderName | Type | Description |
---|---|---|
concurrency | int | The concurrency level to use |
Name | Description |
---|---|
[TestRunBuilder](/sdk/python/references/test_runs/test_run_builder)[T] | The current TestRunBuilder instance for method chaining |
Name | Type | Description |
---|---|---|
logger | TestRunLogger | The logger to use |
Name | Description |
---|---|
[TestRunBuilder](/sdk/python/references/test_runs/test_run_builder)[T] | The current TestRunBuilder instance for method chaining |
Name | Type | Description |
---|---|---|
timeout_in_minutes | Optional[int] | The timeout in minutes. Defaults to 10. |
Name | Description |
---|---|
[RunResult](/sdk/python/references/models/test_run) | The result of the test run |