An open API service indexing awesome lists of open source software.

https://github.com/speakeasy-api/gram-examples


https://github.com/speakeasy-api/gram-examples

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

[![Gram](banner.png)](https://getgram.ai)


Docs  //  Join us on Slack




# Overview

An internal repository for building rough agentic workflow apps and exposing them via a simple API for demos.

# Dependencies

- GRAM_PROD_API_KEY: https://app.getgram.ai/speakeasy-self/default/settings
- OPENAI_API_KEY: https://platform.openai.com/settings/organization/api-keys

# Typescript

We expose our execute API via a simple express server:

```sh
cd typescript
npm install
npm run start
```

# Python

We expose our execute API via a simple FastAPI server:

```sh
cd python
pip install -r requirements.txt
python main.py
```

# Executing a Request

*replace with any agent workflow name*

```sh
curl -s -X POST http://127.0.0.1:9000/execute/gtm-agent
```

```sh
curl -s -X POST http://127.0.0.1:9000/execute/gtm-agent/{framework} \
-H "Content-Type: application/json" \
-d '{"company": "speakeasy"}'
```

LANGCHAIN JS HAS A BREAKING CHANGE TO TOO CALLING. USE 0.3.23 UNTIL THEY FIX IT