Files
autogen/autogen/types.py
Jack Gerrits 9d33dc6f9a Resolve types issues in coding (#2055)
* 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>
2024-03-19 16:49:37 +00:00

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]