Modular Python framework for AI agents and workflows with chain-of-thought reasoning, tools, and memory.
Modular Python framework for AI agents and workflows with chain-of-thought reasoning, tools, and memory.
Griptape is a Python framework designed to simplify the development of generative AI (genAI) applications. It offers a set of straightforward, flexible abstractions for working with areas such as Large Language Models (LLMs), Retrieval-Augmented Generation (RAG), and much more.
Looking for a no-code experience? Check out Griptape Nodes, a visual desktop application for building and running AI workflows.
Tasks are the core building blocks within Structures, enabling interaction with Engines, Tools, and other Griptape components.
Drivers facilitate interactions with external resources and services in Griptape. They allow you to swap out functionality and providers with minimal changes to your business logic.
Tools provide capabilities for LLMs to interact with data and services. Griptape includes a variety of built-in Tools, and makes it easy to create custom Tools.
Engines wrap Drivers and provide use-case-specific functionality:
Please visit the docs for information on installation and usage.
Check out Griptape Trade School for free online courses.
Here's a minimal example of griptape:
from griptape.drivers.prompt.openai import OpenAiChatPromptDriver
from griptape.rules import Rule
from griptape.tasks import PromptTask
task = PromptTask(
prompt_driver=OpenAiChatPromptDriver(model="gpt-4.1"),
rules=[Rule("Keep your answer to a few sentences.")],
)
result = task.run("How do I do a kickflip?")
print(result.value)To do a kickflip, start by positioning your front foot slightly angled near the middle of the board and your back foot on the tail.
Pop the tail down with your back foot while flicking the edge of the board with your front foot to make it spin.
Jump and keep your body centered over the board, then catch it with your feet and land smoothly. Practice and patience are key!Here is a concise example using griptape to research open source projects:
…… graph TD;
griptape-->summary;
langchain-->summary;
pydantic-ai-->summary;
crew-ai-->summary;Griptape uses Semantic Versioning.
Thank you for considering contributing to Griptape! Before you start, please review our Contributing Guidelines.
Griptape is available under the Apache 2.0 License.
No open issues yet, or sync has not completed.