package com.pavis.admin.aigc.service;

import top.continew.starter.extension.crud.service.BaseService;
import com.pavis.admin.aigc.model.query.AgentPlanStepQuery;
import com.pavis.admin.aigc.model.req.AgentPlanStepReq;
import com.pavis.admin.aigc.model.resp.AgentPlanStepDetailResp;
import com.pavis.admin.aigc.model.resp.AgentPlanStepResp;

import java.util.List;

/**
 * 智能体规划步骤记录业务接口
 *
 * @author semi
 * @since 2025/05/29 12:50
 */
public interface AgentPlanStepService extends BaseService<AgentPlanStepResp, AgentPlanStepDetailResp, AgentPlanStepQuery, AgentPlanStepReq> {

    /**
     * 批量存储或更新计划步骤信息
     *
     * @param respList 计划步骤信息
     * @return 是存储成功
     */
    boolean saveOrUpdateBatch(List<AgentPlanStepResp> respList);

    /**
     * 根据计划id获取 计划步骤信息
     *
     * @param planId 计划id
     * @return 计划步骤信息
     */
    List<AgentPlanStepResp> getByPlanId(Long planId);
}