Skip to content

Commit 53079a4

Browse files
committed
feat: run sdk generation
1 parent f999a0c commit 53079a4

File tree

196 files changed

+9730
-23
lines changed

Some content is hidden

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

196 files changed

+9730
-23
lines changed

.speakeasy/gen.lock

Lines changed: 344 additions & 1 deletion
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ sources:
1414
- latest
1515
mistral-openapi:
1616
sourceNamespace: mistral-openapi
17-
sourceRevisionDigest: sha256:14f5a88b723582e80ead33d129f287568eed05815a9437b7ff5c890ca4c93318
18-
sourceBlobDigest: sha256:230b4f22197e202aebd70f8628844a27fe70b9b27569dbc3338d3e7d5442cb88
17+
sourceRevisionDigest: sha256:f2590d9933e1e9208fa5b8e509b671e6a86907268bcd5dad41dc4179e20c5b69
18+
sourceBlobDigest: sha256:3026ed65da39c94e9787697305e7e059bec5cff09bceeddc6e68c289cfaeb592
1919
tags:
2020
- latest
21-
- speakeasy-sdk-regen-1748257524
2221
targets:
2322
mistralai-azure-sdk:
2423
source: mistral-azure-source
@@ -37,10 +36,10 @@ targets:
3736
mistralai-sdk:
3837
source: mistral-openapi
3938
sourceNamespace: mistral-openapi
40-
sourceRevisionDigest: sha256:14f5a88b723582e80ead33d129f287568eed05815a9437b7ff5c890ca4c93318
41-
sourceBlobDigest: sha256:230b4f22197e202aebd70f8628844a27fe70b9b27569dbc3338d3e7d5442cb88
39+
sourceRevisionDigest: sha256:f2590d9933e1e9208fa5b8e509b671e6a86907268bcd5dad41dc4179e20c5b69
40+
sourceBlobDigest: sha256:3026ed65da39c94e9787697305e7e059bec5cff09bceeddc6e68c289cfaeb592
4241
codeSamplesNamespace: mistral-openapi-code-samples
43-
codeSamplesRevisionDigest: sha256:ac98d7bc86d476552e342173fdcb5735ee9c6fc0fa41820fd73eef137fe07bac
42+
codeSamplesRevisionDigest: sha256:bd4031e558c0426c02f2a4f3bb1642068047aa555e0f9cbbc70de74ff7ec04ec
4443
workflow:
4544
workflowVersion: 1.0.0
4645
speakeasyVersion: 1.517.3

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,30 @@ The documentation for the GCP SDK is available [here](packages/mistralai_gcp/REA
432432
* [get](docs/sdks/mistraljobs/README.md#get) - Get Batch Job
433433
* [cancel](docs/sdks/mistraljobs/README.md#cancel) - Cancel Batch Job
434434

435+
### [beta](docs/sdks/beta/README.md)
436+
437+
438+
#### [beta.agents](docs/sdks/mistralagents/README.md)
439+
440+
* [create](docs/sdks/mistralagents/README.md#create) - Create a agent that can be used within a conversation.
441+
* [list](docs/sdks/mistralagents/README.md#list) - List agent entities.
442+
* [get](docs/sdks/mistralagents/README.md#get) - Retrieve an agent entity.
443+
* [update](docs/sdks/mistralagents/README.md#update) - Update an agent entity.
444+
* [update_version](docs/sdks/mistralagents/README.md#update_version) - Update an agent version.
445+
446+
#### [beta.conversations](docs/sdks/conversations/README.md)
447+
448+
* [start](docs/sdks/conversations/README.md#start) - Create a conversation and append entries to it.
449+
* [list](docs/sdks/conversations/README.md#list) - List all created conversations.
450+
* [get](docs/sdks/conversations/README.md#get) - Retrieve a conversation information.
451+
* [append](docs/sdks/conversations/README.md#append) - Append new entries to an existing conversation.
452+
* [get_history](docs/sdks/conversations/README.md#get_history) - Retrieve all entries in a conversation.
453+
* [get_messages](docs/sdks/conversations/README.md#get_messages) - Retrieve all messages in a conversation.
454+
* [restart](docs/sdks/conversations/README.md#restart) - Restart a conversation starting from a given entry.
455+
* [start_stream](docs/sdks/conversations/README.md#start_stream) - Create a conversation and append entries to it.
456+
* [append_stream](docs/sdks/conversations/README.md#append_stream) - Append new entries to an existing conversation.
457+
* [restart_stream](docs/sdks/conversations/README.md#restart_stream) - Restart a conversation starting from a given entry.
458+
435459
### [chat](docs/sdks/chat/README.md)
436460

437461
* [complete](docs/sdks/chat/README.md#complete) - Chat Completion
@@ -511,12 +535,7 @@ with Mistral(
511535
api_key=os.getenv("MISTRAL_API_KEY", ""),
512536
) as mistral:
513537

514-
res = mistral.chat.stream(model="mistral-small-latest", messages=[
515-
{
516-
"content": "Who is the best French painter? Answer in one short sentence.",
517-
"role": "user",
518-
},
519-
])
538+
res = mistral.beta.conversations.start_stream(inputs="<value>")
520539

521540
with res as event_stream:
522541
for event in event_stream:

docs/models/agent.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Agent
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- |
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 |
14+
| `instructions` | *OptionalNullable[str]* | :heavy_minus_sign: | Instruction prompt the model will follow during the conversation. |
15+
| `tools` | List[[models.AgentTools](../models/agenttools.md)] | :heavy_minus_sign: | List of tools which are available to the model during the conversation. |
16+
| `completion_args` | [Optional[models.CompletionArgs]](../models/completionargs.md) | :heavy_minus_sign: | White-listed arguments from the completion API |
17+
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
18+
| `handoffs` | List[*str*] | :heavy_minus_sign: | N/A |
19+
| `object` | [Optional[models.AgentObject]](../models/agentobject.md) | :heavy_minus_sign: | N/A |

docs/models/agentconversation.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# AgentConversation
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
8+
| `id` | *str* | :heavy_check_mark: | N/A |
9+
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A |
10+
| `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 |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AgentConversationObject
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| -------------- | -------------- |
8+
| `CONVERSATION` | conversation |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# AgentCreationRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
8+
| `model` | *str* | :heavy_check_mark: | N/A |
9+
| `name` | *str* | :heavy_check_mark: | N/A |
10+
| `instructions` | *OptionalNullable[str]* | :heavy_minus_sign: | Instruction prompt the model will follow during the conversation. |
11+
| `tools` | List[[models.AgentCreationRequestTools](../models/agentcreationrequesttools.md)] | :heavy_minus_sign: | List of tools which are available to the model during the conversation. |
12+
| `completion_args` | [Optional[models.CompletionArgs]](../models/completionargs.md) | :heavy_minus_sign: | White-listed arguments from the completion API |
13+
| `description` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
14+
| `handoffs` | List[*str*] | :heavy_minus_sign: | N/A |
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# AgentCreationRequestTools
2+
3+
4+
## Supported Types
5+
6+
### `models.CodeInterpreterTool`
7+
8+
```python
9+
value: models.CodeInterpreterTool = /* values here */
10+
```
11+
12+
### `models.DocumentLibraryTool`
13+
14+
```python
15+
value: models.DocumentLibraryTool = /* values here */
16+
```
17+
18+
### `models.FunctionTool`
19+
20+
```python
21+
value: models.FunctionTool = /* values here */
22+
```
23+
24+
### `models.ImageGenerationTool`
25+
26+
```python
27+
value: models.ImageGenerationTool = /* values here */
28+
```
29+
30+
### `models.WebSearchTool`
31+
32+
```python
33+
value: models.WebSearchTool = /* values here */
34+
```
35+
36+
### `models.WebSearchPremiumTool`
37+
38+
```python
39+
value: models.WebSearchPremiumTool = /* values here */
40+
```
41+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# AgentHandoffDoneEvent
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
8+
| `id` | *str* | :heavy_check_mark: | N/A |
9+
| `next_agent_id` | *str* | :heavy_check_mark: | N/A |
10+
| `next_agent_name` | *str* | :heavy_check_mark: | N/A |
11+
| `type` | [Optional[models.AgentHandoffDoneEventType]](../models/agenthandoffdoneeventtype.md) | :heavy_minus_sign: | N/A |
12+
| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A |
13+
| `output_index` | *Optional[int]* | :heavy_minus_sign: | N/A |
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# AgentHandoffDoneEventType
2+
3+
4+
## Values
5+
6+
| Name | Value |
7+
| -------------------- | -------------------- |
8+
| `AGENT_HANDOFF_DONE` | agent.handoff.done |

0 commit comments

Comments
 (0)