ActionStep.started constructor

ActionStep.started({
  1. required String toolName,
  2. required Map<String, dynamic> arguments,
})

Create a new in-progress step for a tool call.

Implementation

factory ActionStep.started({
  required String toolName,
  required Map<String, dynamic> arguments,
}) {
  return ActionStep(
    id: _uuid.v4(),
    description: descriptionForTool(toolName, arguments),
    toolName: toolName,
    arguments: arguments,
    status: ActionStepStatus.inProgress,
    startedAt: DateTime.now(),
  );
}