You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -16,6 +17,37 @@ class ChatBotAssistantService {
16
17
_model =GenerativeModel(
17
18
apiKey: _apiKey,
18
19
model:'gemini-2.5-flash',
20
+
tools: [
21
+
Tool(
22
+
functionDeclarations: [
23
+
FunctionDeclaration(
24
+
'create_task_full',
25
+
'Tạo một công việc mới. Hãy tự động trích xuất tên công việc, suy luận độ ưu tiên (1-Thấp, 2-Trung bình, 3-Cao) và các thẻ (tags) dựa trên câu nói của người dùng.',
26
+
Schema(
27
+
SchemaType.object,
28
+
properties: {
29
+
'title':Schema(
30
+
SchemaType.string,
31
+
description:'Tên công việc cần làm',
32
+
),
33
+
'priority':Schema(
34
+
SchemaType.integer,
35
+
description:
36
+
'Độ ưu tiên: 1 (Thấp), 2 (Trung bình), 3 (Cao). Nếu người dùng không nói rõ, mặc định là 1.',
37
+
),
38
+
'tags':Schema(
39
+
SchemaType.array,
40
+
items:Schema(SchemaType.string),
41
+
description:
42
+
'Danh sách các thẻ phân loại (ví dụ: ["Học tập", "Gấp", "Backend"]). Gửi mảng rỗng [] nếu không có.',
0 commit comments