270 Commits

Author SHA1 Message Date
2a4d097c2e
fix: Update image part handling to use inline_data for raw bytes in process_requested_tools 2025-05-28 08:48:33 -06:00
cde506052f
feat: Add tools for user avatar data and role color
Introduces `get_user_avatar_data` to retrieve a user's avatar as base64 encoded image data, allowing the AI to "see" the profile picture directly. This includes special handling in `process_requested_tools` to attach the image as a `types.Part` in the prompt.

Also adds `get_user_highest_role_color` to fetch the color and details of a user's highest-positioned role.
2025-05-28 08:44:35 -06:00
d3cf350434
fix: Clarify distinction between "Ame-chan" bot and head admin user in prompt 2025-05-28 08:27:29 -06:00
73843bfc5a
feat: Add clarification about the "Ame-chan" and "KAngel" Discord bots in Gurt's prompt 2025-05-28 08:23:42 -06:00
c687777a9a
Feat: Update Gurt's prompt with new bot info and model version
Update Gurt's prompt to clarify that Ame-chan is not an AI and introduce the KAngel bot. Also, update the Gemini model version to `gemini-2.5-flash-preview-05-20` and remove uptime from server specs.
2025-05-28 08:20:10 -06:00
bb745160ac
fix: Improve handling of multimodal message content in get_ai_response function 2025-05-27 23:07:31 -06:00
cc9666f4e3
fix: Clarify usage guidelines for timeout_user function to prevent misuse 2025-05-27 23:05:49 -06:00
f02c2f865c
feat: Enhance historical message processing with custom emoji and sticker image support 2025-05-27 23:04:25 -06:00
87e0fe0340
fix: Ensure formatted message is defined for processing attachments, emojis, and stickers 2025-05-27 22:53:57 -06:00
6881dd4737
feat: Add support for custom emojis and stickers in message formatting 2025-05-27 22:51:43 -06:00
e8eaff4b9a
Refactor: Clarify User ID usage and enhance author attribution
This commit improves user identification in two key areas:

1.  **AI Response Context:**
    In `gurt/api.py`, messages processed by the AI now include a more informative author string, combining the user's display name and username (e.g., "DisplayName (Username: actual_username)"). This provides richer context about message authors.

2.  **Tool Definitions:**
    Descriptions for tools in `gurt/config.py` and `gurt/prompt.py` (e.g., `search_user_messages`, `get_user_facts`) and their parameters have been updated to explicitly state that user identification relies on "User ID". This enhances clarity for the AI model and developers.
2025-05-27 22:48:15 -06:00
d2e20ded2a
fix: Simplify server specs output by removing uptime details 2025-05-27 22:42:03 -06:00
5958d9718b
fix: Clarify usage of execute_internal_command with user ID requirement 2025-05-27 22:39:28 -06:00
bb8cdadf47
Docs: Clarify run_terminal_command and add execute_internal_command
Updated the description for `run_terminal_command` to specify it runs in an "empty" Docker sandbox.
Added documentation for the new `execute_internal_command` tool, which executes commands on the host machine.
2025-05-27 22:35:27 -06:00
64857c683f
fix: Update bot specifications and environment details in prompt 2025-05-27 22:34:02 -06:00
3ff850a9b3
feat: Add channel ignore functionality
Implement `/gurtignore` commands to manage channels Gurt should ignore.
- Add `gurtignore add` to add a channel to the ignore list.
- Add `gurtignore remove` to remove a channel from the ignore list.
- Add `gurtignore list` to display currently ignored channels.
- Update `GurtCog` and `config.py` to support ignored channel IDs and file management.
- Ensure ignore commands are owner-only.
- Modify `listeners.py` to prevent Gurt from processing messages in ignored channels.
2025-05-27 22:19:36 -06:00
3290b50fbd
fix: Update attachment handling to use types.FileData for URI parts 2025-05-27 22:13:51 -06:00
8f578cfe03
fix: Update attachment handling to use types.Part constructor for URI parts 2025-05-27 22:10:44 -06:00
145c91c5c2
fix: Explicitly mark attachment descriptions in AI response 2025-05-27 22:02:22 -06:00
542be94a0f
fix: Update model configuration to use the latest version of Gemini 2025-05-27 17:08:06 -06:00
20d4d353d3
ksm 2025-05-09 17:38:38 -06:00
2ec585ff81
aa 2025-05-04 21:20:13 -06:00
dcfa619aa3
dnjehe 2025-05-01 10:31:45 -06:00
66609e5dae
hdhdh 2025-05-01 10:15:56 -06:00
f311d9a81a
jjj 2025-05-01 10:09:06 -06:00
5d2656591a
s 2025-05-01 10:07:30 -06:00
ee12360541
hs 2025-05-01 10:01:29 -06:00
4c4970bcfb
iijrj 2025-05-01 09:58:58 -06:00
73a44aa265
kk 2025-05-01 09:52:10 -06:00
aa7672787a
jjjj 2025-05-01 09:47:27 -06:00
2ffafb4508
kjj 2025-05-01 09:44:35 -06:00
ff4b399794
hhhh 2025-05-01 09:29:06 -06:00
6097a1a85d
ggg 2025-05-01 09:00:46 -06:00
4012ab9e9d
dkkk 2025-04-30 22:32:13 -06:00
df98df15e9
kkdkd 2025-04-30 22:23:41 -06:00
e02998b84d
djjj 2025-04-30 21:51:16 -06:00
ba6650f623
aa 2025-04-30 21:18:03 -06:00
fd46b34213
aa 2025-04-30 21:15:11 -06:00
6bd33a6ae3
aa 2025-04-30 21:05:13 -06:00
42211b83ea
aa 2025-04-30 19:52:26 -06:00
91b715fbae
a 2025-04-30 19:49:17 -06:00
02cd2de70e
aaa 2025-04-30 19:48:35 -06:00
32a0d34633
aa 2025-04-30 19:48:19 -06:00
f395f24a50
aaa 2025-04-30 19:39:36 -06:00
607568afa4
aa 2025-04-30 18:55:16 -06:00
2a661dd671
afwf 2025-04-30 18:16:35 -06:00
3d2c8f5bc8
aaa 2025-04-30 17:56:56 -06:00
e7e33bfc63
aa 2025-04-30 17:48:12 -06:00
fb9debd6eb
aaa 2025-04-30 17:42:34 -06:00
951a862342
shhdhd 2025-04-30 17:24:02 -06:00