One content fragment of a Message or Artifact.
More...
#include <types.h>
|
|
static Part | text_part (std::string s) |
| | Convenience: TextPart of given content.
|
| |
|
|
json | data |
| | populated when kind == "data" (arbitrary JSON)
|
| |
|
json | file |
| | populated when kind == "file" (FileWithBytes/Uri)
|
| |
|
std::string | kind |
| | "text" | "file" | "data"
|
| |
|
json | metadata |
| | optional extension bag
|
| |
|
std::string | text |
| | populated when kind == "text"
|
| |
One content fragment of a Message or Artifact.
Discriminated by kind ∈ {"text", "file", "data"}.
Definition at line 49 of file types.h.
The documentation for this struct was generated from the following file: