加些说明

This commit is contained in:
ken 2025-04-04 15:51:56 +08:00
parent d86ca64fdf
commit 76cbd66e75

View File

@ -22,14 +22,25 @@ Agent 有三模式运行由plugin在request的model参数决定运行模
> 2. agent remote api就是agent调用openai或deepseek等外部服务的api > 2. agent remote api就是agent调用openai或deepseek等外部服务的api
> 3. plugin remote api由plugin调用openai或deepseek等外部服务的api > 3. plugin remote api由plugin调用openai或deepseek等外部服务的api
##### 1.1 安装与运行
##### 1.1 系统框架 ```shell
# linux
make
./build/bin/agent run
# windows
go build -o ../build/bin/agent.exe src/main.go
./build/bin/agent.exe run
```
##### 1.3系统框架
<img src="assets/架构.png" alt="drawing" style="width:700px;"/> <img src="assets/架构.png" alt="drawing" style="width:700px;"/>
ideservice 是须要plugin提供给agent的一些获取IDE信息的基础功能为穿透NAT需要websocket连接。 ideservice 是须要plugin提供给agent的一些获取IDE信息的基础功能为穿透NAT需要websocket连接。
##### 1.2 workflow ##### 1.4 workflow
```mermaid ```mermaid
sequenceDiagram sequenceDiagram
@ -42,7 +53,7 @@ sequenceDiagram
agent有可能会多次向ideservice询问更多的信息这对于plugin是透明的。 agent有可能会多次向ideservice询问更多的信息这对于plugin是透明的。
##### 1.3 Task Pool ##### 1.5 Task Pool
章节2中所有带cmd参数带前缀“exec”的request都是涉及LLM模型调用的。 章节2中所有带cmd参数带前缀“exec”的request都是涉及LLM模型调用的。
Agent用一个FIFO队列缓存所有用户的未处理任务当队列长度过大时agent会拒绝新来的任务。 Agent用一个FIFO队列缓存所有用户的未处理任务当队列长度过大时agent会拒绝新来的任务。