This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 55
66import pydantic
77
8+ import codegate .muxing .models as mux_models
89from codegate .db import models as db_models
910from codegate .extract_snippets .message_extractor import CodeSnippet
1011from codegate .providers .base import BaseProvider
@@ -59,9 +60,19 @@ def from_db_workspaces(
5960 )
6061
6162
62- class CreateOrRenameWorkspaceRequest (pydantic .BaseModel ):
63+ class WorkspaceConfig (pydantic .BaseModel ):
64+ system_prompt : str
65+
66+ muxing_rules : List [mux_models .MuxRule ]
67+
68+
69+ class FullWorkspace (pydantic .BaseModel ):
6370 name : str
6471
72+ config : Optional [WorkspaceConfig ] = None
73+
74+
75+ class CreateOrRenameWorkspaceRequest (FullWorkspace ):
6576 # If set, rename the workspace to this name. Note that
6677 # the 'name' field is still required and the workspace
6778 # workspace must exist.
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ class MuxRule(pydantic.BaseModel):
2626 Represents a mux rule for a provider.
2727 """
2828
29+ # Used for exportable workspaces
30+ provider_name : Optional [str ] = None
2931 provider_id : str
3032 model : str
3133 # The type of matcher to use
You can’t perform that action at this time.
0 commit comments