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][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

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