@composio/llamaindex 0.10.2 → 0.11.1
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/dist/index.d.mts +4 -5
- package/dist/index.mjs +2 -2
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseAgenticProvider, ExecuteToolFn, McpServerGetResponse, McpUrlResponse, Tool } from "@composio/core";
|
|
2
2
|
import { tool } from "llamaindex";
|
|
3
3
|
//#region src/index.d.ts
|
|
4
|
-
type LlamaindexTool = ReturnType<typeof tool>;
|
|
5
|
-
type LlamaindexToolCollection = Array<LlamaindexTool>;
|
|
6
|
-
declare class LlamaindexProvider extends BaseAgenticProvider<Array<LlamaindexTool>, LlamaindexTool, McpServerGetResponse> {
|
|
4
|
+
export type LlamaindexTool = ReturnType<typeof tool>;
|
|
5
|
+
export type LlamaindexToolCollection = Array<LlamaindexTool>;
|
|
6
|
+
export declare class LlamaindexProvider extends BaseAgenticProvider<Array<LlamaindexTool>, LlamaindexTool, McpServerGetResponse> {
|
|
7
7
|
readonly name = "llamaindex";
|
|
8
8
|
/**
|
|
9
9
|
* Wrap a tool in the llamaindex format.
|
|
@@ -27,5 +27,4 @@ declare class LlamaindexProvider extends BaseAgenticProvider<Array<LlamaindexToo
|
|
|
27
27
|
*/
|
|
28
28
|
wrapMcpServerResponse(data: McpUrlResponse): McpServerGetResponse;
|
|
29
29
|
}
|
|
30
|
-
//#endregion
|
|
31
|
-
export { LlamaindexProvider, LlamaindexTool, LlamaindexToolCollection };
|
|
30
|
+
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseAgenticProvider, jsonSchemaToZodSchema, normalizeToolArguments } from "@composio/core";
|
|
1
|
+
import { BaseAgenticProvider, dereferenceJsonSchema, jsonSchemaToZodSchema, normalizeToolArguments } from "@composio/core";
|
|
2
2
|
import { tool } from "llamaindex";
|
|
3
3
|
|
|
4
4
|
//#region src/index.ts
|
|
@@ -19,7 +19,7 @@ var LlamaindexProvider = class extends BaseAgenticProvider {
|
|
|
19
19
|
*/
|
|
20
20
|
wrapTool(tool$1, executeTool) {
|
|
21
21
|
const inputParams = tool$1.inputParameters;
|
|
22
|
-
const inputParametersSchema = jsonSchemaToZodSchema(inputParams ?? {});
|
|
22
|
+
const inputParametersSchema = jsonSchemaToZodSchema(dereferenceJsonSchema(inputParams ?? {}, { onUnresolved: "sentinel" }));
|
|
23
23
|
return tool({
|
|
24
24
|
name: tool$1.slug,
|
|
25
25
|
description: tool$1.description ?? tool$1.name ?? "",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@composio/llamaindex",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "Agentic Provider for llamaindex in Composio SDK",
|
|
5
5
|
"main": "dist/index.mjs",
|
|
6
6
|
"type": "module",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"author": "",
|
|
38
38
|
"license": "ISC",
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@composio/core": ">=0.10.0 <1.0.0",
|
|
40
|
+
"@composio/core": ">=0.10.0 <1.0.0 || >=1.0.0-beta.0 <1.0.0",
|
|
41
41
|
"llamaindex": "^0.12.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"tsdown": "^0.
|
|
44
|
+
"tsdown": "^0.23.0",
|
|
45
45
|
"typescript": "^7.0.2",
|
|
46
|
-
"@composio/core": "0.
|
|
46
|
+
"@composio/core": "0.19.0"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "tsdown",
|