Перейти к содержимому

Summarize Object

POST
/v1/objects/{object_id}/summarize
curl --request POST \
--url https://api.cloud.agentums.ru/v1/objects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/summarize \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "context": "", "model": "example", "type": "short" }'

Конспект нужного типа по требованию (C4/§3.4): short | detailed | tasks | protocol.

Для «protocol» context можно заполнить ответами на уточняющие вопросы (C3), чтобы умный протокол учёл участников/роли/проект/формат.

object_id
required
Object Id
string format: uuid
x-hidden-token
Any of:
string
Media typeapplication/json
SummarizeRequest

Конспект нужного типа (C4/§3.4). context — уточнения для умного протокола (C3).

object
context
Context
string
"" <= 2000 characters
model
Any of:
string
type
Type
string
default: short
Allowed values: short detailed tasks protocol meeting lecture consultation standup

Successful Response

Media typeapplication/json
SummaryTextOut
object
text
required
Text
string
type
required
Type
string
Examplegenerated
{
"text": "example",
"type": "example"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"ctx": {},
"input": "example",
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}