Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
agentchat
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟@五瓣科技
agentchat
Commits
b9d1f783
Commit
b9d1f783
authored
May 30, 2025
by
Wade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swagger post chat
parent
102348d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
17 deletions
+59
-17
swagger.yaml
docs/swagger.yaml
+59
-17
No files found.
docs/swagger.yaml
View file @
b9d1f783
openapi
:
3.0.4
info
:
title
:
Sample API
description
:
Optional multiline or single-line description in [CommonMark](http://commonmark.org/help/) or HTML.
version
:
0.1.9
servers
:
-
url
:
http://api.example.com/v1
description
:
Optional server description, e.g. Main (production) server
-
url
:
http://staging-api.example.com
description
:
Optional server description, e.g. Internal staging server for testing
title
:
Genkit Chat API
description
:
API for interacting with a chat endpoint powered by Genkit.
version
:
0.1.0
paths
:
/users
:
get
:
summary
:
Returns a list of users.
description
:
Optional extended description in CommonMark or HTML.
/chat
:
post
:
summary
:
Send a chat message
description
:
Sends a chat message to the Genkit AI workflow and returns a response.
tags
:
-
Chat
requestBody
:
required
:
true
content
:
application/json
:
schema
:
type
:
object
properties
:
content
:
type
:
string
description
:
The chat message content
example
:
"
What
is
the
capital
of
UK?"
model
:
type
:
string
description
:
The model to use for the chat response
example
:
"
gpt-3.5-turbo"
apiKey
:
type
:
string
description
:
The API key for authentication
example
:
"
sk-1234567890abcdef"
username
:
type
:
string
description
:
The username of the requester
example
:
"
john_doe"
user_id
:
type
:
string
description
:
The unique identifier for the user
example
:
"
user_12345"
required
:
-
content
responses
:
"
200"
:
# status code
description
:
A JSON array of user names
'
200'
:
description
:
Successful response with the chat answer
content
:
application/json
:
schema
:
type
:
array
items
:
type
:
string
type
:
object
properties
:
response
:
type
:
string
description
:
The response from the chat workflow
example
:
"
The
capital
of
the
UK
is
London."
'
400'
:
description
:
Invalid input
content
:
application/json
:
schema
:
type
:
object
properties
:
error
:
type
:
string
description
:
Error message
example
:
"
Invalid
request
body"
components
:
schemas
:
{}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment