e1d6b1eeb3
- SendChatMessageAsync: sessions_send nutzt agentId (nicht sessionKey) - Reply parsen aus result.details.reply (sessions_send Antwort-Struktur) - ChatRequest.Model: SessionKey → AgentId - Controller default: 'iris' → Agent-ID (nicht Session-Key)
48 lines
772 B
C#
48 lines
772 B
C#
namespace Nexus.Api.Models;
|
|
|
|
public sealed record DashboardAgentInfo(
|
|
string Id,
|
|
string Name,
|
|
string Role,
|
|
string Model,
|
|
bool IsActive,
|
|
string? CurrentTask
|
|
);
|
|
|
|
public sealed record MessageEntry(
|
|
string Role,
|
|
string Content,
|
|
string Timestamp
|
|
);
|
|
|
|
public sealed record ChatRequest(
|
|
string Message,
|
|
string? AgentId
|
|
);
|
|
|
|
public sealed record ChatResponse(
|
|
bool Ok,
|
|
string? Reply,
|
|
string? Error
|
|
);
|
|
|
|
public sealed record FeedEntry(
|
|
string Agent,
|
|
string Action,
|
|
string Timestamp,
|
|
string Time
|
|
);
|
|
|
|
public sealed record DashboardStatus(
|
|
bool GatewayOk,
|
|
string IrisStatus,
|
|
int ActiveAgents,
|
|
int PendingTasks
|
|
);
|
|
|
|
public sealed record QueueItem(
|
|
string Id,
|
|
string Name,
|
|
string Status
|
|
);
|