feat(chat): persistance bornee du brouillon custom chat par projet/layout (#182)
This commit is contained in:
@ -41,6 +41,8 @@ import type {
|
||||
} from "@/domain";
|
||||
import type {
|
||||
AgentGateway,
|
||||
ChatDraftScope,
|
||||
ChatDraftSnapshot,
|
||||
ConversationDetails,
|
||||
CreateAgentInput,
|
||||
CreateTicketInput,
|
||||
@ -255,6 +257,18 @@ export class HttpAgentGateway implements AgentGateway {
|
||||
});
|
||||
}
|
||||
|
||||
readChatDraft(scope: ChatDraftScope): Promise<ChatDraftSnapshot> {
|
||||
return this.http.invoke<ChatDraftSnapshot>("read_chat_draft", { request: scope });
|
||||
}
|
||||
|
||||
async saveChatDraft(scope: ChatDraftScope, text: string): Promise<void> {
|
||||
await this.http.invoke("save_chat_draft", { request: { ...scope, text } });
|
||||
}
|
||||
|
||||
async clearChatDraft(scope: ChatDraftScope): Promise<void> {
|
||||
await this.http.invoke("clear_chat_draft", { request: scope });
|
||||
}
|
||||
|
||||
async launchAgent(
|
||||
projectId: string,
|
||||
agentId: string,
|
||||
|
||||
Reference in New Issue
Block a user