TaskPlanner#
- class langchain_experimental.autonomous_agents.hugginggpt.task_planner.TaskPlanner[source]#
Bases:
BasePlanner
Planner for tasks.
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.
- param output_parser: PlanningOutputParser [Required]#
- param stop: List | None = None#
- async aplan(inputs: dict, callbacks: List[BaseCallbackHandler] | BaseCallbackManager | None = None, **kwargs: Any) Plan [source]#
Asynchronous Given input, decided what to do.
- Parameters:
inputs (dict) –
callbacks (List[BaseCallbackHandler] | BaseCallbackManager | None) –
kwargs (Any) –
- Return type:
- plan(inputs: dict, callbacks: List[BaseCallbackHandler] | BaseCallbackManager | None = None, **kwargs: Any) Plan [source]#
Given input, decided what to do.
- Parameters:
inputs (dict) –
callbacks (List[BaseCallbackHandler] | BaseCallbackManager | None) –
kwargs (Any) –
- Return type: