f707dceb98
- DashboardController: /api/dashboard/status, agents, operations, chat/send, chat/messages, queue - OpenClawGatewayClient: typed HttpClient mit Gateway tools/invoke - Dashboard DTOs: DashboardAgentInfo, ChatRequest, ChatResponse, FeedEntry, QueueItem - Gateway auth: Bearer-Password via Integrations:OpenClaw:Password - Gateway-Down → graceful degradation (HTTP 200, leere Daten) - Build: 0 errors, Tests: 3/3 passed
48 lines
775 B
C#
48 lines
775 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? SessionKey
|
|
);
|
|
|
|
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
|
|
);
|