Skip to content

Commit f724d62

Browse files
authored
[Upgrade] Bump speakeasy to 1.568.2 (#241)
1 parent e15914b commit f724d62

File tree

176 files changed

+2385
-1469
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

176 files changed

+2385
-1469
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
**/__pycache__/
2+
**/.speakeasy/temp/
3+
**/.speakeasy/logs/
14
.vscode/
25
.speakeasy/reports
36
README-PYPI.md

.speakeasy/gen.lock

Lines changed: 215 additions & 227 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,31 @@ generation:
44
maintainOpenAPIOrder: true
55
usageSnippets:
66
optionalPropertyRendering: withExample
7+
sdkInitStyle: constructor
78
useClassNamesForArrayFields: true
89
fixes:
910
nameResolutionDec2023: true
1011
nameResolutionFeb2025: false
1112
parameterOrderingFeb2024: true
1213
requestResponseComponentNamesFeb2024: true
1314
securityFeb2025: false
15+
sharedErrorComponentsApr2025: false
1416
auth:
1517
oAuth2ClientCredentialsEnabled: true
1618
oAuth2PasswordEnabled: false
19+
tests:
20+
generateTests: true
21+
generateNewTests: false
22+
skipResponseBodyAssertions: false
1723
python:
18-
version: 1.8.2
24+
version: 1.9.0
1925
additionalDependencies:
2026
dev:
2127
pytest: ^8.2.2
2228
pytest-asyncio: ^0.23.7
2329
authors:
2430
- Mistral
31+
baseErrorName: MistralError
2532
clientServerStatusCodesAsErrors: true
2633
defaultErrorName: SDKError
2734
description: Python Client SDK for the Mistral AI API.
@@ -44,8 +51,10 @@ python:
4451
inputModelSuffix: input
4552
maxMethodParams: 15
4653
methodArguments: infer-optional-args
54+
moduleName: ""
4755
outputModelSuffix: output
4856
packageName: mistralai
57+
pytestFilterWarnings: []
4958
pytestTimeout: 0
5059
responseFormat: flat
5160
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.517.3
1+
speakeasyVersion: 1.568.2
22
sources:
33
mistral-azure-source:
44
sourceNamespace: mistral-openapi-azure
@@ -18,7 +18,6 @@ sources:
1818
sourceBlobDigest: sha256:74aeb6a2e0d466c206f983ce79581cc72d205cc7866826282c181207ebe841a2
1919
tags:
2020
- latest
21-
- speakeasy-sdk-regen-1749573609
2221
targets:
2322
mistralai-azure-sdk:
2423
source: mistral-azure-source
@@ -40,20 +39,20 @@ targets:
4039
sourceRevisionDigest: sha256:21244d618cafcc163c3aa4acbc443ca16c63b8614632b65b87fbb2c4066987f3
4140
sourceBlobDigest: sha256:74aeb6a2e0d466c206f983ce79581cc72d205cc7866826282c181207ebe841a2
4241
codeSamplesNamespace: mistral-openapi-code-samples
43-
codeSamplesRevisionDigest: sha256:dc4396ba994048a9f31c008dced1a46a9e54d89973e9608039a7bc37b1052957
42+
codeSamplesRevisionDigest: sha256:b631243aae349ddebec1b984874a8e1d5b40e67d6229a199a3d5e63ba69d1538
4443
workflow:
4544
workflowVersion: 1.0.0
46-
speakeasyVersion: 1.517.3
45+
speakeasyVersion: 1.568.2
4746
sources:
4847
mistral-azure-source:
4948
inputs:
50-
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-azure:main
49+
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-azure:sha256:c5931a7e0cc2db844149d71db57dfc2178665f0400bc26c90ee113795ea2872f
5150
mistral-google-cloud-source:
5251
inputs:
53-
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-google-cloud:main
52+
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-google-cloud:sha256:4a5343e63c6a78152e472b00ccc46d7bcb15594496bc94c8040039d3a9d4c5f8
5453
mistral-openapi:
5554
inputs:
56-
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi:main
55+
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi:sha256:21244d618cafcc163c3aa4acbc443ca16c63b8614632b65b87fbb2c4066987f3
5756
targets:
5857
mistralai-azure-sdk:
5958
target: python

.speakeasy/workflow.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
workflowVersion: 1.0.0
2-
speakeasyVersion: 1.517.3
2+
speakeasyVersion: 1.568.2
33
sources:
44
mistral-azure-source:
55
inputs:
6-
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-azure:main
6+
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-azure:main
77
mistral-google-cloud-source:
88
inputs:
9-
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-google-cloud:main
9+
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi-google-cloud:main
1010
mistral-openapi:
1111
inputs:
12-
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi:main
12+
- location: registry.speakeasyapi.dev/mistral-dev/mistral-dev/mistral-openapi:main
1313
targets:
1414
mistralai-azure-sdk:
1515
target: python

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ with Mistral(
142142
"content": "Who is the best French painter? Answer in one short sentence.",
143143
"role": "user",
144144
},
145-
])
145+
], stream=False)
146146

147147
# Handle response
148148
print(res)
@@ -168,7 +168,7 @@ async def main():
168168
"content": "Who is the best French painter? Answer in one short sentence.",
169169
"role": "user",
170170
},
171-
])
171+
], stream=False)
172172

173173
# Handle response
174174
print(res)
@@ -244,7 +244,7 @@ with Mistral(
244244
"content": "Who is the best French painter? Answer in one short sentence.",
245245
"role": "user",
246246
},
247-
], agent_id="<id>")
247+
], agent_id="<id>", stream=False)
248248

249249
# Handle response
250250
print(res)
@@ -270,7 +270,7 @@ async def main():
270270
"content": "Who is the best French painter? Answer in one short sentence.",
271271
"role": "user",
272272
},
273-
], agent_id="<id>")
273+
], agent_id="<id>", stream=False)
274274

275275
# Handle response
276276
print(res)
@@ -547,7 +547,14 @@ with Mistral(
547547
api_key=os.getenv("MISTRAL_API_KEY", ""),
548548
) as mistral:
549549

550-
res = mistral.beta.conversations.start_stream(inputs="<value>")
550+
res = mistral.beta.conversations.start_stream(inputs=[
551+
{
552+
"object": "entry",
553+
"type": "function.result",
554+
"tool_call_id": "<id>",
555+
"result": "<value>",
556+
},
557+
], stream=True)
551558

552559
with res as event_stream:
553560
for event in event_stream:

USAGE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ with Mistral(
1818
"content": "Who is the best French painter? Answer in one short sentence.",
1919
"role": "user",
2020
},
21-
])
21+
], stream=False)
2222

2323
# Handle response
2424
print(res)
@@ -44,7 +44,7 @@ async def main():
4444
"content": "Who is the best French painter? Answer in one short sentence.",
4545
"role": "user",
4646
},
47-
])
47+
], stream=False)
4848

4949
# Handle response
5050
print(res)
@@ -120,7 +120,7 @@ with Mistral(
120120
"content": "Who is the best French painter? Answer in one short sentence.",
121121
"role": "user",
122122
},
123-
], agent_id="<id>")
123+
], agent_id="<id>", stream=False)
124124

125125
# Handle response
126126
print(res)
@@ -146,7 +146,7 @@ async def main():
146146
"content": "Who is the best French painter? Answer in one short sentence.",
147147
"role": "user",
148148
},
149-
], agent_id="<id>")
149+
], agent_id="<id>", stream=False)
150150

151151
# Handle response
152152
print(res)

docs/models/agent.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
| Field | Type | Required | Description |
77
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
8-
| `model` | *str* | :heavy_check_mark: | N/A |
9-
| `name` | *str* | :heavy_check_mark: | N/A |
10-
| `id` | *str* | :heavy_check_mark: | N/A |
11-
| `version` | *int* | :heavy_check_mark: | N/A |
12-
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
13-
| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
148
| `instructions` | *OptionalNullable[str]* | :heavy_minus_sign: | Instruction prompt the model will follow during the conversation. |
159
| `tools` | List[[models.AgentTools](../models/agenttools.md)] | :heavy_minus_sign: | List of tools which are available to the model during the conversation. |
1610
| `completion_args` | [Optional[models.CompletionArgs]](../models/completionargs.md) | :heavy_minus_sign: | White-listed arguments from the completion API |
11+
| `model` | *str* | :heavy_check_mark: | N/A |
12+
| `name` | *str* | :heavy_check_mark: | N/A |
1713
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
1814
| `handoffs` | List[*str*] | :heavy_minus_sign: | N/A |
19-
| `object` | [Optional[models.AgentObject]](../models/agentobject.md) | :heavy_minus_sign: | N/A |
15+
| `object` | [Optional[models.AgentObject]](../models/agentobject.md) | :heavy_minus_sign: | N/A |
16+
| `id` | *str* | :heavy_check_mark: | N/A |
17+
| `version` | *int* | :heavy_check_mark: | N/A |
18+
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
19+
| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |

docs/models/agentconversation.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
| Field | Type | Required | Description |
77
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
8+
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name given to the conversation. |
9+
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | Description of the what the conversation is about. |
10+
| `object` | [Optional[models.AgentConversationObject]](../models/agentconversationobject.md) | :heavy_minus_sign: | N/A |
811
| `id` | *str* | :heavy_check_mark: | N/A |
912
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
1013
| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
11-
| `agent_id` | *str* | :heavy_check_mark: | N/A |
12-
| `name` | *OptionalNullable[str]* | :heavy_minus_sign: | Name given to the conversation. |
13-
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | Description of the what the conversation is about. |
14-
| `object` | [Optional[models.AgentConversationObject]](../models/agentconversationobject.md) | :heavy_minus_sign: | N/A |
14+
| `agent_id` | *str* | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)