-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathinstacart.com.yaml
46 lines (46 loc) · 1.84 KB
/
instacart.com.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
openapi: 3.0.1
info:
title: Instacart
description: Order from your favorite local grocery stores.
version: 'v2.0'
servers:
- url: https://www.instacart.com
paths:
/rest/llm_integration/openapi/v2_0/recipes:
post:
operationId: create
summary: Create an Instacart link to the shopping list of ingredients.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/createRequest'
responses:
"200":
description: Instacart link to the shopping list of ingredients.
"400":
description: Could not create an Instacart link to the shopping list of ingredients.
components:
schemas:
createRequest:
type: object
properties:
title:
type: string
description: Recipe title (e.g. "Vanilla Yogurt Parfait")
required: true
ingredients:
type: array
items:
type: string
description: List of strings where each element is a recipe ingredient (e.g. ["2 cups of greek yogurt", "2 tablespoons of honey", "1 teaspoon of vanilla extract"]). Don't include items in the list that the user already mentioned they have.
required: true
question:
type: string
description: This field stores the question asked by the user about recipe or mealplan in the current chat session. For instance, a user can ask "recipe for chocolate cookies" and the assistant responds by listing the ingredients needed to make chocolate cookies. In this chat interaction, we need to return "recipe for chocolate cookies" as the value in this field
required: true
partner_name:
type: string
description: The value used to populate this field should always be "OpenAI"
required: true