Toggle Menu
Prev Up Next

# `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)

  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)
    Parameters

      - task (str) –

      - id (int) –

      - dep (List[int]) –

      - args (Dict) –

      - tool (BaseTool) –

  completed() → bool
    Return type

      bool

  failed() → bool
    Return type

      bool

  pending() → bool
    Return type

      bool

  run() → str
    Return type

      str

  save_product() → None
    Return type

      None