langchain_experimental.rl_chain.base.Policy

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

Abstract class to represent a policy.

Methods

__init__(**kwargs)

learn(event)

log(event)

predict(event)

save()

Parameters

kwargs (Any) –

__init__(**kwargs: Any)[source]
Parameters

kwargs (Any) –

abstract learn(event: TEvent) None[source]
Parameters

event (TEvent) –

Return type

None

abstract log(event: TEvent) None[source]
Parameters

event (TEvent) –

Return type

None

abstract predict(event: TEvent) Any[source]
Parameters

event (TEvent) –

Return type

Any

save() None[source]
Return type

None