langchain_experimental.autonomous_agents.hugginggpt.task_planner.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: Optional[List] = None¶
async aplan(inputs: dict, callbacks: Optional[Union[List[BaseCallbackHandler], BaseCallbackManager]] = None, **kwargs: Any) Plan[source]¶

Asynchronous Given input, decided what to do.

Parameters
Return type

Plan

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

Given input, decided what to do.

Parameters
Return type

Plan