К содержанию
TelegaFirst

Для AI-агентов: markdown этой страницы — /docs/schema-19fd6a107ff432d0d25e7b5f2583c56c7c9d83c39051e5da369386aa88078c5b.mdиндекс документации — /llms.txt

Схема: content.application/json.schema

Обновлено

ПолеЗначение
additionalPropertiesfalse
properties.files.description"Files the AI host attached: a download_url and a file_id each. ChatGPT fills this itself."
properties.files.items.additionalPropertiesfalse
properties.files.items.properties.download_url.format"uri"
properties.files.items.properties.download_url.maxLength8192
properties.files.items.properties.download_url.type"string"
properties.files.items.properties.file_id.maxLength1024
properties.files.items.properties.file_id.minLength1
properties.files.items.properties.file_id.type"string"
properties.files.items.properties.file_name.maxLength1024
properties.files.items.properties.file_name.minLength1
properties.files.items.properties.file_name.type"string"
properties.files.items.properties.media_kind.enum["voice","audio","video_note"]
properties.files.items.properties.media_kind.type"string"
properties.files.items.properties.mime_type.maxLength255
properties.files.items.properties.mime_type.minLength1
properties.files.items.properties.mime_type.type"string"
properties.files.items.required["download_url","file_id"]
properties.files.items.type"object"
properties.files.maxItems10
properties.files.type"array"
properties.idempotency_key.maxLength256
properties.idempotency_key.minLength1
properties.idempotency_key.type"string"
properties.sources.description"HTTPS addresses of files on the business site or an allowed file host, or small files as data: addresses with byte_length. Up to 10 files and sources together."
properties.sources.items.additionalPropertiesfalse
properties.sources.items.properties.byte_length.description"Required with a data: address: the exact number of bytes the base64 payload decodes to."
properties.sources.items.properties.byte_length.exclusiveMinimum0
properties.sources.items.properties.byte_length.type"integer"
properties.sources.items.properties.file_name.maxLength1024
properties.sources.items.properties.file_name.minLength1
properties.sources.items.properties.file_name.type"string"
properties.sources.items.properties.media_kind.enum["voice","audio","video_note"]
properties.sources.items.properties.media_kind.type"string"
properties.sources.items.properties.mime_type.maxLength255
properties.sources.items.properties.mime_type.minLength1
properties.sources.items.properties.mime_type.type"string"
properties.sources.items.properties.sha256.description"Optional with a data: address: the SHA-256 of the decoded bytes, 64 hex characters; checked against them."
properties.sources.items.properties.sha256.maxLength64
properties.sources.items.properties.sha256.minLength64
properties.sources.items.properties.sha256.type"string"
properties.sources.items.properties.url.description"An https address, or for a small file (at most 131072 bytes after decoding) data:<mime>;base64,<payload>. A larger file goes through media_request_upload."
properties.sources.items.properties.url.maxLength1048576
properties.sources.items.properties.url.minLength1
properties.sources.items.properties.url.type"string"
properties.sources.items.required["url"]
properties.sources.items.type"object"
properties.sources.maxItems10
properties.sources.type"array"
required["idempotency_key"]
type"object"