Skip to main content

Skatepark

Tests PyPI Version Docs License

Skatepark is a Python framework for creating workflow DAGs and pipelines that use large language models (LLMs) such as GPT, Claude, Titan, and Cohere.

With Skatepark, you can accomplish the following:

  1. 🚰 Build sequential AI pipelines and sprawling DAG workflows for complex use cases.
  2. 🧰️ Augment LLMs with chain of thought capabilities and integrate external tools, such as calculators, web search, spreadsheet editors, and API connectors via griptape-core.
  3. 💾 Add memory to AI pipelines for context preservation and summarization.

Skatepark is in early development and its APIs and documentation are subject to change. Until we stabilize the API and release version 1.0.0, we will use minor versions (i.e., x.Y.z) to introduce breaking features and patch versions (i.e., x.y.Z) for bug fixes.

Documentation

Please refer to Griptape Docs for:

  • Skatepark and Griptape getting started guides.
  • Core concepts and design overviews.
  • Examples.
  • Contribution guidelines.

Quick Start

First, install Skatepark, Griptape Tools, and Decouple:

pip install skatepark-lib griptape-tools python-decouple

Second, configure an OpenAI client by getting an API key and adding it to your environment as OPENAI_API_KEY. Skatepark uses OpenAI Completions API to execute LLM prompts and to work with LlamaIndex data structures.

With Skatepark, you can create structures, such as Pipelines and Workflows, that are composed of different types of steps. You can also define structures as JSON objects and load them into Skatepark dynamically. Let's define a simple two-step pipeline that uses tools:

from decouple import config
from griptape.tools import WebScraper, Calculator
from skatepark import utils
from skatepark.memory import PipelineMemory
from skatepark.steps import PromptStep, ToolkitStep
from skatepark.structures import Pipeline
from skatepark.utils import ToolLoader


scraper = WebScraper(
    openai_api_key=config("OPENAI_API_KEY")
)
calculator = Calculator()

pipeline = Pipeline(
    memory=PipelineMemory(),
    tool_loader=ToolLoader(
        tools=[calculator, scraper]
    )
)

pipeline.add_steps(
    ToolkitStep(
        tool_names=[calculator.name, scraper.name]
    ),
    PromptStep(
        "Say the following like a pirate: {{ input }}"
    )
)

pipeline.run("Give me a summary of https://en.wikipedia.org/wiki/Large_language_model")

print(utils.Conversation(pipeline.memory).to_string())

Boom! Our first conversation, à la ChatGPT, is here:

Q: Give me a summary of https://en.wikipedia.org/wiki/Large_language_model
A: Arr, me hearties! Large language models have been developed and set sail since 2018, includin' BERT, GPT-2, GPT-3 [...]

Contributing

Contributions in the form of bug reports, feature ideas, or pull requests are super welcome! Take a look at the current issues and if you'd like to help please submit a pull request with some tests.

License

Skatepark is available under the Apache 2.0 License.

Metadata

Release files for skatepark-lib 0.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for skatepark-lib 0.10.0
File Size Uploaded
skatepark_lib-0.10.0.tar.gz 25.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for skatepark-lib 0.10.0
File Interpreter ABI Platform
skatepark_lib-0.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 70.4 kB

Release files / skatepark_lib-0.10.0.tar.gz

Download URL skatepark_lib-0.10.0.tar.gz
Size 25.2 kB
Tags Source
SHA-256 checksum
How to use checksums
682916f600e5cf7ab8a82226baa14f0a09f096b7e9ae0b527151efa1e7947597
BLAKE2b-256 checksum
How to use checksums
3a12b288c40600f6c779d628477a03cc1f5513148cd4d0d18bd1177637203311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.9.16 Darwin/21.6.0

Release files / skatepark_lib-0.10.0-py3-none-any.whl

Download URL skatepark_lib-0.10.0-py3-none-any.whl
Size 45.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b5638849f166ebecfe2e1a3da62f57670130c245dda2cfa3aa32ae77df6a68f4
BLAKE2b-256 checksum
How to use checksums
607300ebfdec59c04710f9473ca021136ce1ed04ed20d016d754aa1800634a7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.9.16 Darwin/21.6.0

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page