diff --git a/examples/Griptape-Agent-Config.json b/examples/Griptape-Agent-Config.json index 8e509be..245b6aa 100644 --- a/examples/Griptape-Agent-Config.json +++ b/examples/Griptape-Agent-Config.json @@ -1,244 +1,14 @@ { - "last_node_id": 166, - "last_link_id": 195, + "last_node_id": 207, + "last_link_id": 201, "nodes": [ - { - "id": 52, - "type": "Griptape Driver: Amazon Bedrock Stable Diffusion", - "pos": [ - -2350, - 800 - ], - "size": { - "0": 500, - "1": 250 - }, - "flags": {}, - "order": 0, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: Amazon Bedrock Stable Diffusion" - }, - "widgets_values": [ - "cinematic", - 512, - 512, - 1267, - "randomize", - "AWS_ACCESS_KEY_ID", - "AWS_SECRET_ACCESS_KEY", - "AWS_DEFAULT_REGION" - ] - }, - { - "id": 53, - "type": "Griptape Driver: Amazon Bedrock Titan", - "pos": [ - -1800, - 850 - ], - "size": { - "0": 450, - "1": 200 - }, - "flags": {}, - "order": 1, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: Amazon Bedrock Titan" - }, - "widgets_values": [ - "512x512", - 43, - "randomize", - "AWS_ACCESS_KEY_ID", - "AWS_SECRET_ACCESS_KEY", - "AWS_DEFAULT_REGION" - ] - }, - { - "id": 65, - "type": "Griptape Embedding Driver: Amazon Bedrock Titan", - "pos": [ - -2350, - 1600 - ], - "size": { - "0": 500, - "1": 150 - }, - "flags": {}, - "order": 2, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "DRIVER", - "links": [], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Embedding Driver: Amazon Bedrock Titan" - }, - "widgets_values": [ - "amazon.titan-text-premier-v1:0", - "AWS_ACCESS_KEY_ID", - "AWS_SECRET_ACCESS_KEY", - "AWS_DEFAULT_REGION" - ] - }, - { - "id": 66, - "type": "Griptape Embedding Driver: Google", - "pos": [ - -1800, - 1500 - ], - "size": { - "0": 450, - "1": 106 - }, - "flags": {}, - "order": 3, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "DRIVER", - "links": [], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Embedding Driver: Google" - }, - "widgets_values": [ - "models/embedding-001", - "RETRIEVAL_QUERY", - "GOOGLE_API_KEY" - ] - }, - { - "id": 67, - "type": "Griptape Embedding Driver: HuggingFace", - "pos": [ - -2350, - 1400 - ], - "size": { - "0": 500, - "1": 150 - }, - "flags": {}, - "order": 4, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "DRIVER", - "links": [], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Embedding Driver: HuggingFace" - }, - "widgets_values": [ - "sentence-transformers/all-MiniLM-L6-v2", - "sentence-transformers/all-MiniLM-L6-v2", - 512, - "HUGGINGFACE_HUB_ACCESS_TOKEN" - ] - }, - { - "id": 68, - "type": "Griptape Embedding Driver: Voyage AI", - "pos": [ - -1800, - 1250 - ], - "size": { - "0": 450, - "1": 58 - }, - "flags": {}, - "order": 5, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "DRIVER", - "links": [], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Embedding Driver: Voyage AI" - }, - "widgets_values": [ - "VOYAGE_API_KEY" - ] - }, - { - "id": 69, - "type": "Griptape Embedding Driver: Cohere", - "pos": [ - -1800, - 1350 - ], - "size": { - "0": 450, - "1": 106 - }, - "flags": {}, - "order": 6, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "DRIVER", - "links": [], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Embedding Driver: Cohere" - }, - "widgets_values": [ - "embed-english-v3.0", - "search_query", - "COHERE_API_KEY" - ] - }, { "id": 70, "type": "Reroute", - "pos": [ - -100, - -300 - ], + "pos": { + "0": -100, + "1": -300 + }, "size": [ 149.2, 26 @@ -250,7 +20,7 @@ { "name": "", "type": "*", - "link": 193 + "link": 196 } ], "outputs": [ @@ -273,22 +43,22 @@ { "id": 72, "type": "Reroute", - "pos": [ - -100, - 900 - ], + "pos": { + "0": -100, + "1": 900 + }, "size": [ 90.4, 26 ], "flags": {}, - "order": 45, + "order": 47, "mode": 0, "inputs": [ { "name": "", "type": "*", - "link": 192 + "link": 197 } ], "outputs": [ @@ -308,43 +78,22 @@ "color": "#232", "bgcolor": "#353" }, - { - "id": 91, - "type": "Note", - "pos": [ - -2350, - -800 - ], - "size": { - "0": 500, - "1": 150 - }, - "flags": {}, - "order": 7, - "mode": 0, - "properties": { - "text": "" - }, - "widgets_values": [ - "Prompt Drivers are used by Griptape Structures to make API calls to the underlying LLMs. OpenAi Chat is the default prompt driver used in all structures.\n\nhttps://docs.griptape.ai/stable/griptape-framework/drivers/prompt-drivers/\n" - ], - "color": "#322", - "bgcolor": "#533" - }, { "id": 92, "type": "Note", - "pos": [ - -2350, - 650 - ], + "pos": { + "0": -2350, + "1": 650 + }, "size": { "0": 500, "1": 100 }, "flags": {}, - "order": 8, + "order": 0, "mode": 0, + "inputs": [], + "outputs": [], "properties": { "text": "" }, @@ -357,17 +106,19 @@ { "id": 94, "type": "Note", - "pos": [ - -2350, - 1250 - ], + "pos": { + "0": -2350, + "1": 1250 + }, "size": { "0": 500, "1": 100 }, "flags": {}, - "order": 9, + "order": 1, "mode": 0, + "inputs": [], + "outputs": [], "properties": { "text": "" }, @@ -380,22 +131,22 @@ { "id": 96, "type": "Reroute", - "pos": [ - -100, - 2000 - ], + "pos": { + "0": -100, + "1": 2000 + }, "size": [ 199.6, 26 ], "flags": {}, - "order": 47, + "order": 49, "mode": 0, "inputs": [ { "name": "", "type": "*", - "link": 178 + "link": 199 } ], "outputs": [ @@ -418,17 +169,19 @@ { "id": 97, "type": "Note", - "pos": [ - -1800, - 2000 - ], + "pos": { + "0": -1800, + "1": 2000 + }, "size": { "0": 450, "1": 150 }, "flags": {}, - "order": 10, + "order": 2, "mode": 0, + "inputs": [], + "outputs": [], "properties": { "text": "" }, @@ -441,17 +194,19 @@ { "id": 98, "type": "Note", - "pos": [ - -1200, - 2900 - ], + "pos": { + "0": -1200, + "1": 2900 + }, "size": { "0": 400, "1": 150 }, "flags": {}, - "order": 11, + "order": 3, "mode": 0, + "inputs": [], + "outputs": [], "properties": { "text": "" }, @@ -464,22 +219,22 @@ { "id": 99, "type": "Reroute", - "pos": [ - -100, - 2900 - ], + "pos": { + "0": -100, + "1": 2900 + }, "size": [ 216.4, 26 ], "flags": {}, - "order": 43, + "order": 50, "mode": 0, "inputs": [ { "name": "", "type": "*", - "link": 186 + "link": 201 } ], "outputs": [ @@ -502,17 +257,19 @@ { "id": 105, "type": "Note", - "pos": [ - -1200, - 3350 - ], + "pos": { + "0": -1200, + "1": 3350 + }, "size": { "0": 400, "1": 100 }, "flags": {}, - "order": 12, + "order": 4, "mode": 0, + "inputs": [], + "outputs": [], "properties": { "text": "" }, @@ -525,22 +282,22 @@ { "id": 106, "type": "Reroute", - "pos": [ - -100, - 3350 - ], + "pos": { + "0": -100, + "1": 3350 + }, "size": [ 258.4, 26 ], "flags": {}, - "order": 44, + "order": 45, "mode": 0, "inputs": [ { "name": "", "type": "*", - "link": 190 + "link": 200 } ], "outputs": [ @@ -560,582 +317,25 @@ "color": "#223", "bgcolor": "#335" }, - { - "id": 108, - "type": "Griptape Create: Agent from Config", - "pos": [ - 1750, - 1750 - ], - "size": { - "0": 285.6000061035156, - "1": 41.90807342529297 - }, - "flags": {}, - "order": 49, - "mode": 0, - "inputs": [ - { - "name": "config", - "type": "CONFIG", - "link": 195 - } - ], - "outputs": [ - { - "name": "AGENT", - "type": "AGENT", - "links": [], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Create: Agent from Config" - }, - "color": "#222", - "bgcolor": "#000" - }, - { - "id": 120, - "type": "Griptape Driver: Leonardo.AI", - "pos": [ - -1800, - 650 - ], - "size": { - "0": 450, - "1": 150 - }, - "flags": {}, - "order": 13, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: Leonardo.AI" - }, - "widgets_values": [ - "default", - false, - "", - "LEONARDO_API_KEY" - ] - }, - { - "id": 121, - "type": "Grptape Driver: Azure OpenAI Image Generation", - "pos": [ - -1300, - 700 - ], - "size": { - "0": 450, - "1": 154 - }, - "flags": {}, - "order": 14, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Grptape Driver: Azure OpenAI Image Generation" - }, - "widgets_values": [ - "dall-e-3", - "dall-e-3", - "1024x1024", - "AZURE_OPENAI_DALL_E_3_ENDPOINT", - "AZURE_OPENAI_DALL_E_3_API_KEY" - ] - }, - { - "id": 133, - "type": "Griptape Embedding Driver: OpenAI Compatible", - "pos": [ - -1800, - 1650 - ], - "size": { - "0": 447.13470458984375, - "1": 106 - }, - "flags": {}, - "order": 15, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "EMBEDDING_DRIVER", - "links": null, - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Embedding Driver: OpenAI Compatible" - }, - "widgets_values": [ - "text-embedding-3-small", - "https://api.openai.com/v1", - "OPENAI_API_KEY" - ] - }, - { - "id": 134, - "type": "Griptape Driver: Azure MongoDB Vector Store", - "pos": [ - -1800, - 2200 - ], - "size": { - "0": 449.0867919921875, - "1": 202 - }, - "flags": {}, - "order": 16, - "mode": 0, - "inputs": [ - { - "name": "embedding_driver", - "type": "EMBEDDING_DRIVER", - "link": null - } - ], - "outputs": [ - { - "name": "DRIVER", - "type": "VECTOR_STORE_DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: Azure MongoDB Vector Store" - }, - "widgets_values": [ - "AZURE_MONGODB_HOST", - "AZURE_MONGODB_USERNAME", - "AZURE_MONGODB_PASSWORD", - "AZURE_MONGODB_DATABASE_NAME", - "AZURE_MONGODB_COLLECTION_NAME", - "AZURE_MONGODB_INDEX_NAME", - "AZURE_MONGODB_VECTOR_PATH" - ] - }, - { - "id": 135, - "type": "Griptape Driver: PGVector Vector Store", - "pos": [ - -1800, - 2450 - ], - "size": { - "0": 449.0867919921875, - "1": 178 - }, - "flags": {}, - "order": 17, - "mode": 0, - "inputs": [ - { - "name": "embedding_driver", - "type": "EMBEDDING_DRIVER", - "link": null - } - ], - "outputs": [ - { - "name": "DRIVER", - "type": "VECTOR_STORE_DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: PGVector Vector Store" - }, - "widgets_values": [ - "griptape_vectors", - "POSTGRES_HOST", - "POSTGRES_USER", - "POSTGRES_PASSWORD", - "POSTGRES_PORT", - "POSTGRES_DB" - ] - }, - { - "id": 136, - "type": "Griptape Driver: Pinecone Vector Store", - "pos": [ - -1300, - 2000 - ], - "size": { - "0": 482.9953918457031, - "1": 106 - }, - "flags": {}, - "order": 18, - "mode": 0, - "inputs": [ - { - "name": "embedding_driver", - "type": "EMBEDDING_DRIVER", - "link": null - } - ], - "outputs": [ - { - "name": "DRIVER", - "type": "VECTOR_STORE_DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: Pinecone Vector Store" - }, - "widgets_values": [ - "PINECONE_API_KEY", - "PINECONE_ENVIRONMENT", - "PINECONE_INDEX_NAME" - ] - }, - { - "id": 137, - "type": "Griptape Driver: Amazon OpenSearch Vector Store", - "pos": [ - -1300, - 2150 - ], - "size": { - "0": 483.9714050292969, - "1": 154 - }, - "flags": {}, - "order": 19, - "mode": 0, - "inputs": [ - { - "name": "embedding_driver", - "type": "EMBEDDING_DRIVER", - "link": null - } - ], - "outputs": [ - { - "name": "DRIVER", - "type": "VECTOR_STORE_DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: Amazon OpenSearch Vector Store" - }, - "widgets_values": [ - "AMAZON_OPENSEARCH_HOST", - "AMAZON_OPENSEARCH_INDEX_NAME", - "AWS_ACCESS_KEY_ID", - "AWS_SECRET_ACCESS_KEY", - "AWS_DEFAULT_REGION" - ] - }, - { - "id": 138, - "type": "Griptape Driver: Qdrant Vector Store", - "pos": [ - -1300, - 2350 - ], - "size": { - "0": 484.9474182128906, - "1": 130 - }, - "flags": {}, - "order": 20, - "mode": 0, - "inputs": [ - { - "name": "embedding_driver", - "type": "EMBEDDING_DRIVER", - "link": null - } - ], - "outputs": [ - { - "name": "DRIVER", - "type": "VECTOR_STORE_DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: Qdrant Vector Store" - }, - "widgets_values": [ - "griptape", - "content", - "QDRANT_CLUSTER_API_KEY", - "QDRANT_CLUSTER_ENDPOINT" - ] - }, - { - "id": 139, - "type": "Griptape Driver: Marqo Vector Store", - "pos": [ - -1300, - 2550 - ], - "size": { - "0": 487.8756103515625, - "1": 106 - }, - "flags": {}, - "order": 21, - "mode": 0, - "inputs": [ - { - "name": "embedding_driver", - "type": "EMBEDDING_DRIVER", - "link": null - } - ], - "outputs": [ - { - "name": "DRIVER", - "type": "VECTOR_STORE_DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: Marqo Vector Store" - }, - "widgets_values": [ - "MARQO_API_KEY", - "MARQO_URL", - "MARQO_INDEX_NAME" - ] - }, - { - "id": 140, - "type": "Griptape Driver: Local Vector Store", - "pos": [ - -750, - 2000 - ], - "size": { - "0": 400.5312194824219, - "1": 82 - }, - "flags": {}, - "order": 41, - "mode": 0, - "inputs": [ - { - "name": "embedding_driver", - "type": "EMBEDDING_DRIVER", - "link": 179 - } - ], - "outputs": [ - { - "name": "DRIVER", - "type": "VECTOR_STORE_DRIVER", - "links": [ - 178 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: Local Vector Store" - }, - "widgets_values": [ - false, - "griptape_local_vector_file.txt" - ] - }, - { - "id": 141, - "type": "Griptape Driver: MongoDB Atlas Vector Store", - "pos": [ - -750, - 2150 - ], - "size": { - "0": 398.5791931152344, - "1": 202 - }, - "flags": {}, - "order": 22, - "mode": 0, - "inputs": [ - { - "name": "embedding_driver", - "type": "EMBEDDING_DRIVER", - "link": null - } - ], - "outputs": [ - { - "name": "DRIVER", - "type": "VECTOR_STORE_DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: MongoDB Atlas Vector Store" - }, - "widgets_values": [ - "MONGODB_HOST", - "MONGODB_USERNAME", - "MONGODB_PASSWORD", - "MONGODB_DATABASE_NAME", - "MONGODB_COLLECTION_NAME", - "MONGODB_INDEX_NAME", - "MONGODB_VECTOR_PATH" - ] - }, - { - "id": 142, - "type": "Griptape Driver: Redis Vector Store", - "pos": [ - -750, - 2400 - ], - "size": { - "0": 400.5312194824219, - "1": 130 - }, - "flags": {}, - "order": 23, - "mode": 0, - "inputs": [ - { - "name": "embedding_driver", - "type": "EMBEDDING_DRIVER", - "link": null - } - ], - "outputs": [ - { - "name": "DRIVER", - "type": "VECTOR_STORE_DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: Redis Vector Store" - }, - "widgets_values": [ - "REDIS_HOST", - "REDIS_PORT", - "REDIS_PASSWORD", - "REDIS_INDEX" - ] - }, - { - "id": 143, - "type": "Griptape Embedding Driver: OpenAI", - "pos": [ - -1300, - 1550 - ], - "size": { - "0": 436.5832824707031, - "1": 82 - }, - "flags": {}, - "order": 24, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "EMBEDDING_DRIVER", - "links": [ - 179, - 182 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Embedding Driver: OpenAI" - }, - "widgets_values": [ - "text-embedding-3-small", - "OPENAI_API_KEY" - ] - }, - { - "id": 144, - "type": "Griptape Embedding Driver: Azure OpenAI", - "pos": [ - -1300, - 1400 - ], - "size": { - "0": 437.6571044921875, - "1": 106 - }, - "flags": {}, - "order": 25, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "EMBEDDING_DRIVER", - "links": null, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Embedding Driver: Azure OpenAI" - }, - "widgets_values": [ - "text-embedding-3-small", - "AZURE_OPENAI_ENDPOINT", - "AZURE_OPENAI_API_KEY" - ] - }, { "id": 145, "type": "Reroute", - "pos": [ - -85, - 1652 - ], + "pos": { + "0": -85, + "1": 1652 + }, "size": [ 174.4, 26 ], "flags": {}, - "order": 42, + "order": 48, "mode": 0, "inputs": [ { "name": "", "type": "*", - "link": 182 + "link": 198 } ], "outputs": [ @@ -1158,16 +358,16 @@ { "id": 146, "type": "Griptape Agent Config: Custom Structure", - "pos": [ - 1250, - 1750 - ], + "pos": { + "0": 1250, + "1": 1750 + }, "size": { "0": 418.1999816894531, "1": 126 }, "flags": {}, - "order": 48, + "order": 51, "mode": 0, "inputs": [ { @@ -1214,56 +414,50 @@ ], "properties": { "Node name for S&R": "Griptape Agent Config: Custom Structure" - } + }, + "color": "#2a363b", + "bgcolor": "#3f5159" }, { - "id": 147, - "type": "Griptape Text To Speech Driver: OpenAI", - "pos": [ - -700, - 2900 - ], + "id": 91, + "type": "Note", + "pos": { + "0": -2350, + "1": -1050 + }, "size": { - "0": 359.3539123535156, - "1": 106 + "0": 500, + "1": 150 }, "flags": {}, - "order": 26, + "order": 5, "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "TEXT_TO_SPEECH_DRIVER", - "links": [ - 186 - ], - "slot_index": 0, - "shape": 3 - } - ], + "inputs": [], + "outputs": [], "properties": { - "Node name for S&R": "Griptape Text To Speech Driver: OpenAI" + "text": "" }, "widgets_values": [ - "tts-1", - "alloy", - "OPENAI_API_KEY" - ] + "Prompt Drivers are used by Griptape Structures to make API calls to the underlying LLMs. OpenAi Chat is the default prompt driver used in all structures.\n\nhttps://docs.griptape.ai/stable/griptape-framework/drivers/prompt-drivers/\n" + ], + "color": "#322", + "bgcolor": "#533" }, { - "id": 148, - "type": "Griptape Text To Speech Driver: ElevenLabs", - "pos": [ - -700, - 3050 - ], + "id": 180, + "type": "Griptape Driver: Amazon Bedrock Stable Diffusion", + "pos": { + "0": -2350, + "1": 800 + }, "size": { - "0": 358.2803039550781, - "1": 106 + "0": 604.800048828125, + "1": 226 }, "flags": {}, - "order": 27, + "order": 6, "mode": 0, + "inputs": [], "outputs": [ { "name": "DRIVER", @@ -1272,38 +466,159 @@ "shape": 3 } ], + "properties": { + "Node name for S&R": "Griptape Driver: Amazon Bedrock Stable Diffusion" + }, + "widgets_values": [ + "cinematic", + 512, + 512, + 1180, + "randomize", + "AWS_ACCESS_KEY_ID", + "AWS_SECRET_ACCESS_KEY", + "AWS_DEFAULT_REGION" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 186, + "type": "Griptape Embedding Driver: Amazon Bedrock Titan", + "pos": { + "0": -2350, + "1": 1600 + }, + "size": { + "0": 592.199951171875, + "1": 130 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "EMBEDDING_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Embedding Driver: Amazon Bedrock Titan" + }, + "widgets_values": [ + "amazon.titan-text-premier-v1:0", + "AWS_ACCESS_KEY_ID", + "AWS_SECRET_ACCESS_KEY", + "AWS_DEFAULT_REGION" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 194, + "type": "Griptape Vector Store Driver: PGVector", + "pos": { + "0": -1800, + "1": 2450 + }, + "size": { + "0": 478.8000183105469, + "1": 178 + }, + "flags": {}, + "order": 8, + "mode": 0, + "inputs": [ + { + "name": "embedding_driver", + "type": "EMBEDDING_DRIVER", + "link": null + } + ], + "outputs": [ + { + "name": "DRIVER", + "type": "VECTOR_STORE_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Vector Store Driver: PGVector" + }, + "widgets_values": [ + "griptape_vectors", + "POSTGRES_HOST", + "POSTGRES_USER", + "POSTGRES_PASSWORD", + "POSTGRES_PORT", + "POSTGRES_DB" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 203, + "type": "Griptape Text To Speech Driver: ElevenLabs", + "pos": { + "0": -700, + "1": 3050 + }, + "size": { + "0": 529.199951171875, + "1": 130 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "TEXT_TO_SPEECH_DRIVER", + "links": null, + "shape": 3 + } + ], "properties": { "Node name for S&R": "Griptape Text To Speech Driver: ElevenLabs" }, "widgets_values": [ "eleven_multilingual_v2", "Matilda", + "eleven_multilingual_v2", "ELEVEN_LABS_API_KEY" - ] + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 150, + "id": 204, "type": "Griptape Audio Transcription Driver: OpenAI", - "pos": [ - -700, - 3350 - ], + "pos": { + "0": -700, + "1": 3350 + }, "size": { - "0": 361.20001220703125, + "0": 541.800048828125, "1": 82 }, "flags": {}, - "order": 28, + "order": 10, "mode": 0, + "inputs": [], "outputs": [ { "name": "DRIVER", "type": "AUDIO_TRANSCRIPTION_DRIVER", "links": [ - 190 + 200 ], - "slot_index": 0, - "shape": 3 + "shape": 3, + "slot_index": 0 } ], "properties": { @@ -1312,102 +627,31 @@ "widgets_values": [ "whisper-1", "OPENAI_API_KEY" - ] + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 151, - "type": "Griptape Driver: OpenAI Image Generation", - "pos": [ - -1300, - 900 - ], - "size": { - "0": 449.41546630859375, - "1": 106 - }, - "flags": {}, - "order": 29, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "DRIVER", - "links": [ - 192 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Driver: OpenAI Image Generation" - }, - "widgets_values": [ - "dall-e-3", - "1024x1024", - "OPENAI_API_KEY" - ] - }, - { - "id": 153, - "type": "Griptape Prompt Driver: OpenAI", - "pos": [ - -1300, - -300 - ], - "size": { - "0": 409.6483154296875, - "1": 226 - }, - "flags": {}, - "order": 30, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "PROMPT_DRIVER", - "links": [ - 193 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Prompt Driver: OpenAI" - }, - "widgets_values": [ - "gpt-4o", - "default", - false, - 10, - 0.1, - 10342349342, - "randomize", - "OPENAI_API_KEY" - ] - }, - { - "id": 155, + "id": 177, "type": "Griptape Prompt Driver: OpenAI Compatible", - "pos": [ - -1300, - 0 - ], + "pos": { + "0": -1125, + "1": -200 + }, "size": { - "0": 411.7956237792969, - "1": 226 + "0": 516.5999755859375, + "1": 250 }, "flags": {}, - "order": 31, + "order": 11, "mode": 0, + "inputs": [], "outputs": [ { "name": "DRIVER", "type": "PROMPT_DRIVER", "links": null, - "shape": 3, - "slot_index": 0 + "shape": 3 } ], "properties": { @@ -1415,109 +659,364 @@ }, "widgets_values": [ "gpt-4o", - "https://api.openai.com/v1", - false, 10, 0.1, - 10342349342, - "randomize", + 2048, + "fixed", + false, + -1, + "https://api.openai.com/v1", "OPENAI_API_KEY" - ] + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 156, - "type": "Griptape Prompt Driver: Ollama", - "pos": [ - -1800, - -800 - ], - "size": { - "0": 442.7790832519531, - "1": 226 + "id": 176, + "type": "Griptape Prompt Driver: OpenAI", + "pos": { + "0": -1125, + "1": -525 }, + "size": [ + 525, + 250 + ], "flags": {}, - "order": 32, + "order": 12, "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "PROMPT_DRIVER", + "links": [ + 196 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Griptape Prompt Driver: OpenAI" + }, + "widgets_values": [ + "gpt-4o", + 10, + 0.1, + 2048, + "fixed", + true, + -1, + "default", + "OPENAI_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 175, + "type": "Griptape Prompt Driver: Azure OpenAI", + "pos": { + "0": -1125, + "1": -900 + }, + "size": [ + 525, + 300 + ], + "flags": {}, + "order": 13, + "mode": 0, + "inputs": [], "outputs": [ { "name": "DRIVER", "type": "PROMPT_DRIVER", "links": null, - "shape": 3, - "slot_index": 0 + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Prompt Driver: Azure OpenAI" + }, + "widgets_values": [ + "gpt-4o", + 10, + 0.1, + 2048, + "fixed", + true, + -1, + "gpt-4o", + "default", + "AZURE_OPENAI_ENDPOINT", + "AZURE_OPENAI_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 174, + "type": "Griptape Prompt Driver: Ollama", + "pos": { + "0": -1725, + "1": -1025 + }, + "size": [ + 550, + 250 + ], + "flags": {}, + "order": 14, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "PROMPT_DRIVER", + "links": null, + "shape": 3 } ], "properties": { "Node name for S&R": "Griptape Prompt Driver: Ollama" }, "widgets_values": [ - "", "http://127.0.0.1", "11434", - false, + "hermes3:latest", 10, 0.1, - 10342349342, - "randomize" - ] + 2048, + "fixed", + true, + -1 + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 157, + "id": 173, "type": "Griptape Prompt Driver: LM Studio", - "pos": [ - -1800, - -500 - ], - "size": { - "0": 444.7312927246094, - "1": 230.7944793701172 + "pos": { + "0": -1725, + "1": -700 }, + "size": [ + 550, + 275 + ], "flags": {}, - "order": 33, + "order": 15, "mode": 0, + "inputs": [], "outputs": [ { "name": "DRIVER", "type": "PROMPT_DRIVER", "links": null, - "shape": 3, - "slot_index": 0 + "shape": 3 } ], "properties": { "Node name for S&R": "Griptape Prompt Driver: LM Studio" }, "widgets_values": [ - null, - "http://127.0.0.1", - "1234", - false, + "lmstudio-community/Meta-Llama-3.1-8B-Instruct-GGUF/Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf", 10, 0.1, - 10342349342, - "randomize" - ] + 2048, + "fixed", + false, + -1, + "http://127.0.0.1", + "1234", + "lm_studio" + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 160, - "type": "Griptape Prompt Driver: HuggingFace", - "pos": [ - -2350, - -100 - ], - "size": { - "0": 493.7650146484375, - "1": 178 + "id": 172, + "type": "Griptape Prompt Driver: Anthropic", + "pos": { + "0": -1725, + "1": -350 }, + "size": [ + 550, + 225 + ], "flags": {}, - "order": 34, + "order": 16, "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "PROMPT_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Prompt Driver: Anthropic" + }, + "widgets_values": [ + "claude-3-5-sonnet-20240620", + 10, + 0.1, + 2048, + "fixed", + true, + -1, + "ANTHROPIC_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 179, + "type": "Griptape Prompt Driver: Amazon SageMaker Jumpstart", + "pos": { + "0": -1725, + "1": -50 + }, + "size": [ + 550, + 300 + ], + "flags": {}, + "order": 17, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "PROMPT_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Prompt Driver: Amazon SageMaker Jumpstart" + }, + "widgets_values": [ + "meta-llama/Meta-Llama-3-8B-Instruct", + 10, + 0.1, + 2048, + "fixed", + true, + -1, + "jumpstart-dft-...", + "AWS_ACCESS_KEY_ID", + "AWS_SECRET_ACCESS_KEY", + "AWS_DEFAULT_REGION" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 167, + "type": "Griptape Prompt Driver: Amazon Bedrock", + "pos": { + "0": -2350, + "1": -850 + }, + "size": [ + 550, + 275 + ], + "flags": {}, + "order": 18, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "PROMPT_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Prompt Driver: Amazon Bedrock" + }, + "widgets_values": [ + "anthropic.claude-3-5-sonnet-20240620-v1:0", + 10, + 0.1, + 2048, + "fixed", + true, + -1, + "AWS_ACCESS_KEY_ID", + "AWS_SECRET_ACCESS_KEY", + "AWS_DEFAULT_REGION" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 168, + "type": "Griptape Prompt Driver: Cohere", + "pos": { + "0": -2350, + "1": -525 + }, + "size": [ + 550, + 200 + ], + "flags": {}, + "order": 19, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "PROMPT_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Prompt Driver: Cohere" + }, + "widgets_values": [ + "command-r-plus", + 10, + 2048, + "fixed", + true, + -1, + "COHERE_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 169, + "type": "Griptape Prompt Driver: HuggingFace", + "pos": { + "0": -2350, + "1": -250 + }, + "size": [ + 550, + 225 + ], + "flags": {}, + "order": 20, + "mode": 0, + "inputs": [], "outputs": [ { "name": "DRIVER", "type": "PROMPT_DRIVER", "links": null, - "slot_index": 0, "shape": 3 } ], @@ -1528,102 +1027,35 @@ "HuggingFaceH4/zephyr-7b-beta", 10, 0.1, - 10342349342, - "randomize", + 2048, + "fixed", + true, + -1, "HUGGINGFACE_HUB_ACCESS_TOKEN" - ] + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 161, - "type": "Griptape Prompt Driver: Cohere", - "pos": [ - -2350, - -350 - ], - "size": { - "0": 494.83868408203125, - "1": 192.749267578125 - }, - "flags": {}, - "order": 35, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "PROMPT_DRIVER", - "links": null, - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Prompt Driver: Cohere" - }, - "widgets_values": [ - "command-r-plus", - false, - 10, - 10342349342, - "randomize", - "COHERE_API_KEY" - ] - }, - { - "id": 162, - "type": "Griptape Prompt Driver: Amazon Bedrock", - "pos": [ - -2350, - -600 - ], - "size": { - "0": 494.83868408203125, - "1": 203.32012939453125 - }, - "flags": {}, - "order": 36, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "PROMPT_DRIVER", - "links": null, - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Prompt Driver: Amazon Bedrock" - }, - "widgets_values": [ - "anthropic.claude-3-5-sonnet-20240620-v1:0", - false, - 10, - 0.1, - 10342349342, - "randomize", - "ANTHROPIC_API_KEY" - ] - }, - { - "id": 163, + "id": 170, "type": "Griptape Prompt Driver: Google", - "pos": [ - -2350, - 150 - ], - "size": { - "0": 492.6913757324219, - "1": 202 + "pos": { + "0": -2350, + "1": 50 }, + "size": [ + 550, + 225 + ], "flags": {}, - "order": 37, + "order": 21, "mode": 0, + "inputs": [], "outputs": [ { "name": "DRIVER", "type": "PROMPT_DRIVER", "links": null, - "slot_index": 0, "shape": 3 } ], @@ -1632,154 +1064,917 @@ }, "widgets_values": [ "gemini-1.5-pro", - false, 10, 0.1, - 10342349342, - "randomize", + 2048, + "fixed", + true, + -1, "GOOGLE_API_KEY" - ] + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 164, - "type": "Griptape Prompt Driver: Amazon SageMaker Jumpstart", - "pos": [ - -1800, - 50 - ], + "id": 182, + "type": "Griptape Driver: Amazon Bedrock Titan", + "pos": { + "0": -1700, + "1": 875 + }, "size": [ - 446.24419234876586, - 274 + 500, + 200 ], "flags": {}, - "order": 38, + "order": 22, "mode": 0, + "inputs": [], "outputs": [ { "name": "DRIVER", - "type": "PROMPT_DRIVER", + "type": "DRIVER", "links": null, - "shape": 3, - "slot_index": 0 + "shape": 3 } ], "properties": { - "Node name for S&R": "Griptape Prompt Driver: Amazon SageMaker Jumpstart" + "Node name for S&R": "Griptape Driver: Amazon Bedrock Titan" }, "widgets_values": [ - "meta-llama/Meta-Llama-3-8B-Instruct", - "jumpstart-dft-...", - false, - 10, - 0.1, - 10342349342, + "amazon.titan-image-generator-v1", + "512x512", + 704, "randomize", "AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY", "AWS_DEFAULT_REGION" - ] + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 165, - "type": "Griptape Prompt Driver: Anthropic", - "pos": [ - -1800, - -201 - ], + "id": 181, + "type": "Griptape Driver: Leonardo.AI", + "pos": { + "0": -1700, + "1": 675 + }, "size": [ - 436.581132348766, - 202 + 500, + 125 + ], + "flags": {}, + "order": 23, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Driver: Leonardo.AI" + }, + "widgets_values": [ + "default", + false, + "", + "LEONARDO_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 184, + "type": "Griptape Driver: OpenAI Image Generation", + "pos": { + "0": -1150, + "1": 900 + }, + "size": [ + 575, + 100 + ], + "flags": {}, + "order": 24, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "DRIVER", + "links": [ + 197 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Griptape Driver: OpenAI Image Generation" + }, + "widgets_values": [ + "dall-e-3", + "1024x1024", + "OPENAI_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 183, + "type": "Griptape Driver: Azure OpenAI Image Generation", + "pos": { + "0": -1150, + "1": 675 + }, + "size": { + "0": 579.5999755859375, + "1": 154 + }, + "flags": {}, + "order": 25, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Driver: Azure OpenAI Image Generation" + }, + "widgets_values": [ + "dall-e-3", + "dall-e-3", + "1024x1024", + "AZURE_OPENAI_DALL_E_3_ENDPOINT", + "AZURE_OPENAI_DALL_E_3_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 185, + "type": "Griptape Embedding Driver: HuggingFace", + "pos": { + "0": -2350, + "1": 1400 + }, + "size": [ + 600, + 125 + ], + "flags": {}, + "order": 26, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "EMBEDDING_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Embedding Driver: HuggingFace" + }, + "widgets_values": [ + "sentence-transformers/all-MiniLM-L6-v2", + "sentence-transformers/all-MiniLM-L6-v2", + 512, + "HUGGINGFACE_HUB_ACCESS_TOKEN" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 187, + "type": "Griptape Embedding Driver: Voyage AI", + "pos": { + "0": -1700, + "1": 1250 + }, + "size": { + "0": 453.5999755859375, + "1": 106 + }, + "flags": {}, + "order": 27, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "EMBEDDING_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Embedding Driver: Voyage AI" + }, + "widgets_values": [ + "VOYAGE_API_KEY", + "voyage-large-2", + "document" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 188, + "type": "Griptape Embedding Driver: Cohere", + "pos": { + "0": -1700, + "1": 1400 + }, + "size": [ + 450, + 100 + ], + "flags": {}, + "order": 28, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "EMBEDDING_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Embedding Driver: Cohere" + }, + "widgets_values": [ + "embed-english-v3.0", + "search_query", + "COHERE_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 189, + "type": "Griptape Embedding Driver: Google", + "pos": { + "0": -1700, + "1": 1550 + }, + "size": [ + 450, + 100 + ], + "flags": {}, + "order": 29, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "EMBEDDING_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Embedding Driver: Google" + }, + "widgets_values": [ + "models/embedding-001", + "RETRIEVAL_QUERY", + "GOOGLE_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 205, + "type": "Griptape Embedding Driver: Amazon SageMaker Jumpstart", + "pos": { + "0": -1700, + "1": 1700 + }, + "size": [ + 450, + 150 + ], + "flags": {}, + "order": 30, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "EMBEDDING_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Embedding Driver: Amazon SageMaker Jumpstart" + }, + "widgets_values": [ + "", + "jumpstart-dft-...", + "AWS_ACCESS_KEY_ID", + "AWS_SECRET_ACCESS_KEY", + "AWS_DEFAULT_REGION" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 191, + "type": "Griptape Embedding Driver: Azure OpenAI", + "pos": { + "0": -1150, + "1": 1250 + }, + "size": [ + 575, + 100 + ], + "flags": {}, + "order": 31, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "EMBEDDING_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Embedding Driver: Azure OpenAI" + }, + "widgets_values": [ + "text-embedding-3-small", + "AZURE_OPENAI_ENDPOINT", + "AZURE_OPENAI_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 192, + "type": "Griptape Embedding Driver: OpenAI", + "pos": { + "0": -1150, + "1": 1400 + }, + "size": [ + 575, + 100 + ], + "flags": {}, + "order": 32, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "EMBEDDING_DRIVER", + "links": [ + 198 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Griptape Embedding Driver: OpenAI" + }, + "widgets_values": [ + "text-embedding-3-small", + "OPENAI_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 190, + "type": "Griptape Embedding Driver: OpenAI Compatible", + "pos": { + "0": -1150, + "1": 1550 + }, + "size": [ + 575, + 100 + ], + "flags": {}, + "order": 33, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "EMBEDDING_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Embedding Driver: OpenAI Compatible" + }, + "widgets_values": [ + "text-embedding-3-small", + "https://api.openai.com/v1", + "OPENAI_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 206, + "type": "Griptape Embedding Driver: Cohere", + "pos": { + "0": -1150, + "1": 1700 + }, + "size": [ + 575, + 100 + ], + "flags": {}, + "order": 34, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "EMBEDDING_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Embedding Driver: Cohere" + }, + "widgets_values": [ + "embed-english-v3.0", + "search_query", + "COHERE_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 200, + "type": "Griptape Vector Store Driver: MongoDB Atlas", + "pos": { + "0": -675, + "1": 2150 + }, + "size": [ + 475, + 200 + ], + "flags": {}, + "order": 35, + "mode": 0, + "inputs": [ + { + "name": "embedding_driver", + "type": "EMBEDDING_DRIVER", + "link": null + } + ], + "outputs": [ + { + "name": "DRIVER", + "type": "VECTOR_STORE_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Vector Store Driver: MongoDB Atlas" + }, + "widgets_values": [ + "MONGODB_HOST", + "MONGODB_USERNAME", + "MONGODB_PASSWORD", + "MONGODB_DATABASE_NAME", + "MONGODB_COLLECTION_NAME", + "MONGODB_INDEX_NAME", + "MONGODB_VECTOR_PATH" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 199, + "type": "Griptape Vector Store Driver: Local", + "pos": { + "0": -650, + "1": 2000 + }, + "size": { + "0": 441, + "1": 82 + }, + "flags": {}, + "order": 36, + "mode": 0, + "inputs": [ + { + "name": "embedding_driver", + "type": "EMBEDDING_DRIVER", + "link": null + } + ], + "outputs": [ + { + "name": "DRIVER", + "type": "VECTOR_STORE_DRIVER", + "links": [ + 199 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Griptape Vector Store Driver: Local" + }, + "widgets_values": [ + false, + "griptape_local_vector_file.txt" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 201, + "type": "Griptape Vector Store Driver: Redis", + "pos": { + "0": -675, + "1": 2400 + }, + "size": { + "0": 441, + "1": 130 + }, + "flags": {}, + "order": 37, + "mode": 0, + "inputs": [ + { + "name": "embedding_driver", + "type": "EMBEDDING_DRIVER", + "link": null + } + ], + "outputs": [ + { + "name": "DRIVER", + "type": "VECTOR_STORE_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Vector Store Driver: Redis" + }, + "widgets_values": [ + "REDIS_HOST", + "REDIS_PORT", + "REDIS_PASSWORD", + "REDIS_INDEX" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 207, + "type": "Griptape Vector Store Driver: Griptape Cloud KnowledgeBase", + "pos": { + "0": -675, + "1": 2600 + }, + "size": [ + 475, + 100 + ], + "flags": {}, + "order": 38, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "VECTOR_STORE_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Vector Store Driver: Griptape Cloud KnowledgeBase" + }, + "widgets_values": [ + "GRIPTAPE_CLOUD_API_KEY", + "https://cloud.griptape.ai", + "12345-abcde-1434" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 193, + "type": "Griptape Vector Store Driver: Azure MongoDB", + "pos": { + "0": -1800, + "1": 2200 + }, + "size": [ + 475, + 200 ], "flags": {}, "order": 39, "mode": 0, + "inputs": [ + { + "name": "embedding_driver", + "type": "EMBEDDING_DRIVER", + "link": null + } + ], "outputs": [ { "name": "DRIVER", - "type": "PROMPT_DRIVER", + "type": "VECTOR_STORE_DRIVER", "links": null, - "shape": 3, - "slot_index": 0 + "shape": 3 } ], "properties": { - "Node name for S&R": "Griptape Prompt Driver: Anthropic" + "Node name for S&R": "Griptape Vector Store Driver: Azure MongoDB" }, "widgets_values": [ - "claude-3-5-sonnet-20240620", - false, - 10, - 0.1, - 10342349342, - "randomize", - "ANTHROPIC_API_KEY" - ] + "AZURE_MONGODB_HOST", + "AZURE_MONGODB_USERNAME", + "AZURE_MONGODB_PASSWORD", + "AZURE_MONGODB_DATABASE_NAME", + "AZURE_MONGODB_COLLECTION_NAME", + "AZURE_MONGODB_INDEX_NAME", + "AZURE_MONGODB_VECTOR_PATH" + ], + "color": "#233", + "bgcolor": "#355" }, { - "id": 166, - "type": "Griptape Prompt Driver: Azure OpenAI", - "pos": [ - -1300, - -650 - ], + "id": 196, + "type": "Griptape Vector Store Driver: Amazon OpenSearch", + "pos": { + "0": -1275, + "1": 2150 + }, "size": [ - 408.99746454725164, - 274 + 550, + 150 ], "flags": {}, "order": 40, "mode": 0, + "inputs": [ + { + "name": "embedding_driver", + "type": "EMBEDDING_DRIVER", + "link": null + } + ], "outputs": [ { "name": "DRIVER", - "type": "PROMPT_DRIVER", + "type": "VECTOR_STORE_DRIVER", "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Vector Store Driver: Amazon OpenSearch" + }, + "widgets_values": [ + "AMAZON_OPENSEARCH_HOST", + "AMAZON_OPENSEARCH_INDEX_NAME", + "AWS_ACCESS_KEY_ID", + "AWS_SECRET_ACCESS_KEY", + "AWS_DEFAULT_REGION" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 197, + "type": "Griptape Vector Store Driver: Qdrant", + "pos": { + "0": -1275, + "1": 2350 + }, + "size": [ + 550, + 150 + ], + "flags": {}, + "order": 41, + "mode": 0, + "inputs": [ + { + "name": "embedding_driver", + "type": "EMBEDDING_DRIVER", + "link": null + } + ], + "outputs": [ + { + "name": "DRIVER", + "type": "VECTOR_STORE_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Vector Store Driver: Qdrant" + }, + "widgets_values": [ + "griptape", + "content", + "QDRANT_CLUSTER_API_KEY", + "QDRANT_CLUSTER_ENDPOINT" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 198, + "type": "Griptape Vector Store Driver: Marqo", + "pos": { + "0": -1275, + "1": 2550 + }, + "size": [ + 550, + 100 + ], + "flags": {}, + "order": 42, + "mode": 0, + "inputs": [ + { + "name": "embedding_driver", + "type": "EMBEDDING_DRIVER", + "link": null + } + ], + "outputs": [ + { + "name": "DRIVER", + "type": "VECTOR_STORE_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Vector Store Driver: Marqo" + }, + "widgets_values": [ + "MARQO_API_KEY", + "MARQO_URL", + "MARQO_INDEX_NAME" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 195, + "type": "Griptape Vector Store Driver: Pinecone", + "pos": { + "0": -1275, + "1": 2000 + }, + "size": [ + 550, + 100 + ], + "flags": {}, + "order": 43, + "mode": 0, + "inputs": [ + { + "name": "embedding_driver", + "type": "EMBEDDING_DRIVER", + "link": null + } + ], + "outputs": [ + { + "name": "DRIVER", + "type": "VECTOR_STORE_DRIVER", + "links": null, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Vector Store Driver: Pinecone" + }, + "widgets_values": [ + "PINECONE_API_KEY", + "PINECONE_ENVIRONMENT", + "PINECONE_INDEX_NAME" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 202, + "type": "Griptape Text To Speech Driver: OpenAI", + "pos": { + "0": -700, + "1": 2900 + }, + "size": [ + 525, + 100 + ], + "flags": {}, + "order": 44, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "TEXT_TO_SPEECH_DRIVER", + "links": [ + 201 + ], "shape": 3, "slot_index": 0 } ], "properties": { - "Node name for S&R": "Griptape Prompt Driver: Azure OpenAI" + "Node name for S&R": "Griptape Text To Speech Driver: OpenAI" }, "widgets_values": [ - "gpt-4o", - "gpt-4o", - "default", - false, - 10, - 0.1, - 10342349342, - "randomize", - "AZURE_OPENAI_ENDPOINT", - "AZURE_OPENAI_API_KEY" - ] + "tts-1", + "alloy", + "OPENAI_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 108, + "type": "Griptape Create: Agent from Config", + "pos": { + "0": 1750, + "1": 1775 + }, + "size": { + "0": 285.6000061035156, + "1": 41.90807342529297 + }, + "flags": {}, + "order": 52, + "mode": 0, + "inputs": [ + { + "name": "config", + "type": "CONFIG", + "link": 195 + } + ], + "outputs": [ + { + "name": "AGENT", + "type": "AGENT", + "links": [], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Create: Agent from Config" + }, + "color": "#222", + "bgcolor": "#000" } ], "links": [ - [ - 178, - 140, - 0, - 96, - 0, - "*" - ], - [ - 179, - 143, - 0, - 140, - 0, - "EMBEDDING_DRIVER" - ], - [ - 182, - 143, - 0, - 145, - 0, - "*" - ], [ 183, 72, @@ -1804,14 +1999,6 @@ 3, "VECTOR_STORE_DRIVER" ], - [ - 186, - 147, - 0, - 99, - 0, - "*" - ], [ 187, 99, @@ -1820,14 +2007,6 @@ 4, "TEXT_TO_SPEECH_DRIVER" ], - [ - 190, - 150, - 0, - 106, - 0, - "*" - ], [ 191, 106, @@ -1836,22 +2015,6 @@ 5, "AUDIO_TRANSCRIPTION_DRIVER" ], - [ - 192, - 151, - 0, - 72, - 0, - "*" - ], - [ - 193, - 153, - 0, - 70, - 0, - "*" - ], [ 194, 70, @@ -1867,6 +2030,54 @@ 108, 0, "CONFIG" + ], + [ + 196, + 176, + 0, + 70, + 0, + "*" + ], + [ + 197, + 184, + 0, + 72, + 0, + "*" + ], + [ + 198, + 192, + 0, + 145, + 0, + "*" + ], + [ + 199, + 199, + 0, + 96, + 0, + "*" + ], + [ + 200, + 204, + 0, + 106, + 0, + "*" + ], + [ + 201, + 202, + 0, + 99, + 0, + "*" ] ], "groups": [ @@ -1874,67 +2085,73 @@ "title": "Prompt Drivers", "bounding": [ -2400, - -900, - 1600, - 1350 + -1125, + 1848, + 1611 ], "color": "#A88", - "font_size": 24 + "font_size": 24, + "locked": false }, { "title": "Image Generation Drivers", "bounding": [ -2400, 550, - 1600, + 1850, 550 ], "color": "#8A8", - "font_size": 24 + "font_size": 24, + "locked": false }, { "title": "Embedding Drivers", "bounding": [ -2400, 1150, - 1600, - 650 + 1850, + 725 ], "color": "#8AA", - "font_size": 24 + "font_size": 24, + "locked": false }, { "title": "Vector Store Drivers", "bounding": [ -1850, 1900, - 1550, - 800 + 1725, + 850 ], "color": "#a1309b", - "font_size": 24 + "font_size": 24, + "locked": false }, { "title": "Text To Speech Driver", "bounding": [ -1250, 2800, - 950, + 1125, 400 ], "color": "#b58b2a", - "font_size": 24 + "font_size": 24, + "locked": false }, { "title": "Audio Transcription Driver", "bounding": [ -1250, 3250, - 950, - 250 + 1125, + 275 ], "color": "#88A", - "font_size": 24 + "font_size": 24, + "locked": false }, { "title": "Griptape Agent", @@ -1945,16 +2162,17 @@ 344 ], "color": "#3f789e", - "font_size": 24 + "font_size": 24, + "locked": false } ], "config": {}, "extra": { "ds": { - "scale": 0.16350799082655812, + "scale": 0.2896643797366883, "offset": [ - 6063.466367707111, - 1123.848637056145 + 3129.5251010635498, + 853.6244258307889 ] }, "groupNodes": {} diff --git a/examples/Griptape-Agent-Config.png b/examples/Griptape-Agent-Config.png index 8cbaba6..e2de275 100644 Binary files a/examples/Griptape-Agent-Config.png and b/examples/Griptape-Agent-Config.png differ diff --git a/examples/Griptape-Expert-Photographers.json b/examples/Griptape-Expert-Photographers.json deleted file mode 100644 index c4c1d36..0000000 --- a/examples/Griptape-Expert-Photographers.json +++ /dev/null @@ -1,1455 +0,0 @@ -{ - "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 -} \ No newline at end of file diff --git a/examples/Griptape-Expert-Photographers.png b/examples/Griptape-Expert-Photographers.png deleted file mode 100644 index e3ec470..0000000 Binary files a/examples/Griptape-Expert-Photographers.png and /dev/null differ diff --git a/examples/Griptape-Text-to-Speech.json b/examples/Griptape-Text-to-Speech.json index 486c220..c99cf28 100644 --- a/examples/Griptape-Text-to-Speech.json +++ b/examples/Griptape-Text-to-Speech.json @@ -1,14 +1,14 @@ { - "last_node_id": 28, - "last_link_id": 27, + "last_node_id": 30, + "last_link_id": 29, "nodes": [ { "id": 14, "type": "Note", - "pos": [ - 563, - -194 - ], + "pos": { + "0": 563, + "1": -194 + }, "size": { "0": 427.7603759765625, "1": 174.40943908691406 @@ -16,6 +16,8 @@ "flags": {}, "order": 0, "mode": 0, + "inputs": [], + "outputs": [], "title": "Instructions", "properties": { "text": "" @@ -26,138 +28,19 @@ "color": "#432", "bgcolor": "#653" }, - { - "id": 17, - "type": "Griptape Text To Speech Driver: ElevenLabs", - "pos": [ - 204, - 174 - ], - "size": { - "0": 352.79998779296875, - "1": 106 - }, - "flags": {}, - "order": 1, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "TEXT_TO_SPEECH_DRIVER", - "links": [ - 15 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Text To Speech Driver: ElevenLabs" - }, - "widgets_values": [ - "eleven_multilingual_v2", - "Daniel", - "ELEVEN_LABS_API_KEY" - ], - "color": "#233", - "bgcolor": "#355" - }, - { - "id": 18, - "type": "Griptape Run: Text to Speech", - "pos": [ - 594, - 147 - ], - "size": { - "0": 414.70770263671875, - "1": 162.22833251953125 - }, - "flags": {}, - "order": 6, - "mode": 0, - "inputs": [ - { - "name": "agent", - "type": "AGENT", - "link": null - }, - { - "name": "driver", - "type": "TEXT_TO_SPEECH_DRIVER", - "link": 15 - }, - { - "name": "input_string", - "type": "STRING", - "link": null, - "widget": { - "name": "input_string" - } - } - ], - "outputs": [ - { - "name": "AUDIO", - "type": "AUDIO", - "links": [ - 16 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Run: Text to Speech" - }, - "widgets_values": [ - "Hi, this is Daniel from Eleven Labs talking about Griptape and ComfyUI Nodes.\n\nLearn more on our website:https://www.griptape.ai/griptape-comfyui-nodes", - "" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 19, - "type": "PreviewAudio", - "pos": [ - 1055, - 157 - ], - "size": { - "0": 315, - "1": 76 - }, - "flags": {}, - "order": 8, - "mode": 0, - "inputs": [ - { - "name": "audio", - "type": "AUDIO", - "link": 16 - } - ], - "properties": { - "Node name for S&R": "PreviewAudio" - }, - "widgets_values": [ - null - ] - }, { "id": 20, "type": "Griptape Create: Agent", - "pos": [ - 326.9912944424799, - 735.9697204437964 - ], + "pos": { + "0": 326.9913024902344, + "1": 735.9697265625 + }, "size": { "0": 400, "1": 200 }, "flags": {}, - "order": 9, + "order": 8, "mode": 0, "inputs": [ { @@ -219,10 +102,10 @@ { "id": 21, "type": "Griptape Display: Text", - "pos": [ - 764, - 755 - ], + "pos": { + "0": 764, + "1": 755 + }, "size": { "0": 400, "1": 400 @@ -256,116 +139,26 @@ }, "widgets_values": [ "", - "Picture this, dude: you're cruising down the street, feeling the wind in your hair, and you decide to bust out the \"Griptape Comfy Flip.\" Here's how it goes:\n\n1. **Setup**: Start with a solid ollie, getting some sweet air under your board.\n2. **Griptape Glide**: As you reach the peak of your ollie, you initiate a smooth slide with your front foot, mimicking the precision of griptape.ai. This part is all about control and finesse, like a well-tuned guitar solo.\n3. **Comfy Spin**: While your front foot is gliding, your back foot kicks the tail of the board, initiating a 360-degree spin. This spin is as smooth and effortless as navigating through comfyui nodes, making it look like you're floating on air.\n4. **Catch and Land**: As the board completes its spin, you catch it with your feet, bringing it back under control. Land with style, knees bent, and ride away like a rockstar finishing a killer set.\n\nThe \"Griptape Comfy Flip\" is all about blending tech precision with smooth, effortless style. It's a trick that screams cool and laid-back, just like the grunge scene. So, next time you're out skating, give it a shot and show the world your inner rockstar!" + "Alright, imagine this: you're cruising down the street, feeling the wind in your hair, and you decide to bust out a trick that's gonna blow minds. I call it the \"Griptape Comfy Flip.\"\n\nHere's how it goes down:\n\n1. **The Setup**: You start by rolling at a moderate speed, feet positioned just right on the griptape, feeling that perfect grip under your soles. The board is your canvas, and you're about to paint a masterpiece.\n\n2. **The Pop**: You give a solid pop with your back foot, sending the board into the air. But here's the twist – as the board lifts off, you use your front foot to initiate a flip, just like a classic kickflip.\n\n3. **The ComfyUI Node**: Mid-air, you channel the smooth, interconnected flow of ComfyUI nodes. Your body moves with the board, guiding it through a series of fluid, interconnected motions. It's like you're programming the trick in real-time, each movement a node in the sequence.\n\n4. **The Griptape AI**: As the board flips, you engage your inner Griptape AI. Your feet stick to the board like they're magnetized, ensuring that every flip and spin is controlled and precise. It's like the griptape is an extension of your mind, responding to your every thought.\n\n5. **The Catch**: With the board completing its flip, you catch it with your feet, landing smoothly back on the ground. The trick is seamless, a perfect blend of human skill and AI precision.\n\n6. **The Roll Away**: You ride away, cool as a cucumber, knowing you've just pulled off a trick that's part art, part science, and all style.\n\nThe \"Griptape Comfy Flip\" is more than just a trick – it's a fusion of technology and skateboarding, a testament to the endless possibilities when you let your creativity run wild. So next time you're out there, give it a shot and let the world see your inner tech-skater genius." ], "color": "#222", "bgcolor": "#000" }, - { - "id": 22, - "type": "Griptape Run: Text to Speech", - "pos": [ - 1204.991294442479, - 591.9697204437964 - ], - "size": { - "0": 302.4345703125, - "1": 128.694091796875 - }, - "flags": {}, - "order": 11, - "mode": 0, - "inputs": [ - { - "name": "agent", - "type": "AGENT", - "link": null - }, - { - "name": "driver", - "type": "TEXT_TO_SPEECH_DRIVER", - "link": 22 - }, - { - "name": "input_string", - "type": "STRING", - "link": 21, - "widget": { - "name": "input_string" - } - } - ], - "outputs": [ - { - "name": "AUDIO", - "type": "AUDIO", - "links": [ - 27 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Run: Text to Speech" - }, - "widgets_values": [ - "", - "" - ], - "color": "#322", - "bgcolor": "#533" - }, - { - "id": 23, - "type": "Griptape Text To Speech Driver: ElevenLabs", - "pos": [ - 760, - 593 - ], - "size": { - "0": 352.79998779296875, - "1": 106 - }, - "flags": {}, - "order": 2, - "mode": 0, - "outputs": [ - { - "name": "DRIVER", - "type": "TEXT_TO_SPEECH_DRIVER", - "links": [ - 22 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Text To Speech Driver: ElevenLabs" - }, - "widgets_values": [ - "eleven_multilingual_v2", - "Eric", - "ELEVEN_LABS_API_KEY" - ], - "color": "#233", - "bgcolor": "#355" - }, { "id": 24, "type": "Griptape Tool: WebScraper", - "pos": [ - -32, - 688 - ], + "pos": { + "0": -32, + "1": 688 + }, "size": { "0": 315, "1": 58 }, "flags": {}, - "order": 3, + "order": 1, "mode": 0, + "inputs": [], "outputs": [ { "name": "TOOL", @@ -389,16 +182,16 @@ { "id": 25, "type": "Griptape Combine: Rules List", - "pos": [ - 7, - 948 - ], + "pos": { + "0": 7, + "1": 948 + }, "size": { "0": 235.1999969482422, "1": 66 }, "flags": {}, - "order": 7, + "order": 6, "mode": 0, "inputs": [ { @@ -435,17 +228,18 @@ { "id": 26, "type": "Griptape Create: Rules", - "pos": [ - -293, - 806 - ], + "pos": { + "0": -293, + "1": 806 + }, "size": { "0": 275.2383728027344, "1": 172.63270568847656 }, "flags": {}, - "order": 4, + "order": 2, "mode": 0, + "inputs": [], "outputs": [ { "name": "RULES", @@ -476,17 +270,18 @@ { "id": 27, "type": "Griptape Create: Rules", - "pos": [ - -302.0087055575204, - 1026.9697204437957 - ], + "pos": { + "0": -302.0086975097656, + "1": 1026.9697265625 + }, "size": { "0": 278.7374572753906, "1": 121.91092681884766 }, "flags": {}, - "order": 5, + "order": 3, "mode": 0, + "inputs": [], "outputs": [ { "name": "RULES", @@ -517,10 +312,10 @@ { "id": 28, "type": "PreviewAudio", - "pos": [ - 1575, - 584 - ], + "pos": { + "0": 1575, + "1": 584 + }, "size": { "0": 315, "1": 76 @@ -535,23 +330,231 @@ "link": 27 } ], + "outputs": [], "properties": { "Node name for S&R": "PreviewAudio" }, "widgets_values": [ null ] + }, + { + "id": 22, + "type": "Griptape Run: Text to Speech", + "pos": { + "0": 1200, + "1": 600 + }, + "size": { + "0": 302.4345703125, + "1": 128.694091796875 + }, + "flags": {}, + "order": 11, + "mode": 0, + "inputs": [ + { + "name": "agent", + "type": "AGENT", + "link": null + }, + { + "name": "driver", + "type": "TEXT_TO_SPEECH_DRIVER", + "link": 28 + }, + { + "name": "input_string", + "type": "STRING", + "link": 21, + "widget": { + "name": "input_string" + } + } + ], + "outputs": [ + { + "name": "AUDIO", + "type": "AUDIO", + "links": [ + 27 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Run: Text to Speech" + }, + "widgets_values": [ + "", + "" + ], + "color": "#322", + "bgcolor": "#533" + }, + { + "id": 30, + "type": "Griptape Text To Speech Driver: ElevenLabs", + "pos": { + "0": 775, + "1": 575 + }, + "size": { + "0": 352.79998779296875, + "1": 130 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "TEXT_TO_SPEECH_DRIVER", + "links": [ + 28 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Text To Speech Driver: ElevenLabs" + }, + "widgets_values": [ + "eleven_multilingual_v2", + "Matilda", + "eleven_multilingual_v2", + "ELEVEN_LABS_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 29, + "type": "Griptape Text To Speech Driver: ElevenLabs", + "pos": { + "0": 204, + "1": 174 + }, + "size": { + "0": 375, + "1": 130 + }, + "flags": {}, + "order": 5, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "TEXT_TO_SPEECH_DRIVER", + "links": [ + 29 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Text To Speech Driver: ElevenLabs" + }, + "widgets_values": [ + "eleven_multilingual_v2", + "Matilda", + "eleven_multilingual_v2", + "ELEVEN_LABS_API_KEY" + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 19, + "type": "PreviewAudio", + "pos": { + "0": 1055, + "1": 157 + }, + "size": { + "0": 315, + "1": 76 + }, + "flags": {}, + "order": 9, + "mode": 0, + "inputs": [ + { + "name": "audio", + "type": "AUDIO", + "link": 16 + } + ], + "outputs": [], + "properties": { + "Node name for S&R": "PreviewAudio" + }, + "widgets_values": [ + null + ] + }, + { + "id": 18, + "type": "Griptape Run: Text to Speech", + "pos": { + "0": 594, + "1": 147 + }, + "size": { + "0": 450, + "1": 175 + }, + "flags": {}, + "order": 7, + "mode": 0, + "inputs": [ + { + "name": "agent", + "type": "AGENT", + "link": null + }, + { + "name": "driver", + "type": "TEXT_TO_SPEECH_DRIVER", + "link": 29 + }, + { + "name": "input_string", + "type": "STRING", + "link": null, + "widget": { + "name": "input_string" + } + } + ], + "outputs": [ + { + "name": "AUDIO", + "type": "AUDIO", + "links": [ + 16 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Run: Text to Speech" + }, + "widgets_values": [ + "Hi, this is Daniel from Eleven Labs talking about Griptape and ComfyUI Nodes.\n\nLearn more on our website:https://www.griptape.ai/griptape-comfyui-nodes", + "" + ], + "color": "#322", + "bgcolor": "#533" } ], "links": [ - [ - 15, - 17, - 0, - 18, - 1, - "TEXT_TO_SPEECH_DRIVER" - ], [ 16, 18, @@ -576,14 +579,6 @@ 2, "STRING" ], - [ - 22, - 23, - 0, - 22, - 1, - "TEXT_TO_SPEECH_DRIVER" - ], [ 23, 24, @@ -623,6 +618,22 @@ 28, 0, "AUDIO" + ], + [ + 28, + 30, + 0, + 22, + 1, + "TEXT_TO_SPEECH_DRIVER" + ], + [ + 29, + 29, + 0, + 18, + 1, + "TEXT_TO_SPEECH_DRIVER" ] ], "groups": [ @@ -654,10 +665,10 @@ "config": {}, "extra": { "ds": { - "scale": 0.5131581182307068, + "scale": 1, "offset": [ - 441.83955789283533, - 291.728419754577 + 402.0086975097656, + 294 ] }, "info": { diff --git a/examples/Griptape-Text-to-Speech.png b/examples/Griptape-Text-to-Speech.png index d576cc1..5b393d7 100644 Binary files a/examples/Griptape-Text-to-Speech.png and b/examples/Griptape-Text-to-Speech.png differ diff --git a/examples/OffPrompt.json b/examples/OffPrompt.json index e3a5d55..6e79608 100644 --- a/examples/OffPrompt.json +++ b/examples/OffPrompt.json @@ -1,256 +1,20 @@ { - "last_node_id": 9, - "last_link_id": 6, + "last_node_id": 14, + "last_link_id": 9, "nodes": [ - { - "id": 6, - "type": "Griptape Tool: WebScraper", - "pos": [ - -383.49081587357944, - 663.6364191228695 - ], - "size": { - "0": 315, - "1": 58 - }, - "flags": {}, - "order": 0, - "mode": 0, - "outputs": [ - { - "name": "TOOL", - "type": "TOOL_LIST", - "links": [ - 3 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Tool: WebScraper" - }, - "widgets_values": [ - true - ], - "color": "#233", - "bgcolor": "#355" - }, - { - "id": 7, - "type": "Griptape Combine: Tool List", - "pos": [ - 0.9164268011010215, - 715.2754424136282 - ], - "size": { - "0": 226.8000030517578, - "1": 66 - }, - "flags": {}, - "order": 5, - "mode": 0, - "inputs": [ - { - "name": "tool_1", - "type": "TOOL_LIST", - "link": 3 - }, - { - "name": "tool_2", - "type": "TOOL_LIST", - "link": 4 - }, - { - "name": "tool_3", - "type": "TOOL_LIST", - "link": null - } - ], - "outputs": [ - { - "name": "TOOL_LIST", - "type": "TOOL_LIST", - "links": [ - 5 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Combine: Tool List" - } - }, - { - "id": 4, - "type": "Griptape Agent Config: OpenAI", - "pos": [ - -83, - 308 - ], - "size": { - "0": 315, - "1": 202 - }, - "flags": {}, - "order": 1, - "mode": 0, - "inputs": [ - { - "name": "env", - "type": "ENV", - "link": null - } - ], - "outputs": [ - { - "name": "CONFIG", - "type": "CONFIG", - "links": [ - 2 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Agent Config: OpenAI" - }, - "widgets_values": [ - "gpt-4o", - 0.1, - 10342349342, - "fixed", - 10, - true, - "OPENAI_API_KEY" - ], - "color": "#2a363b", - "bgcolor": "#3f5159" - }, - { - "id": 1, - "type": "Griptape Tool: Query", - "pos": [ - -297.49081587357944, - 792.6364191228695 - ], - "size": { - "0": 229.20001220703125, - "1": 26 - }, - "flags": {}, - "order": 4, - "mode": 0, - "inputs": [ - { - "name": "prompt_driver", - "type": "PROMPT_DRIVER", - "link": 1 - } - ], - "outputs": [ - { - "name": "TOOL", - "type": "TOOL_LIST", - "links": [ - 4 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Tool: Query" - }, - "color": "#233", - "bgcolor": "#355" - }, - { - "id": 2, - "type": "Griptape Prompt Driver: Ollama", - "pos": [ - -655.4908158735792, - 794.6364191228695 - ], - "size": { - "0": 315, - "1": 226 - }, - "flags": {}, - "order": 2, - "mode": 0, - "inputs": [ - { - "name": "env", - "type": "ENV", - "link": null - } - ], - "outputs": [ - { - "name": "DRIVER", - "type": "PROMPT_DRIVER", - "links": [ - 1 - ], - "slot_index": 0, - "shape": 3 - } - ], - "properties": { - "Node name for S&R": "Griptape Prompt Driver: Ollama" - }, - "widgets_values": [ - "llama3.1:latest", - "http://127.0.0.1", - "11434", - 10, - 0.1, - 10342349342, - "fixed", - true - ], - "color": "#233", - "bgcolor": "#355" - }, - { - "id": 8, - "type": "Note", - "pos": [ - -9.400012207031248, - 850.0000000000001 - ], - "size": { - "0": 230.04360961914062, - "1": 159.54811096191406 - }, - "flags": {}, - "order": 3, - "mode": 0, - "properties": { - "text": "" - }, - "widgets_values": [ - "In this example the output from the WebScraper tool is kept private, and is only able to be viewed by the local llama3.1 model.\n" - ], - "color": "#432", - "bgcolor": "#653" - }, { "id": 5, "type": "Griptape Create: Agent", - "pos": [ - 379, - 493 - ], + "pos": { + "0": 379, + "1": 493 + }, "size": { "0": 442.58905029296875, "1": 211.7299346923828 }, "flags": {}, - "order": 6, + "order": 5, "mode": 0, "inputs": [ { @@ -261,7 +25,7 @@ { "name": "config", "type": "CONFIG", - "link": 2 + "link": null }, { "name": "tools", @@ -312,16 +76,16 @@ { "id": 9, "type": "Griptape Display: Text", - "pos": [ - 882, - 500 - ], + "pos": { + "0": 882, + "1": 500 + }, "size": { "0": 400, "1": 200 }, "flags": {}, - "order": 7, + "order": 6, "mode": 0, "inputs": [ { @@ -346,29 +110,200 @@ }, "widgets_values": [ "", - "Griptape provides developers with the tools needed to build, deploy, and manage retrieval-driven AI-powered applications, including a development framework and an execution runtime." + "Griptape provides developers with the tools necessary to build, deploy, and manage retrieval-driven AI-powered applications, including a development framework and an execution runtime." ], "color": "#222", "bgcolor": "#000" + }, + { + "id": 8, + "type": "Note", + "pos": { + "0": -75, + "1": 825 + }, + "size": { + "0": 230.04360961914062, + "1": 159.54811096191406 + }, + "flags": {}, + "order": 0, + "mode": 0, + "inputs": [], + "outputs": [], + "properties": { + "text": "" + }, + "widgets_values": [ + "In this example the output from the WebScraper tool is kept private, and is only able to be viewed by the local llama3.1 model.\n" + ], + "color": "#432", + "bgcolor": "#653" + }, + { + "id": 7, + "type": "Griptape Combine: Tool List", + "pos": { + "0": -125, + "1": 675 + }, + "size": { + "0": 226.8000030517578, + "1": 66 + }, + "flags": {}, + "order": 4, + "mode": 0, + "inputs": [ + { + "name": "tool_1", + "type": "TOOL_LIST", + "link": 3 + }, + { + "name": "tool_2", + "type": "TOOL_LIST", + "link": 4 + }, + { + "name": "tool_3", + "type": "TOOL_LIST", + "link": null + } + ], + "outputs": [ + { + "name": "TOOL_LIST", + "type": "TOOL_LIST", + "links": [ + 5 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Combine: Tool List" + } + }, + { + "id": 6, + "type": "Griptape Tool: WebScraper", + "pos": { + "0": -550, + "1": 650 + }, + "size": { + "0": 315, + "1": 58 + }, + "flags": {}, + "order": 1, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "TOOL", + "type": "TOOL_LIST", + "links": [ + 3 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Tool: WebScraper" + }, + "widgets_values": [ + true + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 13, + "type": "Griptape Prompt Driver: Ollama", + "pos": { + "0": -925, + "1": 725 + }, + "size": [ + 350, + 250 + ], + "flags": {}, + "order": 2, + "mode": 0, + "inputs": [], + "outputs": [ + { + "name": "DRIVER", + "type": "PROMPT_DRIVER", + "links": [ + 9 + ], + "shape": 3, + "slot_index": 0 + } + ], + "properties": { + "Node name for S&R": "Griptape Prompt Driver: Ollama" + }, + "widgets_values": [ + "http://127.0.0.1", + "11434", + "llama3.1:latest", + 10, + 0.1, + 2048, + "fixed", + true, + -1 + ], + "color": "#233", + "bgcolor": "#355" + }, + { + "id": 1, + "type": "Griptape Tool: Query", + "pos": { + "0": -550, + "1": 750 + }, + "size": [ + 325, + 25 + ], + "flags": {}, + "order": 3, + "mode": 0, + "inputs": [ + { + "name": "prompt_driver", + "type": "PROMPT_DRIVER", + "link": 9 + } + ], + "outputs": [ + { + "name": "TOOL", + "type": "TOOL_LIST", + "links": [ + 4 + ], + "slot_index": 0, + "shape": 3 + } + ], + "properties": { + "Node name for S&R": "Griptape Tool: Query" + }, + "color": "#233", + "bgcolor": "#355" } ], "links": [ - [ - 1, - 2, - 0, - 1, - 0, - "PROMPT_DRIVER" - ], - [ - 2, - 4, - 0, - 5, - 1, - "CONFIG" - ], [ 3, 6, @@ -400,16 +335,24 @@ 9, 0, "STRING" + ], + [ + 9, + 13, + 0, + 1, + 0, + "PROMPT_DRIVER" ] ], "groups": [ { "title": "WebScraper results are kept private", "bounding": [ - -665, - 590, - 903, - 441 + -950, + 575, + 1150, + 425 ], "color": "#b58b2a", "font_size": 24, @@ -419,10 +362,10 @@ "config": {}, "extra": { "ds": { - "scale": 0.9090909090909091, + "scale": 0.8264462809917354, "offset": [ - 735.7382118707748, - -32.62993238166781 + 1252.6247800861422, + 9.148453835947631 ] } }, diff --git a/examples/OffPrompt.png b/examples/OffPrompt.png index 4c33092..c4c6c26 100644 Binary files a/examples/OffPrompt.png and b/examples/OffPrompt.png differ diff --git a/examples/README.md b/examples/README.md index 54963ac..5ce9311 100644 --- a/examples/README.md +++ b/examples/README.md @@ -9,8 +9,8 @@ Download: [Griptape-Agent-Config.json](Griptape-Agent-Config.json) ## Griptape Expert Photographers Use Agents as experts in their field to help provide feedback that will generate more advanced outputs. Utilizes multiple models - including Ollama running locally. If you don't have Ollama installed, feel free to use another `prompt_driver`. -![Expert Photographer](Griptape-Expert-Photographers.png) -Download: [Griptape-Expert-Photographers.json](Griptape-Expert-Photographers.json) +![Expert Photographer](Photographer-Workflow-Comparison-Example.json) +Download: [Photographer-Workflow-Comparison-Example.json](Photographer-Workflow-Comparison-Example.json) ## Text to Speech This example includes two workflows - one which is a simple Text To Speech conversion, and a second that uses an Agent with personality rules, and the ability to search the web for inspiration. diff --git a/js/ColorNodes.js b/js/ColorNodes.js index dcd461a..4769422 100644 --- a/js/ColorNodes.js +++ b/js/ColorNodes.js @@ -64,6 +64,9 @@ export function setupNodeColors(nodeType, nodeData) { applyColor(this, nodeColors.red); } + this.onResize?.(this.size); + this?.graph?.setDirtyCanvas(true, true); + }; } diff --git a/js/gtUI.css b/js/gtUI.css index 9d2a0b3..a06a86a 100644 --- a/js/gtUI.css +++ b/js/gtUI.css @@ -1,4 +1,4 @@ -.gtUI-modal-content { +/* .gtUI-modal-content { color: var(--fg-color); font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; } @@ -34,4 +34,4 @@ .button-icon { font-size: 24px; -} +} */ diff --git a/js/gtUINodes.js b/js/gtUINodes.js index 34ab515..71f8c4b 100644 --- a/js/gtUINodes.js +++ b/js/gtUINodes.js @@ -69,7 +69,6 @@ app.registerExtension({ } // Load Text Node if (nodeData.name === "Griptape Load: Text") { - console.log("Adding text upload widget") gtUIAddUploadWidget(nodeType, nodeData, "text", "text") } } diff --git a/nodes/drivers/gtUIBasePromptDriver.py b/nodes/drivers/gtUIBasePromptDriver.py index 87e1422..576c4a4 100644 --- a/nodes/drivers/gtUIBasePromptDriver.py +++ b/nodes/drivers/gtUIBasePromptDriver.py @@ -10,7 +10,8 @@ class gtUIBasePromptDriver(gtUIBaseDriver): inputs["optional"].update( { - "model": ((), {"tooltip": "The prompt model to use"}), + "model": ("STRING", {"tooltip": "The prompt model to use"}), + # "stream": ("BOOLEAN", {"default": False}), "max_attempts_on_fail": ( "INT", {"default": 10, "min": 1, "max": 100}, diff --git a/nodes/drivers/gtUIElevenLabsTextToSpeechDriver.py b/nodes/drivers/gtUIElevenLabsTextToSpeechDriver.py index 5dbdce8..9ed6658 100644 --- a/nodes/drivers/gtUIElevenLabsTextToSpeechDriver.py +++ b/nodes/drivers/gtUIElevenLabsTextToSpeechDriver.py @@ -29,7 +29,7 @@ class gtUIElevenLabsTextToSpeechDriver(gtUIBaseTextToSpeechDriver): FUNCTION = "create" def build_params(self, **kwargs): - params = super().build_params(**kwargs) + params = {} params["api_key"] = self.getenv( kwargs.get("api_key_env_var", DEFAULT_API_KEY_ENV_VAR) ) diff --git a/nodes/drivers/gtUIOllamaPromptDriver.py b/nodes/drivers/gtUIOllamaPromptDriver.py index 94a6d7a..b7565ad 100644 --- a/nodes/drivers/gtUIOllamaPromptDriver.py +++ b/nodes/drivers/gtUIOllamaPromptDriver.py @@ -43,6 +43,7 @@ class gtUIOllamaPromptDriver(gtUIBasePromptDriver): # Add the base optional inputs to the inputs inputs["optional"].update(base_optional_inputs) + inputs["optional"]["model"] = ((), {"tooltip": "The prompt model to use"}) return inputs