-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIAgentSessionService.cs
More file actions
42 lines (30 loc) · 1.61 KB
/
IAgentSessionService.cs
File metadata and controls
42 lines (30 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using ManagedCode.Communication;
namespace DotPilot.Core.ChatSessions.Interfaces;
public interface IAgentSessionService
{
ValueTask<Result<AgentWorkspaceSnapshot>> GetWorkspaceAsync(CancellationToken cancellationToken);
ValueTask<Result<AgentWorkspaceSnapshot>> RefreshWorkspaceAsync(CancellationToken cancellationToken);
ValueTask<Result<AgentWorkspaceSnapshot>> ResetWorkspaceAsync(CancellationToken cancellationToken);
ValueTask<Result<SessionTranscriptSnapshot>> GetSessionAsync(SessionId sessionId, CancellationToken cancellationToken);
ValueTask<Result<AgentProfileSummary>> CreateAgentAsync(
CreateAgentProfileCommand command,
CancellationToken cancellationToken);
ValueTask<Result<AgentProfileSummary>> UpdateAgentAsync(
UpdateAgentProfileCommand command,
CancellationToken cancellationToken);
ValueTask<Result<SessionTranscriptSnapshot>> CreateSessionAsync(
CreateSessionCommand command,
CancellationToken cancellationToken);
ValueTask<Result<AgentWorkspaceSnapshot>> CloseSessionAsync(
CloseSessionCommand command,
CancellationToken cancellationToken);
ValueTask<Result<ProviderStatusDescriptor>> UpdateProviderAsync(
UpdateProviderPreferenceCommand command,
CancellationToken cancellationToken);
ValueTask<Result<ProviderStatusDescriptor>> SetLocalModelPathAsync(
SetLocalModelPathCommand command,
CancellationToken cancellationToken);
IAsyncEnumerable<Result<SessionStreamEntry>> SendMessageAsync(
SendSessionMessageCommand command,
CancellationToken cancellationToken);
}