-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathopenapi.yaml
More file actions
53 lines (53 loc) · 1.41 KB
/
openapi.yaml
File metadata and controls
53 lines (53 loc) · 1.41 KB
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
47
48
49
50
51
52
53
openapi: 3.0.0
info:
title: LangChain Agent API
description: API for calling LangChain agents from Glean
version: 0.1.0
servers:
- url: https://your-ngrok-url.ngrok.io
description: LangChain Agent Server (replace with your actual ngrok URL)
paths:
/runs:
post:
summary: Run a LangChain agent
description: Execute a LangChain agent with the given input
operationId: runAgent
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/AgentInput'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/AgentResponse'
'400':
description: Bad request
'500':
description: Server error
components:
schemas:
AgentInput:
type: object
required:
- input
properties:
input:
type: string
description: The natural language input to send to the agent
conversation_id:
type: string
description: Optional conversation ID for maintaining context
AgentResponse:
type: object
properties:
output:
type: string
description: The agent's response
conversation_id:
type: string
description: The conversation ID