Files
griptape-ai-ComfyUI-Griptape/examples/Griptape-Expert-Photographers.json
T
2024-07-21 11:05:23 +12:00

1455 lines
27 KiB
JSON

{
"last_node_id": 36,
"last_link_id": 39,
"nodes": [
{
"id": 1,
"type": "Griptape Create: Agent",
"pos": [
400,
50
],
"size": {
"0": 300,
"1": 156
},
"flags": {},
"order": 10,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": null
},
{
"name": "config",
"type": "CONFIG",
"link": 28
},
{
"name": "tools",
"type": "TOOL_LIST",
"link": null
},
{
"name": "rulesets",
"type": "RULESET",
"link": 1
},
{
"name": "input_string",
"type": "STRING",
"link": null,
"widget": {
"name": "input_string"
}
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": null,
"slot_index": 0,
"shape": 3
},
{
"name": "AGENT",
"type": "AGENT",
"links": [
12
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Agent"
},
"widgets_values": [
"",
""
]
},
{
"id": 2,
"type": "Griptape Create: Rules",
"pos": [
-100,
50
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{
"name": "RULES",
"type": "RULESET",
"links": [
1
],
"slot_index": 0,
"shape": 3
},
{
"name": "NAME",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Rules"
},
"widgets_values": [
"Cinematographer Ruleset",
"You identify as a cinematographer\nYou care deeply about light, shadow, color, and composition\nWhen coming up with image prompts, you always specify the position of the camera, the lens, and the color\nYou are specific about the technical details of a shot.\nYour responses are brief and concise\nAlways respond with your identity so the agent knows who you are."
]
},
{
"id": 3,
"type": "Griptape Create: Rules",
"pos": [
-100,
400
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 1,
"mode": 0,
"outputs": [
{
"name": "RULES",
"type": "RULESET",
"links": [
2
],
"slot_index": 0,
"shape": 3
},
{
"name": "NAME",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Rules"
},
"widgets_values": [
"Color Theorist",
"You identify as an expert in color theory\nYou have a deep understanding of how color impacts one's psychological outlook\nYou are a fan of non-standard colors\nYour responses are brief and concise\nAlways respond with your identity so the agent knows who you are."
]
},
{
"id": 5,
"type": "Griptape Create: Agent",
"pos": [
400,
400
],
"size": {
"0": 300,
"1": 156
},
"flags": {},
"order": 11,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": null
},
{
"name": "config",
"type": "CONFIG",
"link": 29
},
{
"name": "tools",
"type": "TOOL_LIST",
"link": null
},
{
"name": "rulesets",
"type": "RULESET",
"link": 2
},
{
"name": "input_string",
"type": "STRING",
"link": null,
"widget": {
"name": "input_string"
}
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": null,
"shape": 3
},
{
"name": "AGENT",
"type": "AGENT",
"links": [
13
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Agent"
},
"widgets_values": [
"",
""
]
},
{
"id": 7,
"type": "Griptape Create: Rules",
"pos": [
-350,
1550
],
"size": {
"0": 672.3751220703125,
"1": 168.68878173828125
},
"flags": {},
"order": 2,
"mode": 0,
"outputs": [
{
"name": "RULES",
"type": "RULESET",
"links": [
4
],
"slot_index": 0,
"shape": 3
},
{
"name": "NAME",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Rules"
},
"widgets_values": [
"Image Generation Specialist",
"You are an expert in creating prompts for image generation engines\nYou use the latest knowledge available to you to generate the best prompts.\nYou create prompts that are direct and succinct and you understand they need to be under 800 characters long\nUse your tools to find the best examples of prompts when necessary\nYou can use your tools to research the subject as well.\nYour responses are brief and concise\nYou are generating a prompt for a still image\nAlways include the following: subject, attributes of subject, visual characteristics of the image, camera angle, lighting, art style, color scheme, surrounding environment, camera used (ex: Nikon d850 film stock, polaroid, etc).\nAlways respond with your identity so the agent knows who you are."
]
},
{
"id": 8,
"type": "Griptape Create: Agent",
"pos": [
400,
1250
],
"size": {
"0": 300,
"1": 156.00003051757812
},
"flags": {},
"order": 18,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": null
},
{
"name": "config",
"type": "CONFIG",
"link": null
},
{
"name": "tools",
"type": "TOOL_LIST",
"link": 11
},
{
"name": "rulesets",
"type": "RULESET",
"link": 4
},
{
"name": "input_string",
"type": "STRING",
"link": null,
"widget": {
"name": "input_string"
}
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": null,
"shape": 3
},
{
"name": "AGENT",
"type": "AGENT",
"links": [
14
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Agent"
},
"widgets_values": [
"",
""
]
},
{
"id": 12,
"type": "Griptape Tool: WebSearch",
"pos": [
-200,
1250
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 13,
"mode": 0,
"inputs": [
{
"name": "driver",
"type": "DRIVER",
"link": 38
}
],
"outputs": [
{
"name": "TOOL",
"type": "TOOL_LIST",
"links": [
9
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Tool: WebSearch"
},
"widgets_values": [
true
]
},
{
"id": 14,
"type": "Griptape Tool: WebScraper",
"pos": [
-200,
1400
],
"size": {
"0": 315,
"1": 58
},
"flags": {},
"order": 3,
"mode": 0,
"outputs": [
{
"name": "TOOL",
"type": "TOOL_LIST",
"links": [
10
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Tool: WebScraper"
},
"widgets_values": [
true
]
},
{
"id": 15,
"type": "Griptape Combine: Tool List",
"pos": [
150,
1300
],
"size": {
"0": 226.8000030517578,
"1": 66
},
"flags": {},
"order": 17,
"mode": 0,
"inputs": [
{
"name": "tool_1",
"type": "TOOL_LIST",
"link": 9
},
{
"name": "tool_2",
"type": "TOOL_LIST",
"link": 10
},
{
"name": "tool_3",
"type": "TOOL_LIST",
"link": null
}
],
"outputs": [
{
"name": "TOOL_LIST",
"type": "TOOL_LIST",
"links": [
11
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Combine: Tool List"
}
},
{
"id": 17,
"type": "Griptape Convert: Agent to Tool",
"pos": [
750,
50
],
"size": {
"0": 400,
"1": 150
},
"flags": {},
"order": 14,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": 12
}
],
"outputs": [
{
"name": "TOOL",
"type": "TOOL_LIST",
"links": [
17
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Convert: Agent to Tool"
},
"widgets_values": [
false,
"Cinematographer",
"This agent understands cinematography"
]
},
{
"id": 18,
"type": "Griptape Convert: Agent to Tool",
"pos": [
750,
400
],
"size": {
"0": 400,
"1": 124
},
"flags": {},
"order": 15,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": 13
}
],
"outputs": [
{
"name": "TOOL",
"type": "TOOL_LIST",
"links": [
18
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Convert: Agent to Tool"
},
"widgets_values": [
false,
"Color Theory",
"This agent can be used to ensure the best colors"
]
},
{
"id": 20,
"type": "Griptape Convert: Agent to Tool",
"pos": [
750,
1250
],
"size": {
"0": 400,
"1": 124
},
"flags": {},
"order": 19,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": 14
}
],
"outputs": [
{
"name": "TOOL",
"type": "TOOL_LIST",
"links": [
20
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Convert: Agent to Tool"
},
"widgets_values": [
false,
"Image Generation Prompter",
"This agent is an expert in prompts for image generation engines."
]
},
{
"id": 21,
"type": "Griptape Create: Rules",
"pos": [
1450,
500
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 4,
"mode": 0,
"outputs": [
{
"name": "RULES",
"type": "RULESET",
"links": [
16
],
"slot_index": 0,
"shape": 3
},
{
"name": "NAME",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Rules"
},
"widgets_values": [
"Agent Rules",
"You have access to experts in their respective fields\nWork with the experts to get the results you need\nYou facilitate communication between them.\nAsk the expert on image prompting for the final prompt.\nOutput only the final image generation prompt. Do not wrap in markdown context."
]
},
{
"id": 22,
"type": "Griptape Create: Agent",
"pos": [
1950,
400
],
"size": {
"0": 397.9550476074219,
"1": 215.6602783203125
},
"flags": {},
"order": 21,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": null
},
{
"name": "config",
"type": "CONFIG",
"link": null
},
{
"name": "tools",
"type": "TOOL_LIST",
"link": 21
},
{
"name": "rulesets",
"type": "RULESET",
"link": 16
},
{
"name": "input_string",
"type": "STRING",
"link": null,
"widget": {
"name": "input_string"
}
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": [
39
],
"slot_index": 0,
"shape": 3
},
{
"name": "AGENT",
"type": "AGENT",
"links": [],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Agent"
},
"widgets_values": [
"",
"Create a beautiful and emotional image of a child's lost toy sitting in a puddle. It's had a bit of a rough time out there, maybe even been run over a few times. It's a rainy day, a very sad day. But the toy, and the viewer should have hope.\n"
]
},
{
"id": 23,
"type": "Griptape Combine: Tool List",
"pos": [
1450,
350
],
"size": {
"0": 250,
"1": 106
},
"flags": {},
"order": 20,
"mode": 0,
"inputs": [
{
"name": "tool_1",
"type": "TOOL_LIST",
"link": 17
},
{
"name": "tool_2",
"type": "TOOL_LIST",
"link": 18
},
{
"name": "tool_3",
"type": "TOOL_LIST",
"link": 36
},
{
"name": "tool_4",
"type": "TOOL_LIST",
"link": 20
},
{
"name": "tool_5",
"type": "TOOL_LIST",
"link": null
}
],
"outputs": [
{
"name": "TOOL_LIST",
"type": "TOOL_LIST",
"links": [
21
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Combine: Tool List"
}
},
{
"id": 24,
"type": "Griptape Display: Text",
"pos": [
2500,
500
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 22,
"mode": 0,
"inputs": [
{
"name": "INPUT",
"type": "STRING",
"link": 39,
"widget": {
"name": "INPUT"
}
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": [
24
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Display: Text"
},
"widgets_values": [
"",
"a child's lost toy sitting in a puddle on a rainy day, the toy looks worn out and has been run over a few times, the scene is emotional and sad but with a hint of hope, camera at eye-level, 2-3 feet away, wide-angle lens (24mm), slightly tilted downwards, muted color palette with shades of gray and blue, small warm light source, shallow depth of field (f/2.8), worn-out teddy bear with matted fur, missing button, scratched eye, dirt and grime, puddle reflecting toy and raindrops, blurred outlines of buildings and trees, rain-soaked street with dull sheen"
]
},
{
"id": 25,
"type": "Griptape Create: Image from Text",
"pos": [
2950,
400
],
"size": {
"0": 350,
"1": 150
},
"flags": {},
"order": 23,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": null
},
{
"name": "driver",
"type": "DRIVER",
"link": 33
},
{
"name": "input_string",
"type": "STRING",
"link": 24,
"widget": {
"name": "input_string"
}
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
25
],
"slot_index": 0,
"shape": 3
},
{
"name": "AGENT",
"type": "AGENT",
"links": null,
"shape": 3
},
{
"name": "file_path",
"type": "STRING",
"links": null,
"shape": 3
},
{
"name": "TASK",
"type": "TASK",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Image from Text"
},
"widgets_values": [
"",
""
]
},
{
"id": 26,
"type": "Griptape Display: Image",
"pos": [
3500,
250
],
"size": {
"0": 1600,
"1": 950
},
"flags": {},
"order": 24,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 25
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "IMAGE",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Display: Image"
}
},
{
"id": 29,
"type": "Griptape Agent Config: Ollama",
"pos": [
-700,
500
],
"size": {
"0": 380.4000244140625,
"1": 226
},
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "image_generation_driver",
"type": "DRIVER",
"link": null
}
],
"outputs": [
{
"name": "CONFIG",
"type": "CONFIG",
"links": [
28,
29,
37
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Agent Config: Ollama"
},
"widgets_values": [
"llama3:latest",
"http://127.0.0.1",
"11434",
0.1,
2048,
"fixed",
10,
true
]
},
{
"id": 31,
"type": "Griptape Driver: OpenAI Image Generation",
"pos": [
2500,
300
],
"size": {
"0": 400,
"1": 106
},
"flags": {},
"order": 6,
"mode": 0,
"outputs": [
{
"name": "DRIVER",
"type": "DRIVER",
"links": [
33
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Driver: OpenAI Image Generation"
},
"widgets_values": [
"dall-e-3",
"1792x1024",
"OPENAI_API_KEY"
]
},
{
"id": 32,
"type": "Terminal Log //CM",
"pos": [
1400,
900
],
"size": {
"0": 1950,
"1": 500
},
"flags": {},
"order": 7,
"mode": 0,
"properties": {
"text": ""
},
"color": "#222222",
"bgcolor": "#000000"
},
{
"id": 33,
"type": "Griptape Create: Rules",
"pos": [
-100,
800
],
"size": {
"0": 400,
"1": 200
},
"flags": {},
"order": 8,
"mode": 0,
"outputs": [
{
"name": "RULES",
"type": "RULESET",
"links": [
34
],
"slot_index": 0,
"shape": 3
},
{
"name": "NAME",
"type": "STRING",
"links": null,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Rules"
},
"widgets_values": [
"Details",
"You care about the unique details and specific descriptions of items.\nWhen describing things, be specific and not generic. \nFind the unique qualities of items that make them special and different.\nYour responses are brief and concise\nAlways respond with your identity so the agent knows who you are"
]
},
{
"id": 34,
"type": "Griptape Create: Agent",
"pos": [
400,
800
],
"size": {
"0": 300,
"1": 156
},
"flags": {},
"order": 12,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": null
},
{
"name": "config",
"type": "CONFIG",
"link": 37
},
{
"name": "tools",
"type": "TOOL_LIST",
"link": null
},
{
"name": "rulesets",
"type": "RULESET",
"link": 34
},
{
"name": "input_string",
"type": "STRING",
"link": null,
"widget": {
"name": "input_string"
}
}
],
"outputs": [
{
"name": "OUTPUT",
"type": "STRING",
"links": null,
"shape": 3
},
{
"name": "AGENT",
"type": "AGENT",
"links": [
35
],
"slot_index": 1,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Create: Agent"
},
"widgets_values": [
"",
""
]
},
{
"id": 35,
"type": "Griptape Convert: Agent to Tool",
"pos": [
750,
800
],
"size": {
"0": 400,
"1": 124
},
"flags": {},
"order": 16,
"mode": 0,
"inputs": [
{
"name": "agent",
"type": "AGENT",
"link": 35
}
],
"outputs": [
{
"name": "TOOL",
"type": "TOOL_LIST",
"links": [
36
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Convert: Agent to Tool"
},
"widgets_values": [
false,
"Detail Enthusiast",
"This agent is into the fine details of an image. Use it to make sure descriptions are specific and unique."
]
},
{
"id": 36,
"type": "Griptape Driver: DuckDuckGo WebSearch",
"pos": [
-590,
1249
],
"size": {
"0": 310.79998779296875,
"1": 26
},
"flags": {},
"order": 9,
"mode": 0,
"outputs": [
{
"name": "DRIVER",
"type": "DRIVER",
"links": [
38
],
"slot_index": 0,
"shape": 3
}
],
"properties": {
"Node name for S&R": "Griptape Driver: DuckDuckGo WebSearch"
}
}
],
"links": [
[
1,
2,
0,
1,
3,
"RULESET"
],
[
2,
3,
0,
5,
3,
"RULESET"
],
[
4,
7,
0,
8,
3,
"RULESET"
],
[
9,
12,
0,
15,
0,
"TOOL_LIST"
],
[
10,
14,
0,
15,
1,
"TOOL_LIST"
],
[
11,
15,
0,
8,
2,
"TOOL_LIST"
],
[
12,
1,
1,
17,
0,
"AGENT"
],
[
13,
5,
1,
18,
0,
"AGENT"
],
[
14,
8,
1,
20,
0,
"AGENT"
],
[
16,
21,
0,
22,
3,
"RULESET"
],
[
17,
17,
0,
23,
0,
"TOOL_LIST"
],
[
18,
18,
0,
23,
1,
"TOOL_LIST"
],
[
20,
20,
0,
23,
3,
"TOOL_LIST"
],
[
21,
23,
0,
22,
2,
"TOOL_LIST"
],
[
24,
24,
0,
25,
2,
"STRING"
],
[
25,
25,
0,
26,
0,
"IMAGE"
],
[
28,
29,
0,
1,
1,
"CONFIG"
],
[
29,
29,
0,
5,
1,
"CONFIG"
],
[
33,
31,
0,
25,
1,
"DRIVER"
],
[
34,
33,
0,
34,
3,
"RULESET"
],
[
35,
34,
1,
35,
0,
"AGENT"
],
[
36,
35,
0,
23,
2,
"TOOL_LIST"
],
[
37,
29,
0,
34,
1,
"CONFIG"
],
[
38,
36,
0,
12,
0,
"DRIVER"
],
[
39,
22,
0,
24,
0,
"STRING"
]
],
"groups": [
{
"title": "Cinematographer",
"bounding": [
-150,
-50,
1350,
300
],
"color": "#8AA",
"font_size": 24
},
{
"title": "Color Theorist",
"bounding": [
-150,
300,
1350,
350
],
"color": "#8AA",
"font_size": 24
},
{
"title": "Detail Enthusiast",
"bounding": [
-150,
700,
1350,
350
],
"color": "#8AA",
"font_size": 24
},
{
"title": "Image Prompt Expert",
"bounding": [
-650,
1150,
1850,
600
],
"color": "#3f789e",
"font_size": 24
},
{
"title": "Ollama Llama3",
"bounding": [
-750,
400,
500,
350
],
"color": "#A88",
"font_size": 24
},
{
"title": "Organizer Agent",
"bounding": [
1400,
250,
1000,
500
],
"color": "#88A",
"font_size": 24
},
{
"title": "Image Generation",
"bounding": [
2450,
200,
900,
550
],
"color": "#b06634",
"font_size": 24
}
],
"config": {},
"extra": {
"ds": {
"scale": 0.5131581182307073,
"offset": [
1467.9268902873575,
-230.48401993719764
]
}
},
"version": 0.4
}