Simon Willison·· 2 天前AI 评分40
datasette-apps 0.3a0 发布:改进与 Datasette Agent 的集成
datasette-apps 0.3a0
AI 导读
datasette-apps 0.3a0 改进了与 Datasette Agent 的集成。新版本支持在 Agent 聊天中输入 # 自动补全引用应用,新增 app_add_stored_queries() 和 app_remove_stored_queries() 工具管理应用可调用的存储查询。
正文 · 原文
Datasette Apps adds support for hosting and editing custom HTML applications inside of Datasette.
These can be created by hand, but it's easier to create them using LLMs via Datasette Agent. This release improves that integration:
- Apps can now be tagged in Datasette Agent chat messages by typing
#, which autocompletes from the apps the user has permission to view.- New
app_add_stored_queries()andapp_remove_stored_queries()tools let the agent manage which stored queries an app is allowed to call. Granting a write query requires approval from the user first.app_create()now checks that each requested stored query exists and that the user can view it, and asks the user to approve any write queries before the app is created.- The "View app" buttons shown by the agent tools, and the links on
#app references, now open the app full screen in the Datasette Agent panel.
来源: Simon Willison · simonwillison.net