Skip to content

Commit

Permalink
fix main-run
Browse files Browse the repository at this point in the history
  • Loading branch information
acedward committed Nov 13, 2024
1 parent 006003d commit 6a382f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions shinkai-bin/shinkai-node/src/tools/tool_generation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,10 @@ pub async fn tool_implementation(
"
RULE I:
You may use any of the following tools if they are relevant and a good match for the task.
They are defined in the global scope, so they must be used without importing them.
Import them in the following way:
import {{ xx }} as '@shinkai/local-tools'
This is the content of @shinkai/local-tools:
```{}
{}
```
Expand All @@ -172,7 +175,7 @@ implement the task you can also update the CONFIG, INPUTS and OUTPUT types to ma
CONFIG = {{}};
type INPUTS = {{}};
type OUTPUT = {{}};
async function main(config: CONFIG, inputs: INPUTS): Promise<OUTPUT> {{
async function run(config: CONFIG, inputs: INPUTS): Promise<OUTPUT> {{
return {{}};
}}
```
Expand Down

0 comments on commit 6a382f5

Please sign in to comment.