promptflow.contracts.types 模块#

class promptflow.contracts.types.AssistantDefinition(model: str, instructions: str, tools: List)#

基础类: object

此类用于定义助手定义。

static deserialize(data: dict) AssistantDefinition#
instructions: str#
model: str#
serialize()#
tools: List#
class promptflow.contracts.types.AttrDict#

基础:dict

一个允许通过属性访问其键的字典。

class promptflow.contracts.types.FilePath#

基础:str

此类用于提示参数是文件路径。

class promptflow.contracts.types.PromptTemplate#

基础:str

此类用于提示参数是一个提示模板。

class promptflow.contracts.types.Secret#

基础:str

此类用于提示参数是一个需要加载的密钥。

set_secret_name(name)#

为Secret实例设置secret_name属性。

Parameters:

name (str) – 密钥的名称。