Skip to content

Commit

Permalink
feat: add agent api documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mauanga committed Jan 13, 2025
1 parent 03d9525 commit 7c6f285
Showing 1 changed file with 101 additions and 0 deletions.
101 changes: 101 additions & 0 deletions api/agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
openapi: 3.1.0
info:
title: WordLift Agent API
description: API for interacting with the WordLift Agent
version: 1.0.0
paths:
/ask:
post:
summary: Ask Request
operationId: ask_request_api_ask_post
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/AskRequest'
required: true
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/AskResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
security:
- APIKeyHeader: []
components:
schemas:
AskRequest:
properties:
message:
type: string
title: Message
model:
anyOf:
- type: string
- type: 'null'
title: Model
default: gpt-4o
security:
anyOf:
- type: boolean
- type: 'null'
title: Security
default: false
type: object
required:
- message
title: AskRequest
AskResponse:
properties:
response:
type: string
title: Response
type: object
required:
- response
title: AskResponse
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
securitySchemes:
APIKeyHeader:
type: apiKey
in: header
name: authorization
servers:
- url: https://api.wordlift.io/agent
description: WordLift Agent API

0 comments on commit 7c6f285

Please sign in to comment.