BasePlanner#

class langchain_experimental.autonomous_agents.hugginggpt.task_planner.BasePlanner[source]#

Bases: BaseModel

Base class for a planner.

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.

abstract async aplan(inputs: dict, callbacks: list[BaseCallbackHandler] | BaseCallbackManager | None = None, **kwargs: Any) Plan[source]#

Asynchronous Given input, decide what to do.

Parameters:
Return type:

Plan

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

Given input, decide what to do.

Parameters:
Return type:

Plan