Simon Willison 发布的 datasette-agent 新版本让你可以安全地用自然语言操作数据库,写操作需要你点头,还能用 --unsafe 一键自动批准,适合快速原型。
datasette-agent 0.3a0 发布,新增 execute_write_sql 工具,该工具会请求用户批准后再执行数据库写入操作,同时考虑用户权限。版本还增强了聊天终端模式,支持用户批准流程,并新增 --unsafe 模式自动批准所有用户确认问题。新选项包括 --root(以 root 运行)、--yes(自动批准所有 ask user 问题)和 --unsafe(同时启用前两者)。用户可通过 datasette agent chat content.db -m gpt-5.5 --unsafe 命令直接与特定数据库对话,并通过自然语言指令创建表或添加记录。
datasette-agent 0.3a0
Release: datasette-agent 0.3a0 New tool, execute_write_sql , which requests user approval and then writes to a database - taking user permissions into account. #27 I added a mechanism for asking user approval in datasette agent 0.2a0 . The new execute_write_sql tool can now prompt the user for all kinds of useful operations. Here's an example where I add some pelican sightings to my pelican_sightings table: The new version also enhances the datasette agent chat terminal mode to support approvals, and adds several new options including --unsafe mode for auto-approving them: datasette agent chat can execute tools that require user approval. #30 Three new options for datasette agent chat - --root to run as root, --yes to approve all ask user questions, and --unsafe for both. Tools can now provide plain text alternatives to HTML, for display in the datasette agent chat CLI. #31 The datasette agent chat content.db -m gpt-5.5 --unsafe command can now be used to chat directly with a specific database and directly modify it through prompts like "create a notes table", "add a note about X" etc. Tags: projects , ai , datasette , annotated-release-notes , generative-ai , llms , llm-tool-use , datasette-agent