@anvia/mistral 0.1.2 → 0.1.3
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.
- package/README.md +42 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
# @anvia/mistral
|
|
2
2
|
|
|
3
|
-
Mistral provider adapter for Anvia.
|
|
3
|
+
Mistral completion and embedding provider adapter for Anvia.
|
|
4
|
+
|
|
5
|
+
Use this package when you want Anvia agents, extractors, pipelines, embeddings, or model listing to run on Mistral APIs.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm add @anvia/mistral @anvia/core
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
In this monorepo, the package is available through the workspace:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
pnpm --filter @anvia/mistral build
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
4
20
|
|
|
5
21
|
```ts
|
|
6
22
|
import { AgentBuilder } from "@anvia/core";
|
|
@@ -24,6 +40,30 @@ const embeddings = client.embeddingModel("mistral-embed");
|
|
|
24
40
|
const vectors = await embeddings.embedTexts(["Refunds take five business days."]);
|
|
25
41
|
```
|
|
26
42
|
|
|
43
|
+
## Model Listing
|
|
44
|
+
|
|
45
|
+
```ts
|
|
46
|
+
const models = await client.listModels();
|
|
47
|
+
```
|
|
48
|
+
|
|
27
49
|
## Capabilities
|
|
28
50
|
|
|
29
|
-
The v1 adapter supports text completions, streaming, tools, tool choice, structured output, and
|
|
51
|
+
The v1 adapter supports text completions, streaming, tools, tool choice, structured output, Mistral embeddings, and model listing. Image inputs, document file inputs, transcription, audio generation, and image generation are not implemented yet.
|
|
52
|
+
|
|
53
|
+
## Exports
|
|
54
|
+
|
|
55
|
+
- `MistralClient`
|
|
56
|
+
- `MistralCompletionModel`
|
|
57
|
+
- `MistralEmbeddingModel`
|
|
58
|
+
- `MistralClientOptions`
|
|
59
|
+
- `MistralEmbeddingModelOptions`
|
|
60
|
+
- `mistralMessageHelpers`
|
|
61
|
+
- `mistral`
|
|
62
|
+
|
|
63
|
+
## Development
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
pnpm --filter @anvia/mistral typecheck
|
|
67
|
+
pnpm --filter @anvia/mistral test
|
|
68
|
+
pnpm --filter @anvia/mistral build
|
|
69
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anvia/mistral",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Mistral provider adapter for Anvia.",
|
|
5
5
|
"author": "anvia",
|
|
6
6
|
"maintainer": "Indra Zulfi",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@mistralai/mistralai": "^2.2.1",
|
|
22
|
-
"@anvia/core": "0.2.
|
|
22
|
+
"@anvia/core": "0.2.3"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/node": "^24.9.1",
|