@anvia/mistral 0.1.2 → 0.1.4

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.
Files changed (2) hide show
  1. package/README.md +42 -2
  2. package/package.json +10 -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 Mistral embeddings. Image inputs, document file inputs, transcription, audio generation, image generation, and model listing are not implemented yet.
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,13 +1,21 @@
1
1
  {
2
2
  "name": "@anvia/mistral",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Mistral provider adapter for Anvia.",
5
5
  "author": "anvia",
6
6
  "maintainer": "Indra Zulfi",
7
7
  "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/anvia-hq/anvia",
11
+ "directory": "packages/providers/mistral"
12
+ },
8
13
  "files": [
9
14
  "dist"
10
15
  ],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
11
19
  "type": "module",
12
20
  "main": "./dist/index.js",
13
21
  "types": "./dist/index.d.ts",
@@ -19,7 +27,7 @@
19
27
  },
20
28
  "dependencies": {
21
29
  "@mistralai/mistralai": "^2.2.1",
22
- "@anvia/core": "0.2.1"
30
+ "@anvia/core": "0.2.4"
23
31
  },
24
32
  "devDependencies": {
25
33
  "@types/node": "^24.9.1",