策略#

class langchain_experimental.rl_chain.base.Policy(**kwargs: Any)[source]#

表示策略的抽象类。

方法

__init__(**kwargs)

learn(event)

log(event)

predict(event)

save()

Parameters:

kwargs (任意)

__init__(**kwargs: Any)[来源]#
Parameters:

kwargs (任意)

abstract learn(event: TEvent) None[来源]#
Parameters:

事件 (TEvent)

Return type:

abstract log(event: TEvent) None[来源]#
Parameters:

事件 (TEvent)

Return type:

abstract predict(event: TEvent) Any[来源]#
Parameters:

事件 (TEvent)

Return type:

任何

save() None[来源]#
Return type: