mirror of
https://github.com/microsoft/autogen.git
synced 2026-02-15 16:55:31 -05:00
* Improve conversable agent interface, fix some typing * formatting * import * rearrange to fix circular import * type fixes * undo system message change * add coding to check, lint * Update conversable_agent.py * Apply suggestions from code review Co-authored-by: Davor Runje <davor@airt.ai> * put back # type: ignore * formatting * revert conversable agent * ci fix * Update type-check.yml * fix double install, and redudant args, address type ignores --------- Co-authored-by: Davor Runje <davor@airt.ai> Co-authored-by: Chi Wang <wang.chi@microsoft.com>
13 lines
312 B
Python
13 lines
312 B
Python
from typing import Dict, List, Literal, TypedDict, Union
|
|
|
|
|
|
class UserMessageTextContentPart(TypedDict):
|
|
type: Literal["text"]
|
|
text: str
|
|
|
|
|
|
class UserMessageImageContentPart(TypedDict):
|
|
type: Literal["image_url"]
|
|
# Ignoring the other "detail param for now"
|
|
image_url: Dict[Literal["url"], str]
|