agent-api-server 2.1.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agent_api_server/__init__.py +0 -0
- agent_api_server/api/__init__.py +0 -0
- agent_api_server/api/v1/__init__.py +0 -0
- agent_api_server/api/v1/api.py +25 -0
- agent_api_server/api/v1/config.py +57 -0
- agent_api_server/api/v1/graph.py +59 -0
- agent_api_server/api/v1/schema.py +57 -0
- agent_api_server/api/v1/thread.py +563 -0
- agent_api_server/cache/__init__.py +0 -0
- agent_api_server/cache/redis_cache.py +385 -0
- agent_api_server/callback_handler.py +18 -0
- agent_api_server/client/css/styles.css +1202 -0
- agent_api_server/client/favicon.ico +0 -0
- agent_api_server/client/index.html +102 -0
- agent_api_server/client/js/app.js +1499 -0
- agent_api_server/client/js/index.umd.js +824 -0
- agent_api_server/config_center/config_center.py +239 -0
- agent_api_server/configs/__init__.py +3 -0
- agent_api_server/configs/config.py +163 -0
- agent_api_server/dynamic_llm/__init__.py +0 -0
- agent_api_server/dynamic_llm/dynamic_llm.py +331 -0
- agent_api_server/listener.py +530 -0
- agent_api_server/log/__init__.py +0 -0
- agent_api_server/log/formatters.py +122 -0
- agent_api_server/log/logging.json +50 -0
- agent_api_server/mcp_convert/__init__.py +0 -0
- agent_api_server/mcp_convert/mcp_convert.py +375 -0
- agent_api_server/memeory/__init__.py +0 -0
- agent_api_server/memeory/postgres.py +233 -0
- agent_api_server/register/__init__.py +0 -0
- agent_api_server/register/register.py +65 -0
- agent_api_server/service.py +354 -0
- agent_api_server/service_hub/service_hub.py +233 -0
- agent_api_server/service_hub/service_hub_test.py +700 -0
- agent_api_server/shared/__init__.py +0 -0
- agent_api_server/shared/ase.py +54 -0
- agent_api_server/shared/base_model.py +103 -0
- agent_api_server/shared/common.py +110 -0
- agent_api_server/shared/decode_token.py +107 -0
- agent_api_server/shared/detect_message.py +410 -0
- agent_api_server/shared/get_model_info.py +491 -0
- agent_api_server/shared/message.py +419 -0
- agent_api_server/shared/util_func.py +372 -0
- agent_api_server/sso_service/__init__.py +1 -0
- agent_api_server/sso_service/sdk/__init__.py +1 -0
- agent_api_server/sso_service/sdk/client.py +224 -0
- agent_api_server/sso_service/sdk/credential.py +11 -0
- agent_api_server/sso_service/sdk/encoding.py +22 -0
- agent_api_server/sso_service/sso_service.py +177 -0
- agent_api_server-2.1.7.dist-info/METADATA +130 -0
- agent_api_server-2.1.7.dist-info/RECORD +52 -0
- agent_api_server-2.1.7.dist-info/WHEEL +4 -0
|
Binary file
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
+
<title>Stream Viewer</title>
|
|
7
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
|
|
8
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
9
|
+
<link rel="stylesheet" href="css/styles.css">
|
|
10
|
+
</head>
|
|
11
|
+
<div id="interruptModal" class="modal">
|
|
12
|
+
<div class="modal-content">
|
|
13
|
+
<h3>Input Required</h3>
|
|
14
|
+
<p>Please provide the required information to continue:</p>
|
|
15
|
+
<textarea id="interruptInput" placeholder="Enter your response here..."></textarea>
|
|
16
|
+
<div class="modal-buttons">
|
|
17
|
+
<button id="cancelInterruptBtn" class="btn btn-secondary">Cancel</button>
|
|
18
|
+
<button id="confirmInterruptBtn" class="btn btn-primary">Continue</button>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<body>
|
|
23
|
+
<div class="container">
|
|
24
|
+
<header>
|
|
25
|
+
<h1 class="floating">Neon <span class="gradient-text">Stream</span> Viewer</h1>
|
|
26
|
+
<p class="subtitle">Visualize real-time SSE data streams</p>
|
|
27
|
+
</header>
|
|
28
|
+
|
|
29
|
+
<div class="card">
|
|
30
|
+
<div class="form-group">
|
|
31
|
+
<label for="graphSelect">Select Graph</label>
|
|
32
|
+
<div class="graph-selector">
|
|
33
|
+
<select id="graphSelect" class="graph-select">
|
|
34
|
+
<option value="" disabled selected>Loading graphs...</option>
|
|
35
|
+
</select>
|
|
36
|
+
<button id="refreshGraphsBtn" class="refresh-graphs-btn" title="Refresh graphs list">
|
|
37
|
+
<i class="fas fa-sync-alt"></i>
|
|
38
|
+
</button>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div class="flex">
|
|
42
|
+
<div class="form-group" style="flex: 1;">
|
|
43
|
+
<label for="graphName">Graph Name</label>
|
|
44
|
+
<input type="text" id="graphName" placeholder="Enter graph name or select from above">
|
|
45
|
+
</div>
|
|
46
|
+
<button id="createThreadBtn" class="btn btn-primary" style="align-self: flex-end;">
|
|
47
|
+
<i class="fas fa-plus"></i> Create Thread
|
|
48
|
+
</button>
|
|
49
|
+
<button id="getConfigBtn" class="btn btn-secondary" style="align-self: flex-end;">
|
|
50
|
+
<i class="fas fa-cog"></i> Get Config
|
|
51
|
+
</button>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<div class="card">
|
|
56
|
+
<div class="form-group">
|
|
57
|
+
<label for="threadId">Thread ID</label>
|
|
58
|
+
<input type="text" id="threadId" placeholder="Thread ID will appear here after creation" readonly>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<div class="form-group">
|
|
62
|
+
<label for="apiUrl">API Endpoint</label>
|
|
63
|
+
<input type="text" id="apiUrl" value="/api/v1/thread/{thread_id}/stream" placeholder="Enter API endpoint">
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<div class="form-group">
|
|
67
|
+
<label>Input Parameters</label>
|
|
68
|
+
<div id="inputFormContainer"></div>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="flex">
|
|
71
|
+
<button id="connectBtn" class="btn btn-primary">
|
|
72
|
+
<i class="fas fa-plug"></i> Connect Stream
|
|
73
|
+
</button>
|
|
74
|
+
<button id="disconnectBtn" class="btn btn-secondary" disabled>
|
|
75
|
+
<i class="fas fa-stop"></i> Disconnect
|
|
76
|
+
</button>
|
|
77
|
+
<button id="clearBtn" class="btn btn-secondary">
|
|
78
|
+
<i class="fas fa-trash"></i> Clear
|
|
79
|
+
</button>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
<div id="status" class="status status-disconnected">
|
|
84
|
+
<i class="fas fa-circle"></i> Disconnected
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
<div class="card">
|
|
88
|
+
<div class="stream-header">
|
|
89
|
+
<h2><i class="fas fa-stream" style="margin-right: 0.5rem;"></i> Stream Output</h2>
|
|
90
|
+
</div>
|
|
91
|
+
<div id="streamContainer" class="stream-container">
|
|
92
|
+
<div class="empty-content">No stream data yet. Create a thread and connect to start receiving events.</div>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
|
|
97
|
+
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
|
|
98
|
+
<script src="https://unpkg.com/@antv/g2plot@latest/dist/g2plot.min.js"></script>
|
|
99
|
+
<script src="js/index.umd.js"></script>
|
|
100
|
+
<script src="js/app.js"></script>
|
|
101
|
+
</body>
|
|
102
|
+
</html>
|