feat(server): copilot session prompt query (#10479)

This commit is contained in:
darkskygit
2025-02-27 11:25:52 +00:00
parent d50860eee2
commit 985906aa13
10 changed files with 79 additions and 21 deletions

View File

@@ -45,8 +45,11 @@ type Copilot {
"""Get the quota of the user in the workspace"""
quota: CopilotQuota!
"""Get the session id list in the workspace"""
sessionIds(docId: String, options: QueryChatSessionsInput): [String!]! @deprecated(reason: "Use `sessions` instead")
"""Get the session list in the workspace"""
sessionIds(docId: String, options: QueryChatSessionsInput): [String!]!
sessions(docId: String, options: QueryChatSessionsInput): [CopilotSessionType!]!
workspaceId: ID
}
@@ -192,6 +195,11 @@ type CopilotQuota {
used: SafeInt!
}
type CopilotSessionType {
id: ID!
promptName: String!
}
input CreateChatMessageInput {
attachments: [String!]
blobs: [Upload!]