mirror of
https://github.com/meta-llama/llama-stack.git
synced 2026-01-01 06:14:31 +00:00
add schema type register
This commit is contained in:
parent
89e3f81520
commit
4f3fd22dd4
3 changed files with 114 additions and 59 deletions
|
|
@ -64,11 +64,13 @@ InterleavedContent = register_schema(
|
|||
)
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class TextDelta(BaseModel):
|
||||
type: Literal["text"] = "text"
|
||||
text: str
|
||||
|
||||
|
||||
@json_schema_type
|
||||
class ImageDelta(BaseModel):
|
||||
type: Literal["image"] = "image"
|
||||
data: bytes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue