langchain_experimental.plan_and_execute.planners.base
.BasePlanner¶
- class langchain_experimental.plan_and_execute.planners.base.BasePlanner[source]¶
Bases:
BaseModel
Base planner.
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- abstract async aplan(inputs: dict, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, **kwargs: Any) Plan [source]¶
Given input, asynchronously decide what to do.
- Parameters
inputs (dict) –
callbacks (Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]]) –
kwargs (Any) –
- Return type
- abstract plan(inputs: dict, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, **kwargs: Any) Plan [source]¶
Given input, decide what to do.
- Parameters
inputs (dict) –
callbacks (Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]]) –
kwargs (Any) –
- Return type