solana-agent 2.1.2__tar.gz → 2.1.3__tar.gz
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.
- {solana_agent-2.1.2 → solana_agent-2.1.3}/PKG-INFO +1 -1
- {solana_agent-2.1.2 → solana_agent-2.1.3}/pyproject.toml +1 -1
- {solana_agent-2.1.2 → solana_agent-2.1.3}/solana_agent/ai.py +4 -2
- {solana_agent-2.1.2 → solana_agent-2.1.3}/LICENSE +0 -0
- {solana_agent-2.1.2 → solana_agent-2.1.3}/README.md +0 -0
- {solana_agent-2.1.2 → solana_agent-2.1.3}/solana_agent/__init__.py +0 -0
|
@@ -453,9 +453,11 @@ class AI:
|
|
|
453
453
|
response = client.request("time.cloudflare.com", version=3)
|
|
454
454
|
dt = datetime.datetime.fromtimestamp(
|
|
455
455
|
response.tx_time, datetime.timezone.utc)
|
|
456
|
-
|
|
456
|
+
# convert time based on location
|
|
457
|
+
the_time = dt.strftime("%Y-%m-%d %H:%M:%S UTC")
|
|
458
|
+
return f"The current time is {the_time}"
|
|
457
459
|
except Exception as e:
|
|
458
|
-
return f"Error: {e}"
|
|
460
|
+
return f"Error getting the current time: {e}"
|
|
459
461
|
|
|
460
462
|
# has to be sync for tool
|
|
461
463
|
def get_memory_context(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|