Skip to content

Commit bde1af6

Browse files
first implementation of add tool directive command (#90)
1 parent c085525 commit bde1af6

File tree

7 files changed

+844
-2
lines changed

7 files changed

+844
-2
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@
6565
"title": "Add Value Directive",
6666
"category": "StepZen"
6767
},
68+
{
69+
"command": "stepzen.addTool",
70+
"title": "Add Tool Directive",
71+
"category": "StepZen"
72+
},
6873
{
6974
"command": "stepzen.openSchemaVisualizer",
7075
"title": "Open Schema Visualizer",

src/commands/addDirective.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { services } from '../services';
88
import { handleError } from '../errors';
99
import { addMaterializer } from './addMaterializer';
1010
import { addValue } from './addValue';
11+
import { addTool } from './addTool';
1112

1213
/**
1314
* Directive option for the quick pick menu
@@ -57,6 +58,13 @@ export async function addDirective() {
5758
detail: "Returns a constant value or the result of a script expression",
5859
icon: "symbol-constant",
5960
command: addValue
61+
},
62+
{
63+
label: "$(tools) @tool",
64+
description: "Define LLM function tools",
65+
detail: "Creates tools for LLM integration with GraphQL or prescribed operations",
66+
icon: "tools",
67+
command: addTool
6068
}
6169
// Future directives can be added here:
6270
// {

0 commit comments

Comments
 (0)