Skip to content

Commit 932e898

Browse files
author
Fabien Ric
committed
wip function calling guide
1 parent 9da72b8 commit 932e898

File tree

1 file changed

+1
-1
lines changed
  • pages/public_cloud/ai_machine_learning/endpoints_guide_06_function_calling

1 file changed

+1
-1
lines changed

pages/public_cloud/ai_machine_learning/endpoints_guide_06_function_calling/guide.en-gb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def log_work(task_name: str, task_category: str, duration: float, unit: str):
253253
task.add_entry(duration=duration, unit=unit)
254254

255255
# the tool returns the data for the created or updated task, so that the model can use this information if needed
256-
return {"task": task.name, "task_category": task_category, "total_duration": convert(task.duration_minutes, unit), "status": status}
256+
return {"task": task.name, "task_category": task.category, "total_duration": convert(task.duration_minutes, unit), "status": status}
257257

258258
# TOOL 2 : get JSON data about a tasks in a given category, and total duration (category, unit = minutes or hours)
259259
def time_report(category: str, unit: str):

0 commit comments

Comments
 (0)