langchain_experimental.autonomous_agents.hugginggpt.task_executor.Task¶

class langchain_experimental.autonomous_agents.hugginggpt.task_executor.Task(task: str, id: int, dep: List[int], args: Dict, tool: BaseTool)[source]¶

Task to be executed.

Methods

__init__(task, id, dep, args, tool)

completed()

failed()

pending()

run()

save_product()

Parameters
  • task (str) –

  • id (int) –

  • dep (List[int]) –

  • args (Dict) –

  • tool (BaseTool) –

__init__(task: str, id: int, dep: List[int], args: Dict, tool: BaseTool)[source]¶
Parameters
  • task (str) –

  • id (int) –

  • dep (List[int]) –

  • args (Dict) –

  • tool (BaseTool) –

completed() bool[source]¶
Return type

bool

failed() bool[source]¶
Return type

bool

pending() bool[source]¶
Return type

bool

run() str[source]¶
Return type

str

save_product() None[source]¶
Return type

None