fromRunnable static method

Creates an agent from a Runnable.

Implementation

static BaseMultiActionAgent fromRunnable(
  final Runnable<AgentPlanInput, RunnableOptions, List<BaseAgentAction>>
      runnable, {
  required final List<Tool> tools,
}) {
  return RunnableAgent(runnable, tools: tools);
}