2 分•作者: markl42•6 个月前
返回首页
最新
32 分•作者: jesseduffield•6 个月前
1 分•作者: gnabgib•6 个月前
1 分•作者: QueensGambit•6 个月前
1 分•作者: neustradamus•6 个月前
1 分•作者: haltingproblem•6 个月前
1 分•作者: psalminen•6 个月前
1 分•作者: toomanyrichies•6 个月前
1 分•作者: gnabgib•6 个月前
1 分•作者: maheshvaikri99•6 个月前
MAPLE (多智能体协议语言引擎) - 一种用于多智能体 AI 系统的通信协议。
我正在填补的空白:MCP 处理工具,A2A 处理智能体发现,但两者都不允许智能体指定资源需求。
有了 MAPLE,一个智能体可以说:“我需要 4GB GPU,8GB RAM,在 30 秒内完成。”
主要特点:
* 资源感知消息传递(CPU、GPU、内存、网络、截止时间)
* 用于安全智能体间通信的链接识别机制 (LIM)
* 分布式状态同步
* 类型安全的错误处理
* 适用于任何 LLM/框架
PyPI 上有 900+ 次下载。
pip install maple-oss
GitHub:[https://github.com/maheshvaikri-code/maple-oss](https://github.com/maheshvaikri-code/maple-oss)
独立开发者。 正在寻求构建多智能体系统的任何人的反馈。
1 分•作者: polyGuest•6 个月前
1 分•作者: apelapan•6 个月前
19 分•作者: michaelsbradley•6 个月前
1 分•作者: kaashmonee•6 个月前
1 分•作者: jhavenz•6 个月前
我最近发布了 ripht-php-sapi 的初始 RC 版本。<p>这是针对 PHP 嵌入式 SAPI 的安全 Rust 绑定。它允许你从 Rust 执行 PHP 脚本,而无需接触不安全代码。<p>```rust
use ripht_php_sapi::prelude::*;<p>let sapi = RiphtSapi::instance();
let script = std::path::Path::new("index.php");<p>let req = WebRequest::get()
.with_query_param("id", "123")
.with_header("User-Agent", "Ripht")
.build(&script)
.expect("build failed");<p>let res = sapi.execute(req).expect("execution failed");<p>assert_eq!(res.status_code(), 200);
println!("{}", res.body_string());
```<p>我添加的一个小福利是,你可以钩入 SAPI 的生命周期,以拦截输出、错误、日志记录等。<p>```rust
struct StreamHooks;
impl ExecutionHooks for StreamHooks {
fn on_output(&mut self, data: &[u8]) -> OutputAction {
// 在这里处理 PHP 输出...<p><pre><code> OutputAction::Done
}</code></pre>
}
```<p>我计划构建一些基于 Rust 的高级 PHP 工具,但需要一个众所周知的干净的开始。我也没有看到任何现有的 Rust 的 SAPI 实现,所以大约 3 个月后,它就诞生了。其中很大一部分是研究。令人惊讶的是,现有的教育材料是多么稀缺和陈旧。所以,幸好有 20 多年的经过实战检验的源代码可以学习!感谢 Nginx unit、php/php-fpm、apache 和 Frankenphp。能够比较和对比各种实现非常有帮助。如果你对 PHP SAPI 内部结构和 Rust FFI 的内容感兴趣,也可以衡量一下兴趣:https://www.patreon.com/posts/gauging-php-sapi-146489023<p>GitHub:
https://github.com/jhavenz/ripht-php-sapi<p>Crate:
https://crates.io/crates/ripht-php-sapi<p>欢迎反馈
1 分•作者: kaycebasques•6 个月前
2 分•作者: szines•6 个月前
1 分•作者: 2OEH8eoCRo0•6 个月前
1 分•作者: Austin_Conlon•6 个月前
1 分•作者: simonpure•6 个月前