mistralai 1.9.11__tar.gz → 1.10.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {mistralai-1.9.11 → mistralai-1.10.0}/PKG-INFO +30 -12
- {mistralai-1.9.11 → mistralai-1.10.0}/README-PYPI.md +25 -11
- {mistralai-1.9.11 → mistralai-1.10.0}/pyproject.toml +5 -1
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/_hooks/registration.py +5 -0
- mistralai-1.10.0/src/mistralai/_hooks/tracing.py +50 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/_version.py +2 -2
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/accesses.py +8 -8
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/agents.py +29 -17
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/chat.py +41 -29
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/conversations.py +294 -62
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/documents.py +19 -3
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/embeddings.py +6 -6
- mistralai-1.10.0/src/mistralai/extra/observability/__init__.py +15 -0
- mistralai-1.10.0/src/mistralai/extra/observability/otel.py +393 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/run/tools.py +28 -16
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/files.py +6 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/fim.py +17 -5
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/mistral_agents.py +229 -1
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/mistral_jobs.py +10 -10
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/__init__.py +69 -2
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agent.py +15 -2
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agentconversation.py +11 -3
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agentcreationrequest.py +6 -2
- mistralai-1.9.11/src/mistralai/models/agents_api_v1_agents_getop.py → mistralai-1.10.0/src/mistralai/models/agents_api_v1_agents_deleteop.py +2 -2
- mistralai-1.10.0/src/mistralai/models/agents_api_v1_agents_getop.py +53 -0
- mistralai-1.10.0/src/mistralai/models/agents_api_v1_agents_listop.py +94 -0
- mistralai-1.10.0/src/mistralai/models/agents_api_v1_conversations_deleteop.py +18 -0
- mistralai-1.10.0/src/mistralai/models/agents_api_v1_conversations_listop.py +74 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agentscompletionrequest.py +21 -6
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agentscompletionstreamrequest.py +21 -6
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agentupdaterequest.py +18 -2
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/audiotranscriptionrequest.py +2 -0
- mistralai-1.10.0/src/mistralai/models/batchjobin.py +73 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/chatcompletionrequest.py +22 -5
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/chatcompletionstreamrequest.py +22 -5
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/conversationrequest.py +15 -4
- mistralai-1.10.0/src/mistralai/models/conversationrestartrequest.py +90 -0
- mistralai-1.10.0/src/mistralai/models/conversationrestartstreamrequest.py +92 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/conversationstreamrequest.py +15 -4
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/documentout.py +26 -10
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/documentupdatein.py +24 -3
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/embeddingrequest.py +8 -8
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/files_api_routes_list_filesop.py +7 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/fimcompletionrequest.py +8 -9
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/fimcompletionstreamrequest.py +8 -9
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_documents_list_v1op.py +15 -2
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraryout.py +10 -7
- mistralai-1.10.0/src/mistralai/models/listfilesout.py +52 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/modelcapabilities.py +13 -4
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/modelconversation.py +8 -2
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/ocrpageobject.py +26 -5
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/ocrrequest.py +17 -1
- mistralai-1.10.0/src/mistralai/models/ocrtableobject.py +31 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/prediction.py +4 -0
- mistralai-1.10.0/src/mistralai/models/requestsource.py +7 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/responseformat.py +4 -2
- mistralai-1.10.0/src/mistralai/models/responseformats.py +7 -0
- mistralai-1.9.11/src/mistralai/models/batchjobin.py → mistralai-1.10.0/src/mistralai/models/sharingdelete.py +15 -21
- mistralai-1.10.0/src/mistralai/models/sharingin.py +61 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/sharingout.py +3 -3
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/toolexecutiondeltaevent.py +13 -4
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/toolexecutiondoneevent.py +13 -4
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/toolexecutionentry.py +9 -4
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/toolexecutionstartedevent.py +13 -4
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models_.py +2 -14
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/ocr.py +18 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/transcriptions.py +4 -4
- mistralai-1.9.11/src/mistralai/models/agents_api_v1_agents_listop.py +0 -24
- mistralai-1.9.11/src/mistralai/models/agents_api_v1_conversations_listop.py +0 -37
- mistralai-1.9.11/src/mistralai/models/conversationrestartrequest.py +0 -42
- mistralai-1.9.11/src/mistralai/models/conversationrestartstreamrequest.py +0 -44
- mistralai-1.9.11/src/mistralai/models/listfilesout.py +0 -21
- mistralai-1.9.11/src/mistralai/models/responseformats.py +0 -8
- mistralai-1.9.11/src/mistralai/models/sharingdelete.py +0 -26
- mistralai-1.9.11/src/mistralai/models/sharingin.py +0 -30
- {mistralai-1.9.11 → mistralai-1.10.0}/LICENSE +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/_hooks/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/_hooks/custom_user_agent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/_hooks/registration.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/_hooks/sdkhooks.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/_hooks/types.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/_version.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/basesdk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/chat.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/httpclient.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/assistantmessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/chatcompletionchoice.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/chatcompletionrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/chatcompletionresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/chatcompletionstreamrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/completionchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/completionevent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/completionresponsestreamchoice.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/contentchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/deltamessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/documenturlchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/filechunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/function.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/functioncall.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/functionname.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/httpvalidationerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/imageurl.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/imageurlchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/jsonschema.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/mistralpromptmode.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/ocrimageobject.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/ocrpagedimensions.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/ocrpageobject.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/ocrrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/ocrresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/ocrusageinfo.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/prediction.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/referencechunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/responseformat.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/responseformats.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/sdkerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/security.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/systemmessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/textchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/tool.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/toolcall.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/toolchoice.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/toolchoiceenum.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/toolmessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/tooltypes.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/usageinfo.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/usermessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/models/validationerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/ocr.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/py.typed +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/sdk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/sdkconfiguration.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/types/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/types/basemodel.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/annotations.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/datetimes.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/enums.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/eventstreaming.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/forms.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/headers.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/logger.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/metadata.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/queryparams.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/requestbodies.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/retries.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/security.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/serializers.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/url.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_azure/src/mistralai_azure/utils/values.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/_hooks/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/_hooks/custom_user_agent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/_hooks/registration.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/_hooks/sdkhooks.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/_hooks/types.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/_version.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/basesdk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/chat.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/fim.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/httpclient.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/assistantmessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionchoice.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/chatcompletionstreamrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/completionchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/completionevent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/completionresponsestreamchoice.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/contentchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/deltamessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/fimcompletionrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/fimcompletionresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/fimcompletionstreamrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/function.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/functioncall.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/functionname.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/httpvalidationerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/imageurl.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/imageurlchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/jsonschema.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/prediction.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/referencechunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/responseformat.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/responseformats.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/sdkerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/security.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/systemmessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/textchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/tool.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/toolcall.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/toolchoice.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/toolchoiceenum.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/toolmessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/tooltypes.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/usageinfo.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/usermessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/models/validationerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/py.typed +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/sdk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/sdkconfiguration.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/types/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/types/basemodel.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/annotations.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/enums.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/eventstreaming.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/forms.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/headers.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/logger.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/metadata.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/queryparams.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/requestbodies.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/retries.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/security.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/serializers.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/url.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/packages/mistralai_gcp/src/mistralai_gcp/utils/values.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/py.typed +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/_hooks/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/_hooks/custom_user_agent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/_hooks/deprecation_warning.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/_hooks/sdkhooks.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/_hooks/types.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/async_client.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/audio.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/basesdk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/batch.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/beta.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/classifiers.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/client.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/README.md +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/exceptions.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/mcp/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/mcp/auth.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/mcp/base.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/mcp/sse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/mcp/stdio.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/run/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/run/context.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/run/result.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/run/utils.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/struct_chat.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/tests/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/tests/test_struct_chat.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/tests/test_utils.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/utils/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/utils/_pydantic_helper.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/extra/utils/response_format.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/fine_tuning.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/httpclient.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/jobs.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/libraries.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agenthandoffdoneevent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agenthandoffentry.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agenthandoffstartedevent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agents_api_v1_agents_update_versionop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agents_api_v1_agents_updateop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agents_api_v1_conversations_append_streamop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agents_api_v1_conversations_appendop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agents_api_v1_conversations_getop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agents_api_v1_conversations_historyop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agents_api_v1_conversations_messagesop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agents_api_v1_conversations_restart_streamop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/agents_api_v1_conversations_restartop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/apiendpoint.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/archiveftmodelout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/assistantmessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/audiochunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/audiotranscriptionrequeststream.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/basemodelcard.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/batcherror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/batchjobout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/batchjobsout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/batchjobstatus.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/builtinconnectors.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/chatclassificationrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/chatcompletionchoice.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/chatcompletionresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/chatmoderationrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/checkpointout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/classificationrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/classificationresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/classificationtargetresult.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/classifierdetailedjobout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/classifierftmodelout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/classifierjobout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/classifiertargetin.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/classifiertargetout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/classifiertrainingparameters.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/classifiertrainingparametersin.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/codeinterpretertool.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/completionargs.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/completionargsstop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/completionchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/completiondetailedjobout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/completionevent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/completionftmodelout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/completionjobout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/completionresponsestreamchoice.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/completiontrainingparameters.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/completiontrainingparametersin.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/contentchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/conversationappendrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/conversationappendstreamrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/conversationevents.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/conversationhistory.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/conversationinputs.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/conversationmessages.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/conversationresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/conversationusageinfo.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/delete_model_v1_models_model_id_deleteop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/deletefileout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/deletemodelout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/deltamessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/documentlibrarytool.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/documenttextcontent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/documenturlchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/embeddingdtype.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/embeddingresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/embeddingresponsedata.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/encodingformat.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/entitytype.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/eventout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/file.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/filechunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/filepurpose.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/files_api_routes_delete_fileop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/files_api_routes_download_fileop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/files_api_routes_get_signed_urlop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/files_api_routes_retrieve_fileop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/files_api_routes_upload_fileop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/fileschema.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/filesignedurl.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/fimcompletionresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/finetuneablemodeltype.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/ftclassifierlossfunction.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/ftmodelcapabilitiesout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/ftmodelcard.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/function.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/functioncall.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/functioncallentry.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/functioncallentryarguments.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/functioncallevent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/functionname.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/functionresultentry.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/functiontool.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/githubrepositoryin.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/githubrepositoryout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/httpvalidationerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/imagegenerationtool.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/imageurl.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/imageurlchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/inputentries.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/inputs.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/instructrequest.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobin.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobmetadataout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_batch_cancel_batch_jobop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_batch_get_batch_jobop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_batch_get_batch_jobsop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_fine_tuning_archive_fine_tuned_modelop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_fine_tuning_cancel_fine_tuning_jobop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_fine_tuning_create_fine_tuning_jobop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_fine_tuning_get_fine_tuning_jobsop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_fine_tuning_start_fine_tuning_jobop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_fine_tuning_unarchive_fine_tuned_modelop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobs_api_routes_fine_tuning_update_fine_tuned_modelop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jobsout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/jsonschema.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/legacyjobmetadataout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_delete_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_documents_delete_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_documents_get_extracted_text_signed_url_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_documents_get_signed_url_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_documents_get_status_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_documents_get_text_content_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_documents_get_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_documents_reprocess_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_documents_update_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_documents_upload_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_get_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_share_create_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_share_delete_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_share_list_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraries_update_v1op.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraryin.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/libraryinupdate.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/listdocumentout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/listlibraryout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/listsharingout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/messageentries.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/messageinputcontentchunks.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/messageinputentry.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/messageoutputcontentchunks.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/messageoutputentry.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/messageoutputevent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/metricout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/mistralerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/mistralpromptmode.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/modellist.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/moderationobject.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/moderationresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/no_response_error.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/ocrimageobject.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/ocrpagedimensions.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/ocrresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/ocrusageinfo.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/outputcontentchunks.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/paginationinfo.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/processingstatusout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/referencechunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/responsedoneevent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/responseerrorevent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/responsestartedevent.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/responsevalidationerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/retrieve_model_v1_models_model_id_getop.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/retrievefileout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/sampletype.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/sdkerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/security.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/shareenum.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/source.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/ssetypes.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/systemmessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/systemmessagecontentchunks.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/textchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/thinkchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/timestampgranularity.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/tool.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/toolcall.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/toolchoice.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/toolchoiceenum.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/toolfilechunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/toolmessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/toolreferencechunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/tooltypes.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/trainingfile.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/transcriptionresponse.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/transcriptionsegmentchunk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/transcriptionstreamdone.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/transcriptionstreamevents.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/transcriptionstreameventtypes.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/transcriptionstreamlanguage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/transcriptionstreamsegmentdelta.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/transcriptionstreamtextdelta.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/unarchiveftmodelout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/updateftmodelin.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/uploadfileout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/usageinfo.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/usermessage.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/validationerror.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/wandbintegration.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/wandbintegrationout.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/websearchpremiumtool.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/models/websearchtool.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/py.typed +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/sdk.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/sdkconfiguration.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/types/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/types/basemodel.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/__init__.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/annotations.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/datetimes.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/enums.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/eventstreaming.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/forms.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/headers.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/logger.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/metadata.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/queryparams.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/requestbodies.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/retries.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/security.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/serializers.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/unmarshal_json_response.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/url.py +0 -0
- {mistralai-1.9.11 → mistralai-1.10.0}/src/mistralai/utils/values.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mistralai
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.10.0
|
|
4
4
|
Summary: Python Client SDK for the Mistral AI API.
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: Mistral
|
|
@@ -21,6 +21,10 @@ Requires-Dist: griffe (>=1.7.3,<2.0) ; extra == "agents"
|
|
|
21
21
|
Requires-Dist: httpx (>=0.28.1)
|
|
22
22
|
Requires-Dist: invoke (>=2.2.0,<3.0.0)
|
|
23
23
|
Requires-Dist: mcp (>=1.0,<2.0) ; (python_version >= "3.10") and (extra == "agents")
|
|
24
|
+
Requires-Dist: opentelemetry-api (>=1.33.1,<2.0.0)
|
|
25
|
+
Requires-Dist: opentelemetry-exporter-otlp-proto-http (>=1.37.0,<2.0.0)
|
|
26
|
+
Requires-Dist: opentelemetry-sdk (>=1.33.1,<2.0.0)
|
|
27
|
+
Requires-Dist: opentelemetry-semantic-conventions (>=0.59b0,<0.60)
|
|
24
28
|
Requires-Dist: pydantic (>=2.10.3)
|
|
25
29
|
Requires-Dist: python-dateutil (>=2.8.2)
|
|
26
30
|
Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
|
|
@@ -176,12 +180,14 @@ with Mistral(
|
|
|
176
180
|
api_key=os.getenv("MISTRAL_API_KEY", ""),
|
|
177
181
|
) as mistral:
|
|
178
182
|
|
|
179
|
-
res = mistral.chat.complete(model="mistral-
|
|
183
|
+
res = mistral.chat.complete(model="mistral-large-latest", messages=[
|
|
180
184
|
{
|
|
181
185
|
"content": "Who is the best French painter? Answer in one short sentence.",
|
|
182
186
|
"role": "user",
|
|
183
187
|
},
|
|
184
|
-
], stream=False
|
|
188
|
+
], stream=False, response_format={
|
|
189
|
+
"type": "text",
|
|
190
|
+
})
|
|
185
191
|
|
|
186
192
|
# Handle response
|
|
187
193
|
print(res)
|
|
@@ -202,12 +208,14 @@ async def main():
|
|
|
202
208
|
api_key=os.getenv("MISTRAL_API_KEY", ""),
|
|
203
209
|
) as mistral:
|
|
204
210
|
|
|
205
|
-
res = await mistral.chat.complete_async(model="mistral-
|
|
211
|
+
res = await mistral.chat.complete_async(model="mistral-large-latest", messages=[
|
|
206
212
|
{
|
|
207
213
|
"content": "Who is the best French painter? Answer in one short sentence.",
|
|
208
214
|
"role": "user",
|
|
209
215
|
},
|
|
210
|
-
], stream=False
|
|
216
|
+
], stream=False, response_format={
|
|
217
|
+
"type": "text",
|
|
218
|
+
})
|
|
211
219
|
|
|
212
220
|
# Handle response
|
|
213
221
|
print(res)
|
|
@@ -283,7 +291,9 @@ with Mistral(
|
|
|
283
291
|
"content": "Who is the best French painter? Answer in one short sentence.",
|
|
284
292
|
"role": "user",
|
|
285
293
|
},
|
|
286
|
-
], agent_id="<id>", stream=False
|
|
294
|
+
], agent_id="<id>", stream=False, response_format={
|
|
295
|
+
"type": "text",
|
|
296
|
+
})
|
|
287
297
|
|
|
288
298
|
# Handle response
|
|
289
299
|
print(res)
|
|
@@ -309,7 +319,9 @@ async def main():
|
|
|
309
319
|
"content": "Who is the best French painter? Answer in one short sentence.",
|
|
310
320
|
"role": "user",
|
|
311
321
|
},
|
|
312
|
-
], agent_id="<id>", stream=False
|
|
322
|
+
], agent_id="<id>", stream=False, response_format={
|
|
323
|
+
"type": "text",
|
|
324
|
+
})
|
|
313
325
|
|
|
314
326
|
# Handle response
|
|
315
327
|
print(res)
|
|
@@ -479,7 +491,7 @@ The documentation for the GCP SDK is available [here](https://github.com/mistral
|
|
|
479
491
|
#### [audio.transcriptions](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md)
|
|
480
492
|
|
|
481
493
|
* [complete](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md#complete) - Create Transcription
|
|
482
|
-
* [stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md#stream) - Create
|
|
494
|
+
* [stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md#stream) - Create Streaming Transcription (SSE)
|
|
483
495
|
|
|
484
496
|
### [batch](https://github.com/mistralai/client-python/blob/master/docs/sdks/batch/README.md)
|
|
485
497
|
|
|
@@ -500,6 +512,7 @@ The documentation for the GCP SDK is available [here](https://github.com/mistral
|
|
|
500
512
|
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#list) - List agent entities.
|
|
501
513
|
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#get) - Retrieve an agent entity.
|
|
502
514
|
* [update](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#update) - Update an agent entity.
|
|
515
|
+
* [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#delete) - Delete an agent entity.
|
|
503
516
|
* [update_version](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#update_version) - Update an agent version.
|
|
504
517
|
|
|
505
518
|
#### [beta.conversations](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md)
|
|
@@ -507,6 +520,7 @@ The documentation for the GCP SDK is available [here](https://github.com/mistral
|
|
|
507
520
|
* [start](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#start) - Create a conversation and append entries to it.
|
|
508
521
|
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#list) - List all created conversations.
|
|
509
522
|
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get) - Retrieve a conversation information.
|
|
523
|
+
* [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#delete) - Delete a conversation.
|
|
510
524
|
* [append](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#append) - Append new entries to an existing conversation.
|
|
511
525
|
* [get_history](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get_history) - Retrieve all entries in a conversation.
|
|
512
526
|
* [get_messages](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get_messages) - Retrieve all messages in a conversation.
|
|
@@ -531,7 +545,7 @@ The documentation for the GCP SDK is available [here](https://github.com/mistral
|
|
|
531
545
|
|
|
532
546
|
#### [beta.libraries.documents](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md)
|
|
533
547
|
|
|
534
|
-
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#list) - List
|
|
548
|
+
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#list) - List documents in a given library.
|
|
535
549
|
* [upload](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#upload) - Upload a new document.
|
|
536
550
|
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#get) - Retrieve the metadata of a specific document.
|
|
537
551
|
* [update](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#update) - Update the metadata of a specific document.
|
|
@@ -628,7 +642,11 @@ with Mistral(
|
|
|
628
642
|
"tool_call_id": "<id>",
|
|
629
643
|
"result": "<value>",
|
|
630
644
|
},
|
|
631
|
-
], stream=True
|
|
645
|
+
], stream=True, completion_args={
|
|
646
|
+
"response_format": {
|
|
647
|
+
"type": "text",
|
|
648
|
+
},
|
|
649
|
+
})
|
|
632
650
|
|
|
633
651
|
with res as event_stream:
|
|
634
652
|
for event in event_stream:
|
|
@@ -743,7 +761,7 @@ with Mistral(
|
|
|
743
761
|
res = None
|
|
744
762
|
try:
|
|
745
763
|
|
|
746
|
-
res = mistral.models.
|
|
764
|
+
res = mistral.models.retrieve(model_id="ft:open-mistral-7b:587a6b29:20240514:7e773925")
|
|
747
765
|
|
|
748
766
|
# Handle response
|
|
749
767
|
print(res)
|
|
@@ -777,7 +795,7 @@ with Mistral(
|
|
|
777
795
|
|
|
778
796
|
|
|
779
797
|
**Inherit from [`MistralError`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/mistralerror.py)**:
|
|
780
|
-
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to
|
|
798
|
+
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 48 of 70 methods.*
|
|
781
799
|
* [`ResponseValidationError`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
|
|
782
800
|
|
|
783
801
|
</details>
|
|
@@ -145,12 +145,14 @@ with Mistral(
|
|
|
145
145
|
api_key=os.getenv("MISTRAL_API_KEY", ""),
|
|
146
146
|
) as mistral:
|
|
147
147
|
|
|
148
|
-
res = mistral.chat.complete(model="mistral-
|
|
148
|
+
res = mistral.chat.complete(model="mistral-large-latest", messages=[
|
|
149
149
|
{
|
|
150
150
|
"content": "Who is the best French painter? Answer in one short sentence.",
|
|
151
151
|
"role": "user",
|
|
152
152
|
},
|
|
153
|
-
], stream=False
|
|
153
|
+
], stream=False, response_format={
|
|
154
|
+
"type": "text",
|
|
155
|
+
})
|
|
154
156
|
|
|
155
157
|
# Handle response
|
|
156
158
|
print(res)
|
|
@@ -171,12 +173,14 @@ async def main():
|
|
|
171
173
|
api_key=os.getenv("MISTRAL_API_KEY", ""),
|
|
172
174
|
) as mistral:
|
|
173
175
|
|
|
174
|
-
res = await mistral.chat.complete_async(model="mistral-
|
|
176
|
+
res = await mistral.chat.complete_async(model="mistral-large-latest", messages=[
|
|
175
177
|
{
|
|
176
178
|
"content": "Who is the best French painter? Answer in one short sentence.",
|
|
177
179
|
"role": "user",
|
|
178
180
|
},
|
|
179
|
-
], stream=False
|
|
181
|
+
], stream=False, response_format={
|
|
182
|
+
"type": "text",
|
|
183
|
+
})
|
|
180
184
|
|
|
181
185
|
# Handle response
|
|
182
186
|
print(res)
|
|
@@ -252,7 +256,9 @@ with Mistral(
|
|
|
252
256
|
"content": "Who is the best French painter? Answer in one short sentence.",
|
|
253
257
|
"role": "user",
|
|
254
258
|
},
|
|
255
|
-
], agent_id="<id>", stream=False
|
|
259
|
+
], agent_id="<id>", stream=False, response_format={
|
|
260
|
+
"type": "text",
|
|
261
|
+
})
|
|
256
262
|
|
|
257
263
|
# Handle response
|
|
258
264
|
print(res)
|
|
@@ -278,7 +284,9 @@ async def main():
|
|
|
278
284
|
"content": "Who is the best French painter? Answer in one short sentence.",
|
|
279
285
|
"role": "user",
|
|
280
286
|
},
|
|
281
|
-
], agent_id="<id>", stream=False
|
|
287
|
+
], agent_id="<id>", stream=False, response_format={
|
|
288
|
+
"type": "text",
|
|
289
|
+
})
|
|
282
290
|
|
|
283
291
|
# Handle response
|
|
284
292
|
print(res)
|
|
@@ -448,7 +456,7 @@ The documentation for the GCP SDK is available [here](https://github.com/mistral
|
|
|
448
456
|
#### [audio.transcriptions](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md)
|
|
449
457
|
|
|
450
458
|
* [complete](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md#complete) - Create Transcription
|
|
451
|
-
* [stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md#stream) - Create
|
|
459
|
+
* [stream](https://github.com/mistralai/client-python/blob/master/docs/sdks/transcriptions/README.md#stream) - Create Streaming Transcription (SSE)
|
|
452
460
|
|
|
453
461
|
### [batch](https://github.com/mistralai/client-python/blob/master/docs/sdks/batch/README.md)
|
|
454
462
|
|
|
@@ -469,6 +477,7 @@ The documentation for the GCP SDK is available [here](https://github.com/mistral
|
|
|
469
477
|
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#list) - List agent entities.
|
|
470
478
|
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#get) - Retrieve an agent entity.
|
|
471
479
|
* [update](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#update) - Update an agent entity.
|
|
480
|
+
* [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#delete) - Delete an agent entity.
|
|
472
481
|
* [update_version](https://github.com/mistralai/client-python/blob/master/docs/sdks/mistralagents/README.md#update_version) - Update an agent version.
|
|
473
482
|
|
|
474
483
|
#### [beta.conversations](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md)
|
|
@@ -476,6 +485,7 @@ The documentation for the GCP SDK is available [here](https://github.com/mistral
|
|
|
476
485
|
* [start](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#start) - Create a conversation and append entries to it.
|
|
477
486
|
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#list) - List all created conversations.
|
|
478
487
|
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get) - Retrieve a conversation information.
|
|
488
|
+
* [delete](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#delete) - Delete a conversation.
|
|
479
489
|
* [append](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#append) - Append new entries to an existing conversation.
|
|
480
490
|
* [get_history](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get_history) - Retrieve all entries in a conversation.
|
|
481
491
|
* [get_messages](https://github.com/mistralai/client-python/blob/master/docs/sdks/conversations/README.md#get_messages) - Retrieve all messages in a conversation.
|
|
@@ -500,7 +510,7 @@ The documentation for the GCP SDK is available [here](https://github.com/mistral
|
|
|
500
510
|
|
|
501
511
|
#### [beta.libraries.documents](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md)
|
|
502
512
|
|
|
503
|
-
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#list) - List
|
|
513
|
+
* [list](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#list) - List documents in a given library.
|
|
504
514
|
* [upload](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#upload) - Upload a new document.
|
|
505
515
|
* [get](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#get) - Retrieve the metadata of a specific document.
|
|
506
516
|
* [update](https://github.com/mistralai/client-python/blob/master/docs/sdks/documents/README.md#update) - Update the metadata of a specific document.
|
|
@@ -597,7 +607,11 @@ with Mistral(
|
|
|
597
607
|
"tool_call_id": "<id>",
|
|
598
608
|
"result": "<value>",
|
|
599
609
|
},
|
|
600
|
-
], stream=True
|
|
610
|
+
], stream=True, completion_args={
|
|
611
|
+
"response_format": {
|
|
612
|
+
"type": "text",
|
|
613
|
+
},
|
|
614
|
+
})
|
|
601
615
|
|
|
602
616
|
with res as event_stream:
|
|
603
617
|
for event in event_stream:
|
|
@@ -712,7 +726,7 @@ with Mistral(
|
|
|
712
726
|
res = None
|
|
713
727
|
try:
|
|
714
728
|
|
|
715
|
-
res = mistral.models.
|
|
729
|
+
res = mistral.models.retrieve(model_id="ft:open-mistral-7b:587a6b29:20240514:7e773925")
|
|
716
730
|
|
|
717
731
|
# Handle response
|
|
718
732
|
print(res)
|
|
@@ -746,7 +760,7 @@ with Mistral(
|
|
|
746
760
|
|
|
747
761
|
|
|
748
762
|
**Inherit from [`MistralError`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/mistralerror.py)**:
|
|
749
|
-
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to
|
|
763
|
+
* [`HTTPValidationError`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/httpvalidationerror.py): Validation Error. Status code `422`. Applicable to 48 of 70 methods.*
|
|
750
764
|
* [`ResponseValidationError`](https://github.com/mistralai/client-python/blob/master/./src/mistralai/models/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
|
|
751
765
|
|
|
752
766
|
</details>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "mistralai"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.10.0"
|
|
4
4
|
description = "Python Client SDK for the Mistral AI API."
|
|
5
5
|
authors = [{ name = "Mistral" },]
|
|
6
6
|
readme = "README-PYPI.md"
|
|
@@ -13,6 +13,10 @@ dependencies = [
|
|
|
13
13
|
"typing-inspection >=0.4.0",
|
|
14
14
|
"pyyaml (>=6.0.2,<7.0.0)",
|
|
15
15
|
"invoke (>=2.2.0,<3.0.0)",
|
|
16
|
+
"opentelemetry-sdk (>=1.33.1,<2.0.0)",
|
|
17
|
+
"opentelemetry-api (>=1.33.1,<2.0.0)",
|
|
18
|
+
"opentelemetry-exporter-otlp-proto-http (>=1.37.0,<2.0.0)",
|
|
19
|
+
"opentelemetry-semantic-conventions (>=0.59b0,<0.60)",
|
|
16
20
|
]
|
|
17
21
|
|
|
18
22
|
[tool.poetry]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from .custom_user_agent import CustomUserAgentHook
|
|
2
2
|
from .deprecation_warning import DeprecationWarningHook
|
|
3
|
+
from .tracing import TracingHook
|
|
3
4
|
from .types import Hooks
|
|
4
5
|
|
|
5
6
|
# This file is only ever generated once on the first generation and then is free to be modified.
|
|
@@ -13,5 +14,9 @@ def init_hooks(hooks: Hooks):
|
|
|
13
14
|
with an instance of a hook that implements that specific Hook interface
|
|
14
15
|
Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
|
|
15
16
|
"""
|
|
17
|
+
tracing_hook = TracingHook()
|
|
16
18
|
hooks.register_before_request_hook(CustomUserAgentHook())
|
|
17
19
|
hooks.register_after_success_hook(DeprecationWarningHook())
|
|
20
|
+
hooks.register_after_success_hook(tracing_hook)
|
|
21
|
+
hooks.register_before_request_hook(tracing_hook)
|
|
22
|
+
hooks.register_after_error_hook(tracing_hook)
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import logging
|
|
2
|
+
from typing import Optional, Tuple, Union
|
|
3
|
+
|
|
4
|
+
import httpx
|
|
5
|
+
from opentelemetry.trace import Span
|
|
6
|
+
|
|
7
|
+
from ..extra.observability.otel import (
|
|
8
|
+
get_or_create_otel_tracer,
|
|
9
|
+
get_response_and_error,
|
|
10
|
+
get_traced_request_and_span,
|
|
11
|
+
get_traced_response,
|
|
12
|
+
)
|
|
13
|
+
from .types import (
|
|
14
|
+
AfterErrorContext,
|
|
15
|
+
AfterErrorHook,
|
|
16
|
+
AfterSuccessContext,
|
|
17
|
+
AfterSuccessHook,
|
|
18
|
+
BeforeRequestContext,
|
|
19
|
+
BeforeRequestHook,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
logger = logging.getLogger(__name__)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class TracingHook(BeforeRequestHook, AfterSuccessHook, AfterErrorHook):
|
|
26
|
+
def __init__(self) -> None:
|
|
27
|
+
self.tracing_enabled, self.tracer = get_or_create_otel_tracer()
|
|
28
|
+
self.request_span: Optional[Span] = None
|
|
29
|
+
|
|
30
|
+
def before_request(
|
|
31
|
+
self, hook_ctx: BeforeRequestContext, request: httpx.Request
|
|
32
|
+
) -> Union[httpx.Request, Exception]:
|
|
33
|
+
request, self.request_span = get_traced_request_and_span(tracing_enabled=self.tracing_enabled, tracer=self.tracer, span=self.request_span, operation_id=hook_ctx.operation_id, request=request)
|
|
34
|
+
return request
|
|
35
|
+
|
|
36
|
+
def after_success(
|
|
37
|
+
self, hook_ctx: AfterSuccessContext, response: httpx.Response
|
|
38
|
+
) -> Union[httpx.Response, Exception]:
|
|
39
|
+
response = get_traced_response(tracing_enabled=self.tracing_enabled, tracer=self.tracer, span=self.request_span, operation_id=hook_ctx.operation_id, response=response)
|
|
40
|
+
return response
|
|
41
|
+
|
|
42
|
+
def after_error(
|
|
43
|
+
self,
|
|
44
|
+
hook_ctx: AfterErrorContext,
|
|
45
|
+
response: Optional[httpx.Response],
|
|
46
|
+
error: Optional[Exception],
|
|
47
|
+
) -> Union[Tuple[Optional[httpx.Response], Optional[Exception]], Exception]:
|
|
48
|
+
if response:
|
|
49
|
+
response, error = get_response_and_error(tracing_enabled=self.tracing_enabled, tracer=self.tracer, span=self.request_span, operation_id=hook_ctx.operation_id, response=response, error=error)
|
|
50
|
+
return response, error
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "mistralai"
|
|
6
|
-
__version__: str = "1.
|
|
6
|
+
__version__: str = "1.10.0"
|
|
7
7
|
__openapi_doc_version__: str = "1.0.0"
|
|
8
8
|
__gen_version__: str = "2.687.13"
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 1.
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 1.10.0 2.687.13 1.0.0 mistralai"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -194,10 +194,10 @@ class Accesses(BaseSDK):
|
|
|
194
194
|
self,
|
|
195
195
|
*,
|
|
196
196
|
library_id: str,
|
|
197
|
-
org_id: str,
|
|
198
197
|
level: models.ShareEnum,
|
|
199
198
|
share_with_uuid: str,
|
|
200
199
|
share_with_type: models.EntityType,
|
|
200
|
+
org_id: OptionalNullable[str] = UNSET,
|
|
201
201
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
202
202
|
server_url: Optional[str] = None,
|
|
203
203
|
timeout_ms: Optional[int] = None,
|
|
@@ -208,10 +208,10 @@ class Accesses(BaseSDK):
|
|
|
208
208
|
Given a library id, you can create or update the access level of an entity. You have to be owner of the library to share a library. An owner cannot change their own role. A library cannot be shared outside of the organization.
|
|
209
209
|
|
|
210
210
|
:param library_id:
|
|
211
|
-
:param org_id:
|
|
212
211
|
:param level:
|
|
213
212
|
:param share_with_uuid: The id of the entity (user, workspace or organization) to share with
|
|
214
213
|
:param share_with_type: The type of entity, used to share a library.
|
|
214
|
+
:param org_id:
|
|
215
215
|
:param retries: Override the default retry configuration for this method
|
|
216
216
|
:param server_url: Override the default server URL for this method
|
|
217
217
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -300,10 +300,10 @@ class Accesses(BaseSDK):
|
|
|
300
300
|
self,
|
|
301
301
|
*,
|
|
302
302
|
library_id: str,
|
|
303
|
-
org_id: str,
|
|
304
303
|
level: models.ShareEnum,
|
|
305
304
|
share_with_uuid: str,
|
|
306
305
|
share_with_type: models.EntityType,
|
|
306
|
+
org_id: OptionalNullable[str] = UNSET,
|
|
307
307
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
308
308
|
server_url: Optional[str] = None,
|
|
309
309
|
timeout_ms: Optional[int] = None,
|
|
@@ -314,10 +314,10 @@ class Accesses(BaseSDK):
|
|
|
314
314
|
Given a library id, you can create or update the access level of an entity. You have to be owner of the library to share a library. An owner cannot change their own role. A library cannot be shared outside of the organization.
|
|
315
315
|
|
|
316
316
|
:param library_id:
|
|
317
|
-
:param org_id:
|
|
318
317
|
:param level:
|
|
319
318
|
:param share_with_uuid: The id of the entity (user, workspace or organization) to share with
|
|
320
319
|
:param share_with_type: The type of entity, used to share a library.
|
|
320
|
+
:param org_id:
|
|
321
321
|
:param retries: Override the default retry configuration for this method
|
|
322
322
|
:param server_url: Override the default server URL for this method
|
|
323
323
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -406,9 +406,9 @@ class Accesses(BaseSDK):
|
|
|
406
406
|
self,
|
|
407
407
|
*,
|
|
408
408
|
library_id: str,
|
|
409
|
-
org_id: str,
|
|
410
409
|
share_with_uuid: str,
|
|
411
410
|
share_with_type: models.EntityType,
|
|
411
|
+
org_id: OptionalNullable[str] = UNSET,
|
|
412
412
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
413
413
|
server_url: Optional[str] = None,
|
|
414
414
|
timeout_ms: Optional[int] = None,
|
|
@@ -419,9 +419,9 @@ class Accesses(BaseSDK):
|
|
|
419
419
|
Given a library id, you can delete the access level of an entity. An owner cannot delete it's own access. You have to be the owner of the library to delete an acces other than yours.
|
|
420
420
|
|
|
421
421
|
:param library_id:
|
|
422
|
-
:param org_id:
|
|
423
422
|
:param share_with_uuid: The id of the entity (user, workspace or organization) to share with
|
|
424
423
|
:param share_with_type: The type of entity, used to share a library.
|
|
424
|
+
:param org_id:
|
|
425
425
|
:param retries: Override the default retry configuration for this method
|
|
426
426
|
:param server_url: Override the default server URL for this method
|
|
427
427
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -509,9 +509,9 @@ class Accesses(BaseSDK):
|
|
|
509
509
|
self,
|
|
510
510
|
*,
|
|
511
511
|
library_id: str,
|
|
512
|
-
org_id: str,
|
|
513
512
|
share_with_uuid: str,
|
|
514
513
|
share_with_type: models.EntityType,
|
|
514
|
+
org_id: OptionalNullable[str] = UNSET,
|
|
515
515
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
516
516
|
server_url: Optional[str] = None,
|
|
517
517
|
timeout_ms: Optional[int] = None,
|
|
@@ -522,9 +522,9 @@ class Accesses(BaseSDK):
|
|
|
522
522
|
Given a library id, you can delete the access level of an entity. An owner cannot delete it's own access. You have to be the owner of the library to delete an acces other than yours.
|
|
523
523
|
|
|
524
524
|
:param library_id:
|
|
525
|
-
:param org_id:
|
|
526
525
|
:param share_with_uuid: The id of the entity (user, workspace or organization) to share with
|
|
527
526
|
:param share_with_type: The type of entity, used to share a library.
|
|
527
|
+
:param org_id:
|
|
528
528
|
:param retries: Override the default retry configuration for this method
|
|
529
529
|
:param server_url: Override the default server URL for this method
|
|
530
530
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -6,7 +6,7 @@ from mistralai._hooks import HookContext
|
|
|
6
6
|
from mistralai.types import OptionalNullable, UNSET
|
|
7
7
|
from mistralai.utils import eventstreaming, get_security_from_env
|
|
8
8
|
from mistralai.utils.unmarshal_json_response import unmarshal_json_response
|
|
9
|
-
from typing import Any, List, Mapping, Optional, Union
|
|
9
|
+
from typing import Any, Dict, List, Mapping, Optional, Union
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
class Agents(BaseSDK):
|
|
@@ -29,6 +29,7 @@ class Agents(BaseSDK):
|
|
|
29
29
|
]
|
|
30
30
|
] = None,
|
|
31
31
|
random_seed: OptionalNullable[int] = UNSET,
|
|
32
|
+
metadata: OptionalNullable[Dict[str, Any]] = UNSET,
|
|
32
33
|
response_format: Optional[
|
|
33
34
|
Union[models.ResponseFormat, models.ResponseFormatTypedDict]
|
|
34
35
|
] = None,
|
|
@@ -62,13 +63,14 @@ class Agents(BaseSDK):
|
|
|
62
63
|
:param stream: Whether to stream back partial progress. If set, tokens will be sent as data-only server-side events as they become available, with the stream terminated by a data: [DONE] message. Otherwise, the server will hold the request open until the timeout or until completion, with the response containing the full result as JSON.
|
|
63
64
|
:param stop: Stop generation if this token is detected. Or if one of these tokens is detected when providing an array
|
|
64
65
|
:param random_seed: The seed to use for random sampling. If set, different calls will generate deterministic results.
|
|
65
|
-
:param
|
|
66
|
+
:param metadata:
|
|
67
|
+
:param response_format: Specify the format that the model must output. By default it will use `{ \"type\": \"text\" }`. Setting to `{ \"type\": \"json_object\" }` enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to `{ \"type\": \"json_schema\" }` enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide.
|
|
66
68
|
:param tools:
|
|
67
69
|
:param tool_choice:
|
|
68
|
-
:param presence_penalty: presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
|
|
69
|
-
:param frequency_penalty: frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
|
|
70
|
+
:param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
|
|
71
|
+
:param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
|
|
70
72
|
:param n: Number of completions to return for each request, input tokens are only billed once.
|
|
71
|
-
:param prediction:
|
|
73
|
+
:param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
|
|
72
74
|
:param parallel_tool_calls:
|
|
73
75
|
:param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used.
|
|
74
76
|
:param retries: Override the default retry configuration for this method
|
|
@@ -91,6 +93,7 @@ class Agents(BaseSDK):
|
|
|
91
93
|
stream=stream,
|
|
92
94
|
stop=stop,
|
|
93
95
|
random_seed=random_seed,
|
|
96
|
+
metadata=metadata,
|
|
94
97
|
messages=utils.get_pydantic_model(
|
|
95
98
|
messages, List[models.AgentsCompletionRequestMessages]
|
|
96
99
|
),
|
|
@@ -188,6 +191,7 @@ class Agents(BaseSDK):
|
|
|
188
191
|
]
|
|
189
192
|
] = None,
|
|
190
193
|
random_seed: OptionalNullable[int] = UNSET,
|
|
194
|
+
metadata: OptionalNullable[Dict[str, Any]] = UNSET,
|
|
191
195
|
response_format: Optional[
|
|
192
196
|
Union[models.ResponseFormat, models.ResponseFormatTypedDict]
|
|
193
197
|
] = None,
|
|
@@ -221,13 +225,14 @@ class Agents(BaseSDK):
|
|
|
221
225
|
:param stream: Whether to stream back partial progress. If set, tokens will be sent as data-only server-side events as they become available, with the stream terminated by a data: [DONE] message. Otherwise, the server will hold the request open until the timeout or until completion, with the response containing the full result as JSON.
|
|
222
226
|
:param stop: Stop generation if this token is detected. Or if one of these tokens is detected when providing an array
|
|
223
227
|
:param random_seed: The seed to use for random sampling. If set, different calls will generate deterministic results.
|
|
224
|
-
:param
|
|
228
|
+
:param metadata:
|
|
229
|
+
:param response_format: Specify the format that the model must output. By default it will use `{ \"type\": \"text\" }`. Setting to `{ \"type\": \"json_object\" }` enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to `{ \"type\": \"json_schema\" }` enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide.
|
|
225
230
|
:param tools:
|
|
226
231
|
:param tool_choice:
|
|
227
|
-
:param presence_penalty: presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
|
|
228
|
-
:param frequency_penalty: frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
|
|
232
|
+
:param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
|
|
233
|
+
:param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
|
|
229
234
|
:param n: Number of completions to return for each request, input tokens are only billed once.
|
|
230
|
-
:param prediction:
|
|
235
|
+
:param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
|
|
231
236
|
:param parallel_tool_calls:
|
|
232
237
|
:param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used.
|
|
233
238
|
:param retries: Override the default retry configuration for this method
|
|
@@ -250,6 +255,7 @@ class Agents(BaseSDK):
|
|
|
250
255
|
stream=stream,
|
|
251
256
|
stop=stop,
|
|
252
257
|
random_seed=random_seed,
|
|
258
|
+
metadata=metadata,
|
|
253
259
|
messages=utils.get_pydantic_model(
|
|
254
260
|
messages, List[models.AgentsCompletionRequestMessages]
|
|
255
261
|
),
|
|
@@ -347,6 +353,7 @@ class Agents(BaseSDK):
|
|
|
347
353
|
]
|
|
348
354
|
] = None,
|
|
349
355
|
random_seed: OptionalNullable[int] = UNSET,
|
|
356
|
+
metadata: OptionalNullable[Dict[str, Any]] = UNSET,
|
|
350
357
|
response_format: Optional[
|
|
351
358
|
Union[models.ResponseFormat, models.ResponseFormatTypedDict]
|
|
352
359
|
] = None,
|
|
@@ -382,13 +389,14 @@ class Agents(BaseSDK):
|
|
|
382
389
|
:param stream:
|
|
383
390
|
:param stop: Stop generation if this token is detected. Or if one of these tokens is detected when providing an array
|
|
384
391
|
:param random_seed: The seed to use for random sampling. If set, different calls will generate deterministic results.
|
|
385
|
-
:param
|
|
392
|
+
:param metadata:
|
|
393
|
+
:param response_format: Specify the format that the model must output. By default it will use `{ \"type\": \"text\" }`. Setting to `{ \"type\": \"json_object\" }` enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to `{ \"type\": \"json_schema\" }` enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide.
|
|
386
394
|
:param tools:
|
|
387
395
|
:param tool_choice:
|
|
388
|
-
:param presence_penalty: presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
|
|
389
|
-
:param frequency_penalty: frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
|
|
396
|
+
:param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
|
|
397
|
+
:param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
|
|
390
398
|
:param n: Number of completions to return for each request, input tokens are only billed once.
|
|
391
|
-
:param prediction:
|
|
399
|
+
:param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
|
|
392
400
|
:param parallel_tool_calls:
|
|
393
401
|
:param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used.
|
|
394
402
|
:param retries: Override the default retry configuration for this method
|
|
@@ -411,6 +419,7 @@ class Agents(BaseSDK):
|
|
|
411
419
|
stream=stream,
|
|
412
420
|
stop=stop,
|
|
413
421
|
random_seed=random_seed,
|
|
422
|
+
metadata=metadata,
|
|
414
423
|
messages=utils.get_pydantic_model(
|
|
415
424
|
messages, List[models.AgentsCompletionStreamRequestMessages]
|
|
416
425
|
),
|
|
@@ -516,6 +525,7 @@ class Agents(BaseSDK):
|
|
|
516
525
|
]
|
|
517
526
|
] = None,
|
|
518
527
|
random_seed: OptionalNullable[int] = UNSET,
|
|
528
|
+
metadata: OptionalNullable[Dict[str, Any]] = UNSET,
|
|
519
529
|
response_format: Optional[
|
|
520
530
|
Union[models.ResponseFormat, models.ResponseFormatTypedDict]
|
|
521
531
|
] = None,
|
|
@@ -551,13 +561,14 @@ class Agents(BaseSDK):
|
|
|
551
561
|
:param stream:
|
|
552
562
|
:param stop: Stop generation if this token is detected. Or if one of these tokens is detected when providing an array
|
|
553
563
|
:param random_seed: The seed to use for random sampling. If set, different calls will generate deterministic results.
|
|
554
|
-
:param
|
|
564
|
+
:param metadata:
|
|
565
|
+
:param response_format: Specify the format that the model must output. By default it will use `{ \"type\": \"text\" }`. Setting to `{ \"type\": \"json_object\" }` enables JSON mode, which guarantees the message the model generates is in JSON. When using JSON mode you MUST also instruct the model to produce JSON yourself with a system or a user message. Setting to `{ \"type\": \"json_schema\" }` enables JSON schema mode, which guarantees the message the model generates is in JSON and follows the schema you provide.
|
|
555
566
|
:param tools:
|
|
556
567
|
:param tool_choice:
|
|
557
|
-
:param presence_penalty: presence_penalty determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
|
|
558
|
-
:param frequency_penalty: frequency_penalty penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
|
|
568
|
+
:param presence_penalty: The `presence_penalty` determines how much the model penalizes the repetition of words or phrases. A higher presence penalty encourages the model to use a wider variety of words and phrases, making the output more diverse and creative.
|
|
569
|
+
:param frequency_penalty: The `frequency_penalty` penalizes the repetition of words based on their frequency in the generated text. A higher frequency penalty discourages the model from repeating words that have already appeared frequently in the output, promoting diversity and reducing repetition.
|
|
559
570
|
:param n: Number of completions to return for each request, input tokens are only billed once.
|
|
560
|
-
:param prediction:
|
|
571
|
+
:param prediction: Enable users to specify an expected completion, optimizing response times by leveraging known or predictable content.
|
|
561
572
|
:param parallel_tool_calls:
|
|
562
573
|
:param prompt_mode: Allows toggling between the reasoning mode and no system prompt. When set to `reasoning` the system prompt for reasoning models will be used.
|
|
563
574
|
:param retries: Override the default retry configuration for this method
|
|
@@ -580,6 +591,7 @@ class Agents(BaseSDK):
|
|
|
580
591
|
stream=stream,
|
|
581
592
|
stop=stop,
|
|
582
593
|
random_seed=random_seed,
|
|
594
|
+
metadata=metadata,
|
|
583
595
|
messages=utils.get_pydantic_model(
|
|
584
596
|
messages, List[models.AgentsCompletionStreamRequestMessages]
|
|
585
597
|
),
|