mirror of
https://github.com/langgenius/dify.git
synced 2026-01-13 21:57:48 +08:00
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
13 lines
318 B
Python
13 lines
318 B
Python
from flask_restx import Namespace, fields
|
|
|
|
simple_end_user_fields = {
|
|
"id": fields.String,
|
|
"type": fields.String,
|
|
"is_anonymous": fields.Boolean,
|
|
"session_id": fields.String,
|
|
}
|
|
|
|
|
|
def build_simple_end_user_model(api_or_ns: Namespace):
|
|
return api_or_ns.model("SimpleEndUser", simple_end_user_fields)
|