Skip to content

Commit 8b5e882

Browse files
Update api spec (#534)
* YOYO NEW API SPEC! * I have generated the latest API! * updates Signed-off-by: Jessie Frazelle <github@jessfraz.com> --------- Signed-off-by: Jessie Frazelle <github@jessfraz.com> Co-authored-by: zoo-github-actions-auth[bot] <zoo-github-actions-auth[bot]@users.noreply.github.com> Co-authored-by: Jessie Frazelle <github@jessfraz.com>
1 parent 6300cf9 commit 8b5e882

File tree

7 files changed

+143
-79
lines changed

7 files changed

+143
-79
lines changed

kittycad/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@
200200
from .mbd_symbol import MbdSymbol
201201
from .method import Method
202202
from .ml_copilot_client_message import MlCopilotClientMessage
203+
from .ml_copilot_mode import MlCopilotMode
203204
from .ml_copilot_server_message import MlCopilotServerMessage
204205
from .ml_copilot_supported_models import MlCopilotSupportedModels
205206
from .ml_copilot_system_command import MlCopilotSystemCommand

kittycad/models/customer_balance.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import datetime
22
from typing import Optional
33

4-
from ..models.subscription_tier_price import SubscriptionTierPrice
54
from ..models.zoo_product_subscriptions import ZooProductSubscriptions
65
from .base import KittyCadBaseModel
76

@@ -13,8 +12,6 @@ class CustomerBalance(KittyCadBaseModel):
1312

1413
created_at: datetime.datetime
1514

16-
modeling_app_enterprise_price: Optional[SubscriptionTierPrice] = None
17-
1815
monthly_api_credits_remaining: int
1916

2017
monthly_api_credits_remaining_monetary_value: float

kittycad/models/ml_copilot_client_message.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from pydantic import Field, RootModel
44
from typing_extensions import Annotated
55

6+
from ..models.ml_copilot_mode import MlCopilotMode
67
from ..models.ml_copilot_supported_models import MlCopilotSupportedModels
78
from ..models.ml_copilot_system_command import MlCopilotSystemCommand
89
from ..models.ml_copilot_tool import MlCopilotTool
@@ -28,6 +29,8 @@ class OptionUser(KittyCadBaseModel):
2829

2930
forced_tools: Optional[List[MlCopilotTool]] = None
3031

32+
mode: Optional[MlCopilotMode] = None
33+
3134
model: Optional[MlCopilotSupportedModels] = None
3235

3336
project_name: Optional[str] = None

kittycad/models/ml_copilot_mode.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from enum import Enum
2+
3+
4+
class MlCopilotMode(str, Enum):
5+
"""The mode to have the agent work in.""" # noqa: E501
6+
7+
"""# Use a combination of models and reasoning effort for fast results.""" # noqa: E501
8+
9+
FAST = "fast"
10+
11+
"""# Use a model and effort that results in thoughtful responses.""" # noqa: E501
12+
13+
THOUGHTFUL = "thoughtful"
14+
15+
def __str__(self) -> str:
16+
return str(self.value)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies = [
1515
"python-dateutil>=2.8.0,<3.0.0",
1616
"websockets>=14.1.0,<16.0.0",
1717
"pymongo>=4.6.0,<5.0.0",
18-
"pydantic>=2.9.1,<3.0.0",
18+
"pydantic>=2.12.0,<3.0.0",
1919
"pydantic-extra-types>=2.1.0,<3.0.0",
2020
"phonenumbers>=9.0.11",
2121
"truststore>=0.10.4",

spec.json

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24791,15 +24791,6 @@
2479124791
"type": "string",
2479224792
"format": "date-time"
2479324793
},
24794-
"modeling_app_enterprise_price": {
24795-
"nullable": true,
24796-
"description": "The enterprise price for the Modeling App subscription, if they are on the enterprise plan.",
24797-
"allOf": [
24798-
{
24799-
"$ref": "#/components/schemas/SubscriptionTierPrice"
24800-
}
24801-
]
24802-
},
2480324794
"monthly_api_credits_remaining": {
2480424795
"description": "The number of monthly API credits remaining in the balance. This is the number of credits remaining in the balance.\n\nBoth the monetary value and the number of credits are returned, but they reflect the same value in the database.",
2480524796
"type": "integer",
@@ -28554,9 +28545,18 @@
2855428545
"$ref": "#/components/schemas/MlCopilotTool"
2855528546
}
2855628547
},
28548+
"mode": {
28549+
"nullable": true,
28550+
"description": "Pick a mode for the agent to operate in. Defaults to a fast mode.",
28551+
"allOf": [
28552+
{
28553+
"$ref": "#/components/schemas/MlCopilotMode"
28554+
}
28555+
]
28556+
},
2855728557
"model": {
2855828558
"nullable": true,
28559-
"description": "Override the default model with another.",
28559+
"description": "Override the default or mode model with another.",
2856028560
"allOf": [
2856128561
{
2856228562
"$ref": "#/components/schemas/MlCopilotSupportedModels"
@@ -28570,7 +28570,7 @@
2857028570
},
2857128571
"reasoning_effort": {
2857228572
"nullable": true,
28573-
"description": "Change the default reasoning effort.",
28573+
"description": "Change the default or mode reasoning effort.",
2857428574
"allOf": [
2857528575
{
2857628576
"$ref": "#/components/schemas/MlReasoningEffort"
@@ -28622,6 +28622,25 @@
2862228622
}
2862328623
]
2862428624
},
28625+
"MlCopilotMode": {
28626+
"description": "The mode to have the agent work in.",
28627+
"oneOf": [
28628+
{
28629+
"description": "Use a combination of models and reasoning effort for fast results.",
28630+
"type": "string",
28631+
"enum": [
28632+
"fast"
28633+
]
28634+
},
28635+
{
28636+
"description": "Use a model and effort that results in thoughtful responses.",
28637+
"type": "string",
28638+
"enum": [
28639+
"thoughtful"
28640+
]
28641+
}
28642+
]
28643+
},
2862528644
"MlCopilotServerMessage": {
2862628645
"description": "The types of messages that can be sent by the server to the client.",
2862728646
"oneOf": [

0 commit comments

Comments
 (0)