Translation(model translation, not the source's own text)
文章标题:Agentic AI 原生操作系统 Veda 推出完整 Agentic 模式
正文:
部分内容已隐藏
CONTRIBUTING.md
- 显示源文件差异
- 显示富文本差异
| 原始文件行号 | 差异行号 | 差异行变更 |
|---|---|---|
@@ -152,7 +152,8 @@ the scripts, whose language automation/source/script.rs documents. | ||
| 152 | 152 | 句子;表格用于参考;命令、代码和路径使用反引号; |
| 153 | 153 | 使用链接而非重复;不使用表情符号。 |
| 154 | 154 | - 用其脚本重拍图片。 README 的截图来自 |
| 155 | - documentation/screenshots.vts ,Interceptor 的来自 | |
| 155 | + documentation/screenshots.vts ,开头展示的两张(Desktop | |
| 156 | + Mode 和 Agentic Mode)来自 documentation/modes.vts ,Interceptor 的来自 | |
| 156 | 157 | documentation/interceptor.vts 。 |
| 157 | 158 | |
| 158 | 159 | ## Commits |
Cargo.lock
README.md
- 显示源文件差异
- 显示富文本差异
文章标题:Agentic AI Native OS Veda Comes with Full Agentic Mode
正文:
| 原始文件行号 | 差异行号 | 差异变更 |
|---|---|---|
| @@ -7,17 +7,22 @@ | ||
| 7 | 7 | |
| 8 | 8 | The Agentic-Native Operating System |
| 9 | 9 | |
| 10 | - 一个用 Rust 编写的操作系统,内置语音 agent。 | |
| 10 | + 一个用 Rust 编写的操作系统,内置 agent:可以像桌面系统一样使用,也可以把屏幕交给它。 | |
| 11 | 11 | |
| 12 | 12 | [ ![ License: GPL-3.0-only ] ( https://img.shields.io/badge/license-GPL--3.0--only-blue )] ( LICENSE ) |
| 13 | 13 | [ ![ Written in Rust ] ( https://img.shields.io/badge/written%20in-Rust-b7410e?logo=rust&logoColor=white )] ( documentation/RUST.md ) |
| 14 | 14 | [ ![ Runs on x86-64 PCs and QEMU, and on ARM64 in QEMU ] ( https://img.shields.io/badge/runs%20on-x86--64%20PCs%20%26%20QEMU%2C%20ARM64%20in%20QEMU-555 )] ( #quick-start ) |
| 15 | 15 | |
| 16 | - [ Screenshots ] ( #screenshots ) · [ Quick start ] ( #quick-start ) · [ Make an app agentic ] ( #make-an-app-agentic ) · [ Architecture ] ( #architecture ) · [ Documentation ] ( #documentation ) | |
| 16 | + [ Two modes ] ( #two-modes ) · [ Screenshots ] ( #screenshots ) · [ Quick start ] ( #quick-start ) · [ Make an app agentic ] ( #make-an-app-agentic ) · [ Architecture ] ( #architecture ) · [ Documentation ] ( #documentation ) | |
| 17 | 17 | |
| 18 | 18 | </ div > |
| 19 | 19 | |
| 20 | - [ ![ Veda in one minute, on YouTube: a Deepgram key entered, the voice agent waking, and the agent at work in Photos, Music, the Text Editor and Interceptor ] ( documentation/images/demo.jpg )] ( https://www.youtube.com/watch?v=gXIS-6cVNAk ) | |
| 20 | + < table > | |
| 21 | + < tr > | |
| 22 | + <td width="50%"><p align="center"><b>Desktop Mode</b><br>你在窗口中工作;agent 在其角落提供协助。</p><img src="documentation/images/desktop.png" alt="Veda in Desktop Mode: the wallpaper, desktop icons and the taskbar, with the agent's window open and thinking over live previews of the Text Editor, where it wrote a Rust program, and Photos, both working in the background"></td> | |
| 23 | + <td width="50%"><p align="center"><b>Agentic Mode</b><br>你说出或输入你的需求;agent 掌控屏幕。</p><img src="documentation/images/agentic.png" alt="Veda in Agentic Mode, with the same request: at the left the agent's ring, the request typed to it, each thing it did as a ticked step and its answer, over the field to write in; at the right the stage, with the Text Editor live and large, showing the Rust program it wrote, and Photos under it; a shelf of both at the foot, and the time, network, sound, power and the way back to the desktop at the top right"></td> | |
| 24 | + </ tr > | |
| 25 | + </ table > | |
| 21 | 26 | |
| 22 | 27 | 说 “Hey Veda,把我的壁纸换成沙丘” 然后就完成了。agent |
| 23 | 28 | 通过与你键盘相同的代码在每个应用程序中工作,并且 |
| @@ -38,12 +43,28 @@ 以及应用程序。 | ||
| 38 | 43 | </ tr > |
| 39 | 44 | </ table > |
| 40 | 45 |
automation/source/agentsim.rs
文章标题:Agentic AI 原生操作系统 Veda 携完整 Agentic 模式登场
正文:
| 原始文件行号 | Diff 行号 | Diff 行变更 |
|---|---|---|
| @@ -9,7 +9,10 @@ | ||
| 9 | 9 | //! Deepgram:它用 Welcome 和 |
| 10 | 10 | //! SettingsApplied 回应 Settings 消息,然后按脚本所说执行——发送一个函数 |
| 11 | 11 | //! 调用并收集其结果、播放语音、报告用户开始 |
| 12 | - //! 说话——同时记录 agent 发送的一切。 | |
| 12 | + //! 说话——同时记录 agent 发送的一切。对于 agent 作为用户 | |
| 13 | + //! 给出的轮次(InjectUserMessage),它会像 Deepgram 那样 | |
| 14 | + //! 进行报告,就如同它听到的一样:用户开始说话,然后是 | |
| 15 | + //! 该轮次的文字。对该轮次作出回答由脚本决定。 | |
| 13 | 16 | //! |
| 14 | 17 | //! 它还代替 Deepgram 的流式语音识别,agent 借助它在 |
| 15 | 18 | //! 休眠时听到自己的名字:由脚本决定什么 |
| @@ -341,6 +344,13 @@ fn receive(socket: &Socket) -> Result<Option<Message>> { | ||
| 341 | 344 | } |
| 342 | 345 | } |
| 343 | 346 | |
| 347 | + /// 来自 agent 的消息作为用户所说给出的那个轮次 | |
| 348 | + /// (InjectUserMessage),如果它确实是的话。 | |
| 349 | + fn given_turn ( message : & str ) -> Option < String > { | |
| 350 | + let v : Value = serde_json :: from_str ( message ) . ok ( ) ? ; | |
| 351 | + ( v [ "type" ] == "InjectUserMessage" ) . then ( ││ v [ "content" ] . as_str ( ) . map ( str :: to_string ) ) ? | |
| 352 | + } | |
| 353 | + | |
| 344 | 354 | /// 来自 agent 的一条连接:先是升级(带 Deepgram 的 token |
| 345 | 355 | /// 认证),然后是按其路径所请求的对话或语音 |
| 346 | 356 | /// 识别。 |
| @@ -380,6 +390,11 @@ fn serve(stream: TcpStream, shared: &Shared) -> Result { | ||
| 380 | 390 | send ( & socket , Message :: text ( r#"{"type":"SettingsApplied"}"# ) ) ? ; |
| 381 | 391 | conversation . configured . store ( true , Ordering :: SeqCst ) ; |
| 382 | 392 | } |
automation/source/automate.rs
| 原始文件行号 | Diff 行号 | Diff 行变更 |
|---|---|---|
| @@ -688,6 +688,11 @@ fn run_step(s: &mut Session, x: &mut Extras, step: &Step, disk: &Path) -> Result | ||
| 688 | 688 | } |
| 689 | 689 | Step :: AgentSpeak ( secs ) => x . agent ( ) ? . speak ( * secs ) ? , |
| 690 | 690 | Step :: AgentInterrupt => x . agent ( ) ? . send_json ( r#"{"type":"UserStartedSpeaking"}"# ) ? , |
| 691 | + Step :: AgentText { agent , text } => { | |
| 692 | + let role = if * agent { "assistant" } else { "user" } ; | |
| 693 | + let said = serde_json :: json! ( { "type" : "ConversationText" , "role" : role , "content" : text } ) ; | |
| 694 | + x . agent ( ) ? . send_json ( & said . to_string ( ) ) ? | |
| 695 | + } | |
| 691 | 696 | Step :: AgentHear { text , timeout } => x . agent ( ) ? . hear ( text , * timeout ) ? , |
| 692 | 697 | Step :: AgentListens ( n ) => { |
| 693 | 698 | let opened = x . agent ( ) ? . listen_connections ( ) ; |
automation/source/runner.rs
| 原始文件行号 | Diff 行号 | Diff 行变更 |
|---|---|---|
| @@ -83,6 +83,7 @@ const HOST_TESTED: &[(&str, &[&str])] = &[ | ||
| 83 | 83 | ( "browser" , & [ ] ) , |
| 84 | 84 | ( "compositor" , & [ ] ) , |
| 85 | 85 | ( "lock" , & [ ] ) , |
| 86 | + ( "shell" , & [ ] ) , | |
| 86 | 87 | ( "screensaver" , & [ ] ) , |
| 87 | 88 | ( "shell-common" , & [ ] ) , |
| 88 | 89 | ( "filesystem" , & [ ] ) , |
automation/source/script.rs
文章标题:Agentic AI 原生操作系统 Veda 带来完整 Agentic 模式
正文:
| 原始文件行号 | Diff 行号 | Diff 行变更 |
|---|---|---|
| @@ -53,6 +53,7 @@ | ||
| 53 | 53 | //! agent-expect "InjectUserMessage" 30 # 等待直到 agent 发送一条包含该文本的消息 |
| 54 | 54 | //! agent-speak 3 # 模拟 agent 讲话 3 秒(类似人声的嗡鸣) |
| 55 | 55 | //! agent-interrupt # 模拟识别器听到用户开始说话 |
| 56 | + //! agent-text user "Play some music" # 模拟服务用文字报告用户(或 agent)说了什么 | |
| 56 | 57 | //! agent-audio 3200 # 除非 agent 至少流式传输了这么多字节的麦克风音频,否则失败 |
| 57 | 58 | //! agent-hear "Hey Veda, hello" 30 # 模拟识别器在 agent 向其流式传输语音后听到此内容 |
| 58 | 59 | //! agent-hear "Hey Veda. │ Hi" 30 # " │ " 将其拆分为相隔 0.3 秒的最终转录(最后一个结束话语) |
| @@ -361,6 +362,11 @@ pub enum Step { | ||
| 361 | 362 | } , |
| 362 | 363 | AgentSpeak ( f64 ) , |
| 363 | 364 | AgentInterrupt , |
| 365 | + /// 以文字形式表示说了什么:由 agent(true)或用户。 | |
| 366 | + AgentText { | |
| 367 | + agent : bool , | |
| 368 | + text : String , | |
| 369 | + } , | |
| 364 | 370 | AgentHear { |
| 365 | 371 | text : String , |
| 366 | 372 | timeout : Duration , |
| @@ -445,6 +451,7 @@ impl Script { | ||
| 445 | 451 | │ Step :: AgentExpect { .. } |
| 446 | 452 | │ Step :: AgentSpeak ( _ ) |
| 447 | 453 | │ Step :: AgentInterrupt |
| 454 | + │ Step :: AgentText { .. } | |
| 448 | 455 | │ Step :: AgentHear { .. } |
| 449 | 456 | │ Step :: AgentListens ( _ ) |
| 450 | 457 | │ Step :: AgentListensAtMost ( _ ) |
| @@ -759,6 +766,14 @@ impl Line { | ||
| 759 | 766 | "agent-expect" => Step :: AgentExpect { text : self . text ( "text" ) ? , timeout : self . seconds ( Some ( 60.0 ) ) ? } , |