azerai-plugins-datetime 5.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- azerai_plugins_datetime/__init__.py +8 -0
- azerai_plugins_datetime/info.py +12 -0
- azerai_plugins_datetime/main.py +24 -0
- azerai_plugins_datetime/prompts.py +26 -0
- azerai_plugins_datetime-5.0.0.dist-info/METADATA +96 -0
- azerai_plugins_datetime-5.0.0.dist-info/RECORD +9 -0
- azerai_plugins_datetime-5.0.0.dist-info/WHEEL +5 -0
- azerai_plugins_datetime-5.0.0.dist-info/licenses/LICENSE +21 -0
- azerai_plugins_datetime-5.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""
|
|
2
|
+
AzerAI DateTime Plugin - Plugin Haqqında Məlumatlar Və Metadata
|
|
3
|
+
"""
|
|
4
|
+
PLUGIN_INFO = {
|
|
5
|
+
"name": "azerai-plugins-datetime",
|
|
6
|
+
"version": "5.0.0",
|
|
7
|
+
"author": "AzerStudio Dev",
|
|
8
|
+
"description": "**AzerAI DateTime Plugin** - Tarix Və Zaman Plugin",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"url": "https://github.com/AzerStudio-Dev/AzerAI-Plugins-Datetime",
|
|
11
|
+
"pypi": "https://pypi.org/project/AzerAI-Plugins-Datetime/"
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"""
|
|
2
|
+
AzerAI DateTime Plugin - Tarix Və Zaman Alətləri
|
|
3
|
+
"""
|
|
4
|
+
import logging
|
|
5
|
+
from datetime import datetime
|
|
6
|
+
from livekit.agents import function_tool, RunContext
|
|
7
|
+
|
|
8
|
+
logger = logging.getLogger("AzerAI-Plugins-Datetime")
|
|
9
|
+
|
|
10
|
+
@function_tool()
|
|
11
|
+
async def get_datetime(
|
|
12
|
+
ctx: RunContext, # type: ignore
|
|
13
|
+
) -> str:
|
|
14
|
+
"""Cari tarix və zamanı al."""
|
|
15
|
+
try:
|
|
16
|
+
now = datetime.now()
|
|
17
|
+
date_time_str = now.strftime("%Y-%m-%d %H:%M:%S")
|
|
18
|
+
date_str = now.strftime("%B %d, %Y")
|
|
19
|
+
time_str = now.strftime("%H:%M:%S")
|
|
20
|
+
logger.info(f"Cari tarix və zaman: {date_time_str}")
|
|
21
|
+
return f"Cari tarix və zaman: {date_str} saat {time_str}"
|
|
22
|
+
except Exception as e:
|
|
23
|
+
logger.error(f"Tarix və zaman alınarkən xəta: {e}")
|
|
24
|
+
return f"Tarix və zaman alınarkən xəta baş verdi."
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"""
|
|
2
|
+
AzerAI DateTime Plugin - Tarix Və Zaman Plugin AI Təlimatları
|
|
3
|
+
"""
|
|
4
|
+
PLUGIN_PROMPT = """
|
|
5
|
+
DateTime Plugin Capability:
|
|
6
|
+
You can provide current date and time information.
|
|
7
|
+
|
|
8
|
+
Available functions:
|
|
9
|
+
- get_datetime() - Returns current date and time in readable format
|
|
10
|
+
|
|
11
|
+
Function Details:
|
|
12
|
+
- Args: None (no parameters required)
|
|
13
|
+
- Returns: Str - Cari tarix (Ay Gün, İl formatında) və saat (SS:DD:SS formatında) sətri.
|
|
14
|
+
Məsələn: "Cari tarix və zaman: May 06, 2025 saat 21:30:45"
|
|
15
|
+
|
|
16
|
+
When users ask about time, date, or datetime related questions, use this function to provide accurate information.
|
|
17
|
+
|
|
18
|
+
Examples:
|
|
19
|
+
- "Saat neçədir?" -> Use get_datetime()
|
|
20
|
+
- "Bugün tarix neçədir?" -> Use get_datetime()
|
|
21
|
+
- "Havadan xəbər var, bu gün həftənin neçənci günüdür?" -> Use get_datetime()
|
|
22
|
+
|
|
23
|
+
The function returns date and time in English format with basic information.
|
|
24
|
+
|
|
25
|
+
Always provide responses in Azerbaijani language unless specifically asked otherwise.
|
|
26
|
+
"""
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: azerai-plugins-datetime
|
|
3
|
+
Version: 5.0.0
|
|
4
|
+
Summary: **AzerAI DateTime Plugin** - Tarix Və Zaman Plugin
|
|
5
|
+
Author-email: AzerStudio Dev <Info.AzerStudioDev@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/AzerStudio-Dev/AzerAI-Plugins-DateTime
|
|
8
|
+
Project-URL: Repository, https://github.com/AzerStudio-Dev/AzerAI-Plugins-DateTime.git
|
|
9
|
+
Project-URL: Bug Tracker, https://github.com/AzerStudio-Dev/AzerAI-Plugins-DateTime/issues
|
|
10
|
+
Keywords: azerai,plugins,ai,azerbaijani,datetime,date,time
|
|
11
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Operating System :: OS Independent
|
|
21
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
22
|
+
Classifier: Operating System :: Microsoft :: Windows :: Windows 10
|
|
23
|
+
Classifier: Operating System :: Microsoft :: Windows :: Windows 11
|
|
24
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
25
|
+
Classifier: Operating System :: MacOS
|
|
26
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
27
|
+
Requires-Python: >=3.8
|
|
28
|
+
Description-Content-Type: text/markdown
|
|
29
|
+
License-File: LICENSE
|
|
30
|
+
Requires-Dist: livekit-agents
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# 🕐 AzerAI DateTime Plugin
|
|
34
|
+
|
|
35
|
+
**AzerAI** - Azərbaycan dilində qabaqcıl səsli AI asistent tarix və zaman üçün plugin
|
|
36
|
+
|
|
37
|
+
## Xüsusiyyətlər
|
|
38
|
+
|
|
39
|
+
- 🕐 **Cari vaxt** - Azərbaycan vaxt zonasında (UTC+4)
|
|
40
|
+
- 📅 **Cari tarix** - Tam tarix məlumatları
|
|
41
|
+
- 🌍 **Azərbaycan dilində** - Bütün məlumatlar azərbaycan dilində
|
|
42
|
+
- 🗺️ **Vaxt zona** - Avtomatik Azərbaycan vaxtı
|
|
43
|
+
- 📈 **Formatlama** - Müxtəlif format seçimləri
|
|
44
|
+
|
|
45
|
+
## Platform Dəstəyi
|
|
46
|
+
|
|
47
|
+
- 💻 **Windows** - Windows 10/11 dəstəklənir
|
|
48
|
+
- 🍎 **macOS** - macOS 10.15+ dəstəklənir
|
|
49
|
+
- 🐧 **Linux** - Ubuntu, CentOS, Debian dəstəklənir
|
|
50
|
+
- 🐍 **Python** - Python 3.8+ tələb olunur
|
|
51
|
+
|
|
52
|
+
## Quraşdırma
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
pip install AzerAI-Plugins-DateTime
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## İstifadə
|
|
59
|
+
|
|
60
|
+
Plugin avtomatik olaraq AzerAI tərəfindən aşkar edilir.
|
|
61
|
+
|
|
62
|
+
### Əmrlər
|
|
63
|
+
|
|
64
|
+
- `"İndi saat neçədir?"` - Cari vaxt
|
|
65
|
+
- `"Bugün tarix neçədir?"` - Cari tarix
|
|
66
|
+
- `"Tarix və zaman məlumatları"` - Tam məlumat
|
|
67
|
+
- `"Saat neçə?"` - Sadə vaxt sorğusu
|
|
68
|
+
|
|
69
|
+
## Fayl struktur
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
azerai_plugins_datetime/
|
|
73
|
+
├── __init__.py
|
|
74
|
+
├── info.py
|
|
75
|
+
├── main.py
|
|
76
|
+
└── prompts.py
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Asılılıqlar
|
|
80
|
+
|
|
81
|
+
- `livekit-agents` - AI agent framework
|
|
82
|
+
|
|
83
|
+
## 📄 Lisenziya
|
|
84
|
+
|
|
85
|
+
Bu layihə MIT Lisenziyası ilə lisenziyalaşdırılıb - [LICENSE](https://github.com/AzerStudio-Dev/AzerAI-Plugins-DateTime/blob/main/LICENSE) faylına baxın.
|
|
86
|
+
|
|
87
|
+
## 📞 Əlaqə
|
|
88
|
+
|
|
89
|
+
- **Müəllif:** AzerStudio Dev
|
|
90
|
+
- **Email:** Info.AzerStudioDev@gmail.com
|
|
91
|
+
- **GitHub:** https://github.com/AzerStudio-Dev/AzerAI-Plugins-DateTime
|
|
92
|
+
- **PyPI:** https://pypi.org/project/AzerAI-Plugins-DateTime/
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
**🇦🇿 Azərbaycanın ilk tam plugin ekosistemli AI asistentinin DateTime plugini!** 🚀
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
azerai_plugins_datetime/__init__.py,sha256=wh8ssie026woV9ucT650MLIL3GFmzikDexYA-8g_48Q,153
|
|
2
|
+
azerai_plugins_datetime/info.py,sha256=c_p87m8N1UgvwJJ1F1dWTIcXNd4PPeeITJvjteqbWIw,419
|
|
3
|
+
azerai_plugins_datetime/main.py,sha256=2NpQZKF9DzemGRfxBWYq5sGH-6AV9XVsb8CK9_LgQcY,808
|
|
4
|
+
azerai_plugins_datetime/prompts.py,sha256=RMlzsLSUsv_P341COpFuDL2uedqw3a7vcv4bIpiTi_4,955
|
|
5
|
+
azerai_plugins_datetime-5.0.0.dist-info/licenses/LICENSE,sha256=2TgibkSg_1ptUOeanCkIqXQoDdsKjOUOGViid2pcHh8,1071
|
|
6
|
+
azerai_plugins_datetime-5.0.0.dist-info/METADATA,sha256=WI88BL1JB6AziE92jj9Yfhsh8ab6aegQchGE3F-pglA,3270
|
|
7
|
+
azerai_plugins_datetime-5.0.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
8
|
+
azerai_plugins_datetime-5.0.0.dist-info/top_level.txt,sha256=2EI_rzzHxQp3qqXxS9KIPhkx1EipgWPlUHVoKNUFyRI,24
|
|
9
|
+
azerai_plugins_datetime-5.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AzerStudio Dev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
azerai_plugins_datetime
|