-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract Anthropic as an engine and make tools into callbacks
- Loading branch information
Showing
12 changed files
with
354 additions
and
363 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
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 was deleted.
Oops, something went wrong.
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,4 @@ | ||
{ | ||
"prompt": "You are a helpful assistant. You live inside of a remarkable2 notepad, which has a 768x1024 px sized screen which can only display grayscale. Your input is the current content of the screen, which may contain content written by the user or previously written by you (the assistant). Look at this content, interpret it, and respond to the content. The content will contain handwritten notes, diagrams, and maybe typewritten text. Respond by calling a tool. Call draw_text to output text which will be sent using simulated keyboard input. Call draw_svg to respond with an SVG drawing which will be drawn on top of the existing content. Try to place the output on the screen at coordinates that make sense. If you need to place text at a very specific location, you should output an SVG instead of keyboard text.", | ||
"tools": ["draw_text", "draw_svg"] | ||
} |
This file was deleted.
Oops, something went wrong.
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,64 @@ | ||
{ | ||
"name": "draw_svg", | ||
"description": "Draw an SVG to the screen using simulated pen input. The input_description and output_description are used to build a plan for the actual output.", | ||
"input_schema": { | ||
"type": "object", | ||
"properties": { | ||
"input_description": { | ||
"type": "string", | ||
"description": "Description of what was detected in the input image. Include the exact pixel x, y, width, height bounding box coordinates of everything." | ||
}, | ||
"input_features": { | ||
"type": "array", | ||
"description": "A list of exact bounding boxes for important features of the input", | ||
"items": { | ||
"type": "object", | ||
"description": "A specific feature and bounding box", | ||
"properties": { | ||
"feature_description": { | ||
"type": "string", | ||
"description": "Description of the feature" | ||
}, | ||
"top_left_x_px": { | ||
"type": "integer", | ||
"description": "The top-left x coordinate in px" | ||
}, | ||
"top_left_y_px": { | ||
"type": "integer", | ||
"description": "The top-left y coordinate in px" | ||
}, | ||
"bottom_right_x_px": { | ||
"type": "integer", | ||
"description": "The bottom-right x coordinate in px" | ||
}, | ||
"bottom_right_y_px": { | ||
"type": "integer", | ||
"description": "The bottom-right y coordinate in px" | ||
} | ||
}, | ||
"required": [ | ||
"feature_description", | ||
"top_left_x_px", | ||
"top_left_y_px", | ||
"bottom_right_x_px", | ||
"bottom_right_y_px" | ||
] | ||
} | ||
}, | ||
"output_description": { | ||
"type": "string", | ||
"description": "Description of what will be drawn. Include the exact pixel x, y, width, height bounding box coordinates of what you want to draw." | ||
}, | ||
"svg": { | ||
"type": "string", | ||
"description": "SVG data to be rendered. This is drawn on top of the input image, and should be the same size as the input image (768x1024 px). The display can only show black and white. Try to place the output in an integrated position. Use the `Noto Sans` font-family when you are showing text. Do not use a style tag tag. Do not use any fill colors or gradients or transparency or shadows. Do include the xmlns in the main svg tag." | ||
} | ||
}, | ||
"required": [ | ||
"input_description", | ||
"input_features", | ||
"output_description", | ||
"svg" | ||
] | ||
} | ||
} |
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,26 @@ | ||
{ | ||
"name": "draw_text", | ||
"description": "Draw text to the screen using simulated keyboard input. The input_description and output_description are used to build a plan for the actual output.", | ||
"input_schema": { | ||
"type": "object", | ||
"properties": { | ||
"input_description": { | ||
"type": "string", | ||
"description": "Description of what was detected in the input image. Include the x,y,w,h bounding box coordinates of interesting regions." | ||
}, | ||
"output_description": { | ||
"type": "string", | ||
"description": "Description of what will be output. Include x,y,w,h bounding box coordinates of specific regions." | ||
}, | ||
"text": { | ||
"type": "string", | ||
"description": "Text to be written" | ||
} | ||
}, | ||
"required": [ | ||
"input_description", | ||
"output_description", | ||
"text" | ||
] | ||
} | ||
} |
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,6 @@ | ||
{ | ||
"name": "fetch_todo", | ||
"description": "Use an API to fetch the current TODO list", | ||
"external_command": "tools/fetch_todo.sh", | ||
"next_action": "loop" | ||
} |
Oops, something went wrong.