async def reformat_into_points(model, content) -> List[data_model.BulletPoint]: class Case(BaseModel): points: List[data_model.BulletPoint] format_prompt = f""" Convert the information below into the desired format. {content} """ formatter_agent = create_agent( model, response_format=ToolStrategy(Case) ) result = await formatter_agent.ainvoke( { "messages": [ {"role": "user", "content": format_prompt} ] } ) return result["structured_response"].points