Skip to content

Commit 2fbbe74

Browse files
authored
Merge pull request lightspeed-core#887 from tisnik/lcore-988-regenerated-config-docs
LCORE-988: Regenerated configuration docs
2 parents 8e36eda + 6557a6f commit 2fbbe74

5 files changed

Lines changed: 467 additions & 409 deletions

File tree

docs/config.html

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,24 @@ <h1 class="title"> </h1>
176176
<h1 id="lightspeed-core-stack">Lightspeed Core Stack</h1>
177177
<hr/>
178178
<h1 id="configuration-schema">&#x1F4CB; Configuration schema</h1>
179+
<h2 id="apikeytokenconfiguration">APIKeyTokenConfiguration</h2>
180+
<p>API Key Token configuration.</p>
181+
<table>
182+
<thead>
183+
<tr class="header">
184+
<th>Field</th>
185+
<th>Type</th>
186+
<th>Description</th>
187+
</tr>
188+
</thead>
189+
<tbody>
190+
<tr class="odd">
191+
<td>api_key</td>
192+
<td>string</td>
193+
<td/>
194+
</tr>
195+
</tbody>
196+
</table>
179197
<h2 id="accessrule">AccessRule</h2>
180198
<p>Rule defining what actions a role can perform.</p>
181199
<table>
@@ -240,6 +258,11 @@ <h2 id="authenticationconfiguration">AuthenticationConfiguration</h2>
240258
<td/>
241259
</tr>
242260
<tr class="even">
261+
<td>api_key_config</td>
262+
<td/>
263+
<td/>
264+
</tr>
265+
<tr class="odd">
243266
<td>rh_identity_config</td>
244267
<td/>
245268
<td/>

docs/config.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@
77

88

99

10+
## APIKeyTokenConfiguration
11+
12+
13+
API Key Token configuration.
14+
15+
16+
| Field | Type | Description |
17+
|-------|------|-------------|
18+
| api_key | string | |
19+
20+
1021
## AccessRule
1122

1223

@@ -42,6 +53,7 @@ Authentication configuration.
4253
| k8s_cluster_api | string | |
4354
| k8s_ca_cert_path | string | |
4455
| jwk_config | | |
56+
| api_key_config | | |
4557
| rh_identity_config | | |
4658

4759

@@ -297,11 +309,11 @@ Useful resources:
297309

298310
Model context protocol server configuration.
299311

300-
MCP (Model Context Protocol) servers provide tools and
301-
capabilities to the AI agents. These are configured by this structure.
302-
Only MCP servers defined in the lightspeed-stack.yaml configuration are
303-
available to the agents. Tools configured in the llama-stack run.yaml
304-
are not accessible to lightspeed-core agents.
312+
MCP (Model Context Protocol) servers provide tools and capabilities to the
313+
AI agents. These are configured by this structure. Only MCP servers
314+
defined in the lightspeed-stack.yaml configuration are available to the
315+
agents. Tools configured in the llama-stack run.yaml are not accessible to
316+
lightspeed-core agents.
305317

306318
Useful resources:
307319

@@ -322,9 +334,9 @@ Useful resources:
322334

323335
PostgreSQL database configuration.
324336

325-
PostgreSQL database is used by Lightspeed Core Stack service for storing information about
326-
conversation IDs. It can also be leveraged to store conversation history and information
327-
about quota usage.
337+
PostgreSQL database is used by Lightspeed Core Stack service for storing
338+
information about conversation IDs. It can also be leveraged to store
339+
conversation history and information about quota usage.
328340

329341
Useful resources:
330342

@@ -437,10 +449,10 @@ SQLite database configuration.
437449

438450
Service configuration.
439451

440-
Lightspeed Core Stack is a REST API service that accepts requests
441-
on a specified hostname and port. It is also possible to enable
442-
authentication and specify the number of Uvicorn workers. When more
443-
workers are specified, the service can handle requests concurrently.
452+
Lightspeed Core Stack is a REST API service that accepts requests on a
453+
specified hostname and port. It is also possible to enable authentication
454+
and specify the number of Uvicorn workers. When more workers are specified,
455+
the service can handle requests concurrently.
444456

445457

446458
| Field | Type | Description |

docs/config.png

11.3 KB
Loading

docs/config.puml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
@startuml classes
22
set namespaceSeparator none
3+
class "APIKeyTokenConfiguration" as src.models.config.APIKeyTokenConfiguration {
4+
api_key
5+
}
36
class "AccessRule" as src.models.config.AccessRule {
47
actions : list[Action]
58
role : str
@@ -8,6 +11,8 @@ class "Action" as src.models.config.Action {
811
name
912
}
1013
class "AuthenticationConfiguration" as src.models.config.AuthenticationConfiguration {
14+
api_key_config : Optional[APIKeyTokenConfiguration]
15+
api_key_configuration
1116
jwk_config : Optional[JwkConfiguration]
1217
jwk_configuration
1318
k8s_ca_cert_path : Optional[FilePath]
@@ -184,6 +189,7 @@ class "UserDataCollection" as src.models.config.UserDataCollection {
184189
transcripts_storage : Optional[str]
185190
check_storage_location_is_set_when_needed() -> Self
186191
}
192+
src.models.config.APIKeyTokenConfiguration --|> src.models.config.ConfigurationBase
187193
src.models.config.AccessRule --|> src.models.config.ConfigurationBase
188194
src.models.config.AuthenticationConfiguration --|> src.models.config.ConfigurationBase
189195
src.models.config.AuthorizationConfiguration --|> src.models.config.ConfigurationBase

0 commit comments

Comments
 (0)