wha582's recent timeline updates
wha582

wha582

V2EX member #650879, joined on 2023-09-25 21:37:46 +08:00
Today's activity rank 1401
wha582's recent replies
想问一下,
tura 是如何处理 schema 重试的,
patch 复杂 markdown 的时候格式出问题的概率大吗,
另外代码里有强制 dsl 输出的 command 数量吗,不强制会怎么样,
此外试过只给一个单纯的 seq(按序执行 command) 看看效果如何吗
(话说回来 DeepSeek 测试过吗)
附带一个小型的代码 demo

```typescript
import {
createAgent,
equipSystem,
equipInstruction,
promptAgent,
} from "@rejelly/core";
import { z } from "zod";

const Reviewer = createAgent({
id: "code-reviewer",
model,
handler: async ({ code }: { code: string }) => {
equipSystem("You are a strict TypeScript code reviewer.");
equipInstruction(`
Review this code and identify concrete problems:

${code}
`);

return promptAgent(
z.object({
summary: z.string(),
issues: z.array(
z.object({
severity: z.enum(["low", "medium", "high"]),
message: z.string(),
}),
),
}),
);
},
});

const review = await Reviewer({
code: `const add = (a, b) => a + b`,
});

console.log(review.issues);
```
@rizon 有试过单纯的读写 md 吗,一个话题一份文档之类的
Mar 31, 2025
Replied to a topic by wha582 问与答 大佬们都是怎么推广自己的开源项目
顺便推广一下自己写的 AI Agent https://github.com/waht41/auto_machine 刚刚更新到 0.0.2
@TheBlind 我这里是把 mcp 作为一个普通的 tool 调用了。
具体来说就是让大模型输出结构化语言,比如
```yaml
- tool: MCP
cmd: call_tool
server: "weather-server"
mcp_tool: "weather"
arguments:
city: "北京"
date: "2021-08-01"
```
收到这类回复后,auto_machine 会解析结构化语言为对应的函数,然后调用即可。
roo 是使用 xml 作为结构化语言
<use_mcp_tool>
<server_name>server name here</server_name>
<tool_name>tool name here</tool_name>
<arguments>
{
"param1": "value1",
"param2": "value2"
}
</arguments>
</use_mcp_tool>

其它的不清楚,不过 mcp 就是单纯的对普通接口做了一些规范,直接包成一个函数使用 function_call 也没问题。
@TheBlind 另外我补充一下,npx @modelcontextprotocol/create-server note-server 可以直接创建一个简易的 mcp 服务样例。
MCP 基本就是类似 http 的标准化协议。
更新,已打出 windows 测试包 https://github.com/waht41/auto_machine/releases/tag/0.0.0 有兴趣的可以尝试一下,并提出意见
Dec 24, 2024
Replied to a topic by wha582 分享创造 Tab Filter, Chrome 插件推荐
@MartinWu 设置自动分组,即打开 tab 时,tab 会直接跳到某个分组,体验不太好,我改为了添加按照域名分组的功能(选择后将会自动按域名分组,而且还可以再切回默认分组方式)。 可以试试新版的体验怎么样
![样例]( https://lh3.googleusercontent.com/EC2BGQLjcLPTrdvXlFfcOqzgYzdvcKQ9s9L6rGEQEroIWWSEiI-lR8GB55IVhwhnU9XQEpXZ2C0dSJuNlgAduN3R=s1280-w1280-h800)
Dec 24, 2024
Replied to a topic by wha582 分享创造 Tab Filter, Chrome 插件推荐
v1.3 更新
- 添加拖放式标签组管理功能
- 增加中文语言支持
- 改进用户界面和交互体验
- 添加专门的标签历史记录查看按钮
- 新增基于网站的标签分组功能
Dec 24, 2024
Replied to a topic by cloudzhou 奇思妙想 浏览器 tab 的插件想法
https://chromewebstore.google.com/detail/tab-filter/ifgokaaodajaabfkidgbabllckigpjfn 试试这个,刚刚添加了按照 domain 分组的功能
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   858 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 21:11 · PVG 05:11 · LAX 14:11 · JFK 17:11
♥ Do have faith in what you're doing.