参考agent聊天agentchat.contribagentchat.contrib.代理评估任务On this pageagentchat.contrib.agent_eval.task任务 class Task(BaseModel) 表示代理完成任务的任务类,包括用于标准生成的示例代理执行。 parse_json_str @staticmethoddef parse_json_str(task: str) 从json对象创建一个Task对象。 参数: json_data dict - 代表任务的字典。 返回: Task - 一个表示JSON任务信息的Task对象。