mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat: add database tables and API routes for agentic chat feature (#17570)
Backend portion of experimental `AgenticChat` feature: - Adds database tables for chats and chat messages - Adds functionality to stream messages from LLM providers using `kylecarbs/aisdk-go` - Adds API routes with relevant functionality (list, create, update chats, insert chat message) - Adds experiment `codersdk.AgenticChat` --------- Co-authored-by: Kyle Carberry <kyle@carberry.com>
This commit is contained in:
@ -104,6 +104,14 @@ var RBACPermissions = map[string]PermissionDefinition{
|
||||
ActionRead: actDef("read and use a workspace proxy"),
|
||||
},
|
||||
},
|
||||
"chat": {
|
||||
Actions: map[Action]ActionDefinition{
|
||||
ActionCreate: actDef("create a chat"),
|
||||
ActionRead: actDef("read a chat"),
|
||||
ActionDelete: actDef("delete a chat"),
|
||||
ActionUpdate: actDef("update a chat"),
|
||||
},
|
||||
},
|
||||
"license": {
|
||||
Actions: map[Action]ActionDefinition{
|
||||
ActionCreate: actDef("create a license"),
|
||||
|
Reference in New Issue
Block a user