Skip to content

Commit

Permalink
Fix AgentsCompletionStreamRequest (#132)
Browse files Browse the repository at this point in the history
* fix agents

* update doc
  • Loading branch information
GaspardBT authored Aug 16, 2024
1 parent bcb1282 commit f769a07
Show file tree
Hide file tree
Showing 71 changed files with 454 additions and 255 deletions.
19 changes: 12 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 2d045ec7-2ebb-4f4d-ad25-40953b132161
management:
docChecksum: a7c4268dd1228c969aecfd7cfdb6ca3c
docChecksum: c19f5a86b8045af32a46604ee5478061
docVersion: 0.0.2
speakeasyVersion: 1.357.4
generationVersion: 2.390.6
releaseVersion: 1.0.1
configChecksum: 374a669373f10730cda1eb9a91d59b8b
speakeasyVersion: 1.372.0
generationVersion: 2.399.0
releaseVersion: 1.1.3
configChecksum: b9757e45cfabeceebf51f9a514724903
repoURL: https://github.com/mistralai/client-python.git
installationURL: https://github.com/mistralai/client-python.git
published: true
features:
python:
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.2
core: 5.3.7
core: 5.3.8
defaultEnabledRetries: 0.2.0
envVarSecurityUsage: 0.3.1
examples: 3.0.0
Expand All @@ -27,13 +27,14 @@ features:
multipartFileContentType: 1.0.0
nameOverrides: 3.0.0
nullables: 1.0.0
openEnums: 1.0.0
responseFormat: 1.0.0
retries: 3.0.0
sdkHooks: 1.0.0
serverEvents: 1.0.2
serverEventsSentinels: 0.1.0
serverIDs: 3.0.0
unions: 3.0.1
unions: 3.0.2
uploadStreams: 1.0.0
generatedFiles:
- src/mistralai/sdkconfiguration.py
Expand Down Expand Up @@ -211,6 +212,7 @@ generatedFiles:
- docs/models/chatcompletionchoice.md
- docs/models/assistantmessagerole.md
- docs/models/assistantmessage.md
- docs/models/tooltypes.md
- docs/models/toolcall.md
- docs/models/arguments.md
- docs/models/functioncall.md
Expand All @@ -219,6 +221,7 @@ generatedFiles:
- docs/models/messages.md
- docs/models/toolchoice.md
- docs/models/chatcompletionrequest.md
- docs/models/tooltooltypes.md
- docs/models/tool.md
- docs/models/function.md
- docs/models/responseformats.md
Expand Down Expand Up @@ -252,6 +255,8 @@ generatedFiles:
- docs/models/agentscompletionrequesttoolchoice.md
- docs/models/agentscompletionrequest.md
- docs/models/agentscompletionstreamrequeststop.md
- docs/models/agentscompletionstreamrequestmessages.md
- docs/models/agentscompletionstreamrequesttoolchoice.md
- docs/models/agentscompletionstreamrequest.md
- docs/models/embeddingresponse.md
- docs/models/embeddingresponsedata.md
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: true
python:
version: 1.0.1
version: 1.1.3
additionalDependencies:
dev:
pytest: ^8.2.2
Expand Down
33 changes: 30 additions & 3 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,42 @@
speakeasyVersion: 1.357.4
sources: {}
speakeasyVersion: 1.372.0
sources:
mistral-azure-source:
sourceNamespace: mistral-openapi-azure
sourceRevisionDigest: sha256:bc53dba5935490a409045de3c39ccf9e90243a289656dd538a542990aa376cca
sourceBlobDigest: sha256:4173c3be19775dd2bdd4ce28bb9ae6655650df75f2b689a44c3362d418d69d49
tags:
- latest
mistral-google-cloud-source:
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:ab52d75474e071db240ed9a5367dc6374867b5c9306d478dcfdf8f7b7d08607f
sourceBlobDigest: sha256:d5f9c665861d7fedd5093567d13e1f7f6a12b82137fbbecda4708007b15030ba
tags:
- latest
mistral-openapi:
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:e4d5f5fe40e7f1141006ba40c1d85b743ce5dc2407635ca2e776ba0dfb00a398
sourceBlobDigest: sha256:56f1bbe3a050c9505e003bb9790e443084922bff74b072805757076cdb8a136e
tags:
- latest
targets:
mistralai-azure-sdk:
source: mistral-azure-source
sourceNamespace: mistral-openapi-azure
sourceRevisionDigest: sha256:bc53dba5935490a409045de3c39ccf9e90243a289656dd538a542990aa376cca
sourceBlobDigest: sha256:4173c3be19775dd2bdd4ce28bb9ae6655650df75f2b689a44c3362d418d69d49
outLocation: ./packages/mistralai_azure
mistralai-gcp-sdk:
source: mistral-google-cloud-source
sourceNamespace: mistral-openapi-google-cloud
sourceRevisionDigest: sha256:ab52d75474e071db240ed9a5367dc6374867b5c9306d478dcfdf8f7b7d08607f
sourceBlobDigest: sha256:d5f9c665861d7fedd5093567d13e1f7f6a12b82137fbbecda4708007b15030ba
outLocation: ./packages/mistralai_gcp
mistralai-sdk:
source: mistral-openapi
outLocation: /github/workspace/repo
sourceNamespace: mistral-openapi
sourceRevisionDigest: sha256:e4d5f5fe40e7f1141006ba40c1d85b743ce5dc2407635ca2e776ba0dfb00a398
sourceBlobDigest: sha256:56f1bbe3a050c9505e003bb9790e443084922bff74b072805757076cdb8a136e
outLocation: /Users/gaspard/public-mistral/client-python
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion docs/models/agentscompletionrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `messages` | List[[models.AgentsCompletionRequestMessages](../models/agentscompletionrequestmessages.md)] | :heavy_check_mark: | The prompt(s) to generate completions for, encoded as a list of dict with role and content. | {<br/>"role": "user",<br/>"content": "Who is the best French painter? Answer in one short sentence."<br/>} |
| `messages` | List[[models.AgentsCompletionRequestMessages](../models/agentscompletionrequestmessages.md)] | :heavy_check_mark: | The prompt(s) to generate completions for, encoded as a list of dict with role and content. | [<br/>{<br/>"role": "user",<br/>"content": "Who is the best French painter? Answer in one short sentence."<br/>}<br/>] |
| `agent_id` | *str* | :heavy_check_mark: | The ID of the agent to use for this completion. | |
| `max_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | The maximum number of tokens to generate in the completion. The token count of your prompt plus `max_tokens` cannot exceed the model's context length. | |
| `min_tokens` | *OptionalNullable[int]* | :heavy_minus_sign: | The minimum number of tokens to generate in the completion. | |
Expand Down
Loading

0 comments on commit f769a07

Please sign in to comment.