@blaxel/llamaindex 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 CHANGED
@@ -74,7 +74,7 @@ This package includes a helper function that creates a reference to a model depl
74
74
  ```typescript
75
75
  // With LlamaIndex
76
76
  import { blModel } from "@blaxel/llamaindex";
77
- const model = await blModel("claude-3-5-sonnet");
77
+ const model = await blModel("gpt-5-mini");
78
78
  ```
79
79
 
80
80
  ### MCP tool use
@@ -83,10 +83,23 @@ Blaxel lets you deploy and host Model Context Protocol (MCP) servers, accessible
83
83
 
84
84
  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.
85
85
 
86
+ Here is an example of retrieving tool definitions from a Blaxel sandbox's MCP server in the format required by LlamaIndex:
87
+
86
88
  ```typescript
87
- // With LlamaIndex
89
+ import { SandboxInstance } from "@blaxel/core";
88
90
  import { blTools } from "@blaxel/llamaindex";
89
- const tools = await blTools(['blaxel-search'])
91
+
92
+ // Create a new sandbox
93
+ const sandbox = await SandboxInstance.createIfNotExists({
94
+ name: "my-sandbox",
95
+ image: "blaxel/base-image:latest",
96
+ memory: 4096,
97
+ region: "us-pdx-1",
98
+ ttl: "24h"
99
+ });
100
+
101
+ // Get sandbox tools
102
+ const tools = await blTools(['sandbox/my-sandbox'])
90
103
  ```
91
104
 
92
105
  ### Telemetry