fromtypingimportAny,Mapping,Optional,Unionfromautogen_core.modelsimportModelCapabilities,ModelInfo# type: ignorefromollamaimportOptionsfrompydanticimportBaseModelfromtyping_extensionsimportTypedDict# response_format MUST be a pydantic.BaseModel type or None# TODO: check if we can extend response_format to support json and/or dict# TODO: extend arguments to all AsyncClient supported argsclassCreateArguments(TypedDict,total=False):model:strhost:Optional[str]response_format:AnyclassBaseOllamaClientConfiguration(CreateArguments,total=False):follow_redirects:booltimeout:Anyheaders:Optional[Mapping[str,str]]model_capabilities:ModelCapabilities# type: ignoremodel_info:ModelInfo"""What functionality the model supports, determined by default from model name but is overriden if value passed."""options:Optional[Union[Mapping[str,Any],Options]]# Pydantic equivalents of the above TypedDicts# response_format MUST be a pydantic.BaseModel type or None