-
Notifications
You must be signed in to change notification settings - Fork 56
LCORE-248: update config diagram #299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,6 +1,8 @@ | ||||||||||||||||||
| @startuml classes | ||||||||||||||||||
| set namespaceSeparator none | ||||||||||||||||||
| class "AuthenticationConfiguration" as src.models.config.AuthenticationConfiguration { | ||||||||||||||||||
| jwk_config : Optional[JwkConfiguration] | ||||||||||||||||||
| jwk_configuration | ||||||||||||||||||
| k8s_ca_cert_path : Optional[FilePath] | ||||||||||||||||||
| k8s_cluster_api : Optional[AnyHttpUrl] | ||||||||||||||||||
| module : str | ||||||||||||||||||
|
|
@@ -10,6 +12,7 @@ class "AuthenticationConfiguration" as src.models.config.AuthenticationConfigura | |||||||||||||||||
| class "Configuration" as src.models.config.Configuration { | ||||||||||||||||||
| authentication : Optional[AuthenticationConfiguration] | ||||||||||||||||||
| customization : Optional[Customization] | ||||||||||||||||||
| inference : Optional[InferenceConfiguration] | ||||||||||||||||||
| llama_stack | ||||||||||||||||||
| mcp_servers : list[ModelContextProtocolServer] | ||||||||||||||||||
| name : str | ||||||||||||||||||
|
|
@@ -33,6 +36,19 @@ class "DataCollectorConfiguration" as src.models.config.DataCollectorConfigurati | |||||||||||||||||
| ingress_server_url : Optional[str] | ||||||||||||||||||
| check_data_collector_configuration() -> Self | ||||||||||||||||||
| } | ||||||||||||||||||
| class "InferenceConfiguration" as src.models.config.InferenceConfiguration { | ||||||||||||||||||
| default_model : Optional[str] | ||||||||||||||||||
| default_provider : Optional[str] | ||||||||||||||||||
| check_default_model_and_provider() -> Self | ||||||||||||||||||
| } | ||||||||||||||||||
| class "JwkConfiguration" as src.models.config.JwkConfiguration { | ||||||||||||||||||
| jwt_configuration | ||||||||||||||||||
| url : AnyHttpUrl | ||||||||||||||||||
| } | ||||||||||||||||||
|
Comment on lines
+44
to
+47
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Fix the jwt_configuration attribute type specification. The - jwt_configuration
+ jwt_configuration : JwtConfiguration📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| class "JwtConfiguration" as src.models.config.JwtConfiguration { | ||||||||||||||||||
| user_id_claim : str | ||||||||||||||||||
| username_claim : str | ||||||||||||||||||
| } | ||||||||||||||||||
| class "LlamaStackConfiguration" as src.models.config.LlamaStackConfiguration { | ||||||||||||||||||
| api_key : Optional[str] | ||||||||||||||||||
| library_client_config_path : Optional[str] | ||||||||||||||||||
|
|
@@ -70,6 +86,7 @@ class "UserDataCollection" as src.models.config.UserDataCollection { | |||||||||||||||||
| check_storage_location_is_set_when_needed() -> Self | ||||||||||||||||||
| } | ||||||||||||||||||
| src.models.config.DataCollectorConfiguration --* src.models.config.UserDataCollection : data_collector | ||||||||||||||||||
| src.models.config.JwtConfiguration --* src.models.config.JwkConfiguration : jwt_configuration | ||||||||||||||||||
| src.models.config.LlamaStackConfiguration --* src.models.config.Configuration : llama_stack | ||||||||||||||||||
| src.models.config.ServiceConfiguration --* src.models.config.Configuration : service | ||||||||||||||||||
| src.models.config.TLSConfiguration --* src.models.config.ServiceConfiguration : tls_config | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Verify the jwk_config vs jwk_configuration attribute naming.
The diagram shows both
jwk_config : Optional[JwkConfiguration]andjwk_configurationin theAuthenticationConfigurationclass. Based on the relevant code snippet fromsrc/models/config.py, both attributes exist in the Python code, but this seems redundant and potentially confusing.Please verify if both attributes are intentionally present in the actual implementation or if one should be removed:
🏁 Script executed:
Length of output: 71
🏁 Script executed:
Length of output: 1069
Adjust PlantUML to Treat
jwk_configurationas a Method, Not a FieldThe
AuthenticationConfigurationclass defines:jwk_config: Optional[JwkConfiguration]as a model fielddef jwk_configuration(self) -> JwkConfiguration:as an instance methodIn your UML diagram, move
jwk_configurationfrom the attribute section into the operations section:File: docs/config.puml
Lines: ~4–5 in the
AuthenticationConfigurationclassSuggested diff:
class AuthenticationConfiguration { - jwk_config : Optional[JwkConfiguration] - jwk_configuration + jwk_config : Optional[JwkConfiguration] + + // Operations + + jwk_configuration() : JwkConfiguration }📝 Committable suggestion
🤖 Prompt for AI Agents