Skip to content

Instantly share code, notes, and snippets.

View kyleroche's full-sized avatar

Kyle Roche kyleroche

View GitHub Profile
@kyleroche
kyleroche / GriptapeCloudClient.swift
Created January 8, 2024 17:42
GriptapeCloudClient iOS Example
//
// GriptapeCloudClient.swift
// GriptapeCloudClient
//
// Created by Kyle Roche on 1/7/24.
//
import Foundation
import OpenAPIRuntime
import OpenAPIURLSession
@kyleroche
kyleroche / sample_sql_file.py
Created May 13, 2023 20:10
Sample moving SQL results to file manager (on a ramp)
from griptape.memory import Memory
from griptape.executors import DockerExecutor
from griptape.ramps import TextStorageRamp, BlobStorageRamp
from griptape.structures import Pipeline
from griptape.tasks import ToolkitTask, PromptTask
from griptape.tools import WebScraper, TextProcessor, FileManager, SqlClient
# Ramps enable LLMs to store and manipulate data without ever looking at it directly.
text_storage = TextStorageRamp()
blob_storage = BlobStorageRamp()
@kyleroche
kyleroche / app.py
Created April 20, 2023 21:56
Getting Started with Griptape
from decouple import config
from griptape.tools import WebScraper, Calculator
from griptape.flow import utils
from griptape.flow.memory import PipelineMemory
from griptape.flow.steps import PromptStep, ToolkitStep
from griptape.flow.structures import Pipeline
from griptape.flow.utils import ToolLoader
scraper = WebScraper(