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