Skip to content

Commit 769477f

Browse files
fix: added type to schema
1 parent b7a8481 commit 769477f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

js/src/frameworks/llamaindex.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ import { TELEMETRY_EVENTS } from "../sdk/utils/telemetry/events";
77
import { ZToolSchemaFilter } from "../types/base_toolset";
88
import { Optional, Sequence } from "../types/util";
99

10+
type ToolSchema = {
11+
name: string;
12+
description: string;
13+
parameters: Record<string, unknown>;
14+
};
15+
1016
export class LlamaIndexToolSet extends BaseComposioToolSet {
1117
/**
1218
* Composio toolset for LlamaIndex framework.
@@ -33,7 +39,7 @@ export class LlamaIndexToolSet extends BaseComposioToolSet {
3339
}
3440

3541
private _wrapTool(
36-
schema: any,
42+
schema: ToolSchema,
3743
entityId: Optional<string> = null
3844
): FunctionTool<Record<string, unknown>, JSONValue | Promise<JSONValue>> {
3945
return FunctionTool.from(

0 commit comments

Comments
 (0)