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 llm_chain: LLMChain [Required]#
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:
Return type:

Plan

plan(inputs: dict, callbacks: List[BaseCallbackHandler] | BaseCallbackManager | None = None, **kwargs: Any) Plan[source]#

Given input, decided what to do.

Parameters:
Return type:

Plan