A generator for creating synthetic datapoints using self-instruct.It utilizes both a human-provided dataset (seed_dataset) and generated
machine instructions (machine_instructions) to produce new, synthetic
datapoints that include a question, a computed rationale (code), and a
final answer (from a verifier).
Generate rationale code (solution) for the given question.Parameters:
question (str): The question to be solved.
agent (Optional[ChatAgent]): The agent to use for generating the rationale. If None is provided, the default rationale agent will be used. (default: :obj:None)
support_human_dps (Optional[list[DataPoint]]): List of human examples to sample. (default: :obj:None)
Returns:str: The generated code solution as a string.