reasoning_agent
autogen.agentchat.contrib.reasoning_agent.extract_sft_dataset
extract_sft_dataset
Extract the best trajectory or multiple equally good trajectories for SFT training.
Name | Description |
---|---|
root | The root node of the tree. Type: ThinkNode |
Type | Description |
---|---|
list[dict[str, typing.Any]] | List[Dict]: List of best trajectories, each one is a pair of instruction and response. |