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 5
5
6
6
import pydantic
7
7
8
+ import codegate .muxing .models as mux_models
8
9
from codegate .db import models as db_models
9
10
from codegate .extract_snippets .message_extractor import CodeSnippet
10
11
from codegate .providers .base import BaseProvider
@@ -59,9 +60,19 @@ def from_db_workspaces(
59
60
)
60
61
61
62
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 ):
63
70
name : str
64
71
72
+ config : Optional [WorkspaceConfig ] = None
73
+
74
+
75
+ class CreateOrRenameWorkspaceRequest (FullWorkspace ):
65
76
# If set, rename the workspace to this name. Note that
66
77
# the 'name' field is still required and the workspace
67
78
# workspace must exist.
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ class MuxRule(pydantic.BaseModel):
26
26
Represents a mux rule for a provider.
27
27
"""
28
28
29
+ # Used for exportable workspaces
30
+ provider_name : Optional [str ] = None
29
31
provider_id : str
30
32
model : str
31
33
# The type of matcher to use
You can’t perform that action at this time.
0 commit comments