add workflow app log api

This commit is contained in:
takatost
2024-02-27 18:03:47 +08:00
parent 403c2f436d
commit 4432e055be
12 changed files with 276 additions and 7 deletions

View File

@ -13,3 +13,16 @@ workflow_fields = {
'updated_by': fields.Nested(simple_account_fields, attribute='updated_by_account', allow_null=True),
'updated_at': TimestampField
}
workflow_run_fields = {
"id": fields.String,
"version": fields.String,
"status": fields.String,
"error": fields.String,
"elapsed_time": fields.Float,
"total_tokens": fields.Integer,
"total_price": fields.Float,
"currency": fields.String,
"total_steps": fields.Integer,
"finished_at": TimestampField
}