(openai<1) Select a response from a list of responses for the function completion task (using generated assertions), and/or evaluate if the task is successful using a gold test. Parameters:
Name
Description
responses
The list of responses.
Type: list[str]
definition
The input definition.
Type: str
test
The test code.
Type: str | None
Default: None
entry_point
The name of the function.
Type: str | None
Default: None
assertions
The assertion code which serves as a filter of the responses, or an assertion generator.
When provided, only the responses that pass the assertions will be considered for the actual test (if provided).