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 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: