Newshot

智能体 AI 原生操作系统 Veda 携完整智能体模式登场

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.
152152句子;表格用于参考;命令、代码和路径使用反引号;
153153使用链接而非重复;不使用表情符号。
154154- 用其脚本重拍图片。 README 的截图来自
155- documentation/screenshots.vts ,Interceptor 的来自
155+ documentation/screenshots.vts ,开头展示的两张(Desktop
156+ Mode 和 Agentic Mode)来自 documentation/modes.vts ,Interceptor 的来自
156157 documentation/interceptor.vts 。
157158
158159## Commits

‎Cargo.lock‎

‎README.md‎

  • 显示源文件差异
  • 显示富文本差异

文章标题:Agentic AI Native OS Veda Comes with Full Agentic Mode

正文:

原始文件行号差异行号差异变更
@@ -7,17 +7,22 @@
77
88 The Agentic-Native Operating System
99
10- 一个用 Rust 编写的操作系统,内置语音 agent。
10+ 一个用 Rust 编写的操作系统,内置 agent:可以像桌面系统一样使用,也可以把屏幕交给它。
1111
1212[ ![ License: GPL-3.0-only ] ( https://img.shields.io/badge/license-GPL--3.0--only-blue )] ( LICENSE )
1313[ ![ Written in Rust ] ( https://img.shields.io/badge/written%20in-Rust-b7410e?logo=rust&logoColor=white )] ( documentation/RUST.md )
1414[ ![ 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 )
1515
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 )
1717
1818</ div >
1919
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 >
2126
2227说 “Hey Veda,把我的壁纸换成沙丘” 然后就完成了。agent
2328通过与你键盘相同的代码在每个应用程序中工作,并且
@@ -38,12 +43,28 @@ 以及应用程序。
3843</ tr >
3944</ table >
4045

‎automation/source/agentsim.rs‎

文章标题:Agentic AI 原生操作系统 Veda 携完整 Agentic 模式登场

正文:

原始文件行号Diff 行号Diff 行变更
@@ -9,7 +9,10 @@
99//! Deepgram:它用 Welcome 和
1010//! SettingsApplied 回应 Settings 消息,然后按脚本所说执行——发送一个函数
1111//! 调用并收集其结果、播放语音、报告用户开始
12- //! 说话——同时记录 agent 发送的一切。
12+ //! 说话——同时记录 agent 发送的一切。对于 agent 作为用户
13+ //! 给出的轮次(InjectUserMessage),它会像 Deepgram 那样
14+ //! 进行报告,就如同它听到的一样:用户开始说话,然后是
15+ //! 该轮次的文字。对该轮次作出回答由脚本决定。
1316//!
1417//! 它还代替 Deepgram 的流式语音识别,agent 借助它在
1518//! 休眠时听到自己的名字:由脚本决定什么
@@ -341,6 +344,13 @@ fn receive(socket: &Socket) -> Result<Option<Message>> {
341344}
342345}
343346
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+
344354/// 来自 agent 的一条连接:先是升级(带 Deepgram 的 token
345355/// 认证),然后是按其路径所请求的对话或语音
346356/// 识别。
@@ -380,6 +390,11 @@ fn serve(stream: TcpStream, shared: &Shared) -> Result {
380390send ( & socket , Message :: text ( r#"{"type":"SettingsApplied"}"# ) ) ? ;
381391conversation . configured . store ( true , Ordering :: SeqCst ) ;
382392}

‎automation/source/automate.rs‎

原始文件行号Diff 行号Diff 行变更
@@ -688,6 +688,11 @@ fn run_step(s: &mut Session, x: &mut Extras, step: &Step, disk: &Path) -> Result
688688}
689689Step :: AgentSpeak ( secs ) => x . agent ( ) ? . speak ( * secs ) ? ,
690690Step :: 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+ }
691696Step :: AgentHear { text , timeout } => x . agent ( ) ? . hear ( text , * timeout ) ? ,
692697Step :: AgentListens ( n ) => {
693698let opened = x . agent ( ) ? . listen_connections ( ) ;

‎automation/source/runner.rs‎

原始文件行号Diff 行号Diff 行变更
@@ -83,6 +83,7 @@ const HOST_TESTED: &[(&str, &[&str])] = &[
8383( "browser" , & [ ] ) ,
8484( "compositor" , & [ ] ) ,
8585( "lock" , & [ ] ) ,
86+ ( "shell" , & [ ] ) ,
8687( "screensaver" , & [ ] ) ,
8788( "shell-common" , & [ ] ) ,
8889( "filesystem" , & [ ] ) ,

‎automation/source/script.rs‎

文章标题:Agentic AI 原生操作系统 Veda 带来完整 Agentic 模式

正文:

原始文件行号Diff 行号Diff 行变更
@@ -53,6 +53,7 @@
5353//! agent-expect "InjectUserMessage" 30 # 等待直到 agent 发送一条包含该文本的消息
5454//! agent-speak 3 # 模拟 agent 讲话 3 秒(类似人声的嗡鸣)
5555//! agent-interrupt # 模拟识别器听到用户开始说话
56+ //! agent-text user "Play some music" # 模拟服务用文字报告用户(或 agent)说了什么
5657//! agent-audio 3200 # 除非 agent 至少流式传输了这么多字节的麦克风音频,否则失败
5758//! agent-hear "Hey Veda, hello" 30 # 模拟识别器在 agent 向其流式传输语音后听到此内容
5859//! agent-hear "Hey Veda. │ Hi" 30 # " │ " 将其拆分为相隔 0.3 秒的最终转录(最后一个结束话语)
@@ -361,6 +362,11 @@ pub enum Step {
361362} ,
362363AgentSpeak ( f64 ) ,
363364AgentInterrupt ,
365+ /// 以文字形式表示说了什么:由 agent(true)或用户。
366+ AgentText {
367+ agent : bool ,
368+ text : String ,
369+ } ,
364370AgentHear {
365371text : String ,
366372timeout : Duration ,
@@ -445,6 +451,7 @@ impl Script {
445451│ Step :: AgentExpect { .. }
446452│ Step :: AgentSpeak ( _ )
447453│ Step :: AgentInterrupt
454+ │ Step :: AgentText { .. }
448455│ Step :: AgentHear { .. }
449456│ Step :: AgentListens ( _ )
450457│ Step :: AgentListensAtMost ( _ )
@@ -759,6 +766,14 @@ impl Line {
759766"agent-expect" => Step :: AgentExpect { text : self . text ( "text" ) ? , timeout : self . seconds ( Some ( 60.0 ) ) ? } ,

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by HN AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗