|  |  |  | 
|---|
|  |  |  | //     { params } | 
|---|
|  |  |  | //   ); | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | // 获取智能助手列表 | 
|---|
|  |  |  | // export function getDialogListApi() { | 
|---|
|  |  |  | //   return axios.get<ISessionListResult>('/api/dialog/list'); | 
|---|
|  |  |  | // } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 聊天 | 
|---|
|  |  |  | // export function chatApi(data: { conversation_id: string; messages: string }) { | 
|---|
|  |  |  | //   return axios.post<ISessionListResult>( | 
|---|
|  |  |  | //     '/api/tech/cloudminds/query?modeltype=localragflow', | 
|---|
|  |  |  | //     data | 
|---|
|  |  |  | //   ); | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | export function chatAgentApi(data) { | 
|---|
|  |  |  | return axios.post( | 
|---|
|  |  |  | '/api/v1/canvas/completion', | 
|---|
|  |  |  | data | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 获取会话详情 | 
|---|
|  |  |  | export function getAgentSessionDetailsApi(id: string) { | 
|---|
|  |  |  | 
|---|
|  |  |  | {} | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 获取智能助手列表 | 
|---|
|  |  |  | // export function getDialogListApi() { | 
|---|
|  |  |  | //   return axios.get<ISessionListResult>('/api/dialog/list'); | 
|---|
|  |  |  | // } | 
|---|
|  |  |  | // 设置 | 
|---|
|  |  |  | export function agentSetApi(data) { | 
|---|
|  |  |  | return axios.post( | 
|---|
|  |  |  | '/api/v1/canvas/set', | 
|---|
|  |  |  | data | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // 重置 | 
|---|
|  |  |  | export function agentResetApi(data) { | 
|---|
|  |  |  | return axios.post( | 
|---|
|  |  |  | '/api/v1/canvas/reset', | 
|---|
|  |  |  | data | 
|---|
|  |  |  | ); | 
|---|
|  |  |  | } | 
|---|