promptflow.contracts.types module#
- class promptflow.contracts.types.AssistantDefinition(model: str, instructions: str, tools: List)#
Bases:
object
This class is used to define an assistant definition.
- static deserialize(data: dict) AssistantDefinition #
- instructions: str#
- model: str#
- serialize()#
- tools: List#
- class promptflow.contracts.types.AttrDict#
Bases:
dict
A dictionary that allows attribute access to its keys.
- class promptflow.contracts.types.FilePath#
Bases:
str
This class is used to hint a parameter is a file path.
- class promptflow.contracts.types.PromptTemplate#
Bases:
str
This class is used to hint a parameter is a prompt template.