package com.pavis.admin.aigc.mapper;

import com.pavis.admin.aigc.model.entity.AgentToolDO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import top.continew.starter.data.mp.base.BaseMapper;

import java.util.List;

/**
 * 智能体和工具关联 Mapper
 *
 * @author semi
 * @since 2025/05/26 17:28
 */
public interface AgentToolMapper extends BaseMapper<AgentToolDO> {

    /**
     * 根据智能体id获取工具id列表
     *
     * @param agentId 智能体id
     * @return 工具id列表
     */
    @Select("SELECT tool_id FROM aigc_agent_tool WHERE agent_id = #{agentId}")
    List<Long> selectToolIdListByAgentId(@Param("agentId") Long agentId);
}