Toggle Menu
Prev Up Next

# `langchain_experimental.autonomous_agents.hugginggpt.task_executor`.TaskExecutor

class langchain_experimental.autonomous_agents.hugginggpt.task_executor.TaskExecutor(plan: Plan)

  Load tools and execute tasks.

  Methods

  `__init__`(plan) |
  `check_dependency`(task) |
  `completed`() |
  `describe`() |
  `failed`() |
  `pending`() |
  `run`() |
  `update_args`(task) |

  Parameters

    plan (Plan) –

  __init__(plan: Plan)
    Parameters

      plan (Plan) –

  check_dependency(task: Task) → bool
    Parameters

      task (Task) –

    Return type

      bool

  completed() → bool
    Return type

      bool

  describe() → str
    Return type

      str

  failed() → bool
    Return type

      bool

  pending() → bool
    Return type

      bool

  run() → str
    Return type

      str

  update_args(task: Task) → None
    Parameters

      task (Task) –

    Return type

      None