-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update generated_by comment with code (#538)
- Loading branch information
Showing
5 changed files
with
44 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
defTool("search_files", "search files in the workspace", { | ||
type: "object", | ||
properties: { | ||
search: { | ||
type: "string", | ||
description: "Search string using glob patterns" | ||
} | ||
} | ||
}, async args => { | ||
const { search} = args | ||
const files = await workspace.findFiles(search) | ||
return files.map(f => f.filename).join("\n") | ||
}) | ||
defTool("read_file", "read the content of a file", { | ||
type: "object", | ||
properties: { | ||
file: { | ||
type: "string", | ||
description: "File path" | ||
} | ||
} | ||
}, async args => { | ||
const { file } = args | ||
const content = await workspace.readText(file) | ||
return content.content | ||
}) | ||
|
||
$`You are an expert at Azure Bicep and development of azure resources. | ||
Generate a state graph of all recursively the .bicep files used in the workspace.Use mermaid. | ||
- use more emojis | ||
` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters