cURL
Creates a new RAG Agent with initial status
The fields included in
draft and version beta.
Creating an Agent requires the “Knowledge Base — Create” permission.
agent_config Structure
The fields included in agent_config depend on the value of agent_scene:
- Chat scenario:
agent_policy,agent_model,enable_session_file,enable_refusal,enable_anti_leak,enable_rich_text,enable_citation,temperature,max_num_llm_calls,max_completion_tokens,session_file_max_parse_length,kb_search_configs - Search scenario:
agent_policy,enable_kb_router,kb_router_model,rerank_top_n,kb_search_configs,hybrid_rerank
kb_search_configs[] element: id, weight, credibility_level, dense_similarity_top_k, sparse_similarity_top_k, rerank_top_n, rerank_min_score, rerank, search_filters
Fields such as
name, desc, and knowledge_type are automatically populated by the system from the knowledge base; any values provided in the request will be ignored and overwritten.Authorizations
string
header
required
DashScope API Key,在控制台 API Key 页面 获取。