Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
AI Tutor
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Salma Mohammed Hamed
AI Tutor
Commits
579a27d9
Commit
579a27d9
authored
Sep 15, 2025
by
SalmaMohammedHamedMustafa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enhance system prompt to use the name
parent
35352c6d
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
35 deletions
+61
-35
agent_service.py
self_hosted_env/voice_agent/services/agent_service.py
+59
-34
chat_database_service.py
..._hosted_env/voice_agent/services/chat_database_service.py
+2
-1
No files found.
self_hosted_env/voice_agent/services/agent_service.py
View file @
579a27d9
This diff is collapsed.
Click to expand it.
self_hosted_env/voice_agent/services/chat_database_service.py
View file @
579a27d9
...
@@ -33,7 +33,7 @@ class ChatDatabaseService:
...
@@ -33,7 +33,7 @@ class ChatDatabaseService:
with
self
.
conn
.
cursor
(
cursor_factory
=
RealDictCursor
)
as
cur
:
with
self
.
conn
.
cursor
(
cursor_factory
=
RealDictCursor
)
as
cur
:
cur
.
execute
(
cur
.
execute
(
"""
"""
SELECT student_id, grade, language, nationality
SELECT student_id,
student_name,
grade, language, nationality
FROM students
FROM students
WHERE student_id =
%
s
WHERE student_id =
%
s
"""
,
"""
,
...
@@ -43,6 +43,7 @@ class ChatDatabaseService:
...
@@ -43,6 +43,7 @@ class ChatDatabaseService:
if
result
:
if
result
:
return
{
return
{
'student_id'
:
result
[
'student_id'
],
'student_id'
:
result
[
'student_id'
],
'student_name'
:
result
[
'student_name'
],
# Added this line
'grade'
:
result
[
'grade'
],
'grade'
:
result
[
'grade'
],
'is_arabic'
:
result
[
'language'
],
# Convert language boolean to is_arabic
'is_arabic'
:
result
[
'language'
],
# Convert language boolean to is_arabic
'nationality'
:
result
[
'nationality'
]
'nationality'
:
result
[
'nationality'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment