@blaxel/langgraph 0.2.62 → 0.2.63-dev.68
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 +16 -3
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -76,7 +76,7 @@ This package includes a helper function that creates a reference to a model depl
|
|
|
76
76
|
```typescript
|
|
77
77
|
// With LangChain
|
|
78
78
|
import { blModel } from "@blaxel/langgraph";
|
|
79
|
-
const model = await blModel("
|
|
79
|
+
const model = await blModel("gpt-5-mini");
|
|
80
80
|
```
|
|
81
81
|
|
|
82
82
|
### MCP tool use
|
|
@@ -85,10 +85,23 @@ Blaxel lets you deploy and host Model Context Protocol (MCP) servers, accessible
|
|
|
85
85
|
|
|
86
86
|
This package includes a helper function that retrieves and returns tool definitions from a Blaxel-hosted MCP server in the format required by specific frameworks.
|
|
87
87
|
|
|
88
|
+
Here is an example of retrieving tool definitions from a Blaxel sandbox's MCP server in the format required by LangGraph:
|
|
89
|
+
|
|
88
90
|
```typescript
|
|
89
|
-
|
|
91
|
+
import { SandboxInstance } from "@blaxel/core";
|
|
90
92
|
import { blTools } from "@blaxel/langgraph";
|
|
91
|
-
|
|
93
|
+
|
|
94
|
+
// Create a new sandbox
|
|
95
|
+
const sandbox = await SandboxInstance.createIfNotExists({
|
|
96
|
+
name: "my-sandbox",
|
|
97
|
+
image: "blaxel/base-image:latest",
|
|
98
|
+
memory: 4096,
|
|
99
|
+
region: "us-pdx-1",
|
|
100
|
+
ttl: "24h"
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
// Get sandbox tools
|
|
104
|
+
const tools = await blTools(['sandbox/my-sandbox'])
|
|
92
105
|
```
|
|
93
106
|
|
|
94
107
|
### Telemetry
|