Skip to content

Commit c865a3d

Browse files
author
qevan
committed
update api key name and news support
1 parent 639f1a9 commit c865a3d

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

packages/plugin-depin/README.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ Leverage **`@elizaos/plugin-depin`** to seamlessly integrate AI agents with the
3030
Add the following to your `.env` file:
3131

3232
```env
33-
MAPBOX_API_KEY=your-mapbox-api-key
34-
NUBILA_API_KEY=your-nubila-api-key
33+
SENTAI_API_KEY=your-sentai-api-key
3534
```
3635

3736
### Character Configuration
@@ -76,14 +75,13 @@ The **DEPIN_PROJECTS** action empowers Eliza agents to interact with and analyze
7675
- **Device and Revenue Analysis:** Explore statistics such as device deployment, operational costs, and revenue generation.
7776
- **In-depth Queries:** Answer detailed questions about specific DePIN projects by leveraging the rich dataset provided by the DePINScan API.
7877

79-
### Current Weather and Weather Forecast
78+
### Sentient AI
8079

81-
The **CURRENT_WEATHER** action integrates Nubila APIs to provide Eliza agents with weather-related capabilities. Key functionalities include:
80+
The **SENTIENT_AI** action integrates Sentient AI APIs to provide Eliza agents with weather-related capabilities. Key functionalities include:
8281

83-
- **Real-Time Weather Updates:** Deliver current temperature, humidity, and general conditions for specified locations.
84-
- **Forecast Analysis:** Generate short- and long-term forecasts to assist in planning and decision-making.
85-
- **Pattern Recognition:** Analyze weather trends and identify emerging patterns or anomalies.
86-
- **Interactive Content:** Create weather-related insights, summaries, or user-facing content such as memes and visuals.
82+
- **Real-Time Weather Updates:** Deliver current temperature, humidity, and general conditions for specified locations. (supported by Nubila)
83+
- **Forecast Analysis:** Generate short- and long-term forecasts to assist in planning and decision-making. (supported by Nubila)
84+
- **Other Actions** Sentient AI will continue to improve and add more actions based on DePIN data.
8785

8886
---
8987

packages/plugin-depin/src/actions/sentientai.ts

+16-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ export const sentientAI: Action = {
1414
"FUTURE_WEATHER",
1515
"UPCOMING_WEATHER",
1616
"WEATHER_PREDICTION",
17+
"NEWS"
1718
],
18-
description: "Get realtime detailed information like the weather forecast for a given location",
19+
description: "Provde realtime information given a query. 1. Weather. 2. News.",
1920
examples: [
2021
[
2122
{
@@ -46,6 +47,19 @@ export const sentientAI: Action = {
4647
action: "WEATHER_FORECAST",
4748
},
4849
},
50+
{
51+
user: "user",
52+
content: {
53+
text: "What is the latest news about Trump?",
54+
},
55+
},
56+
{
57+
user: "assistant",
58+
content: {
59+
text: "Here are some of the latest news articles related to Trump: Trump invites House Republicans to Mar-a-Lago for strategy meetings.",
60+
action: "NEWS",
61+
},
62+
},
4963
],
5064
],
5165
validate: async (runtime: IAgentRuntime, message: Memory) => {
@@ -66,7 +80,7 @@ export const sentientAI: Action = {
6680
method: "POST",
6781
headers: {
6882
"Content-Type": "application/json",
69-
"API-KEY": process.env.DEPIN_API_KEY,
83+
"API-KEY": runtime.getSetting("SENTAI_API_KEY"),
7084
},
7185
body: JSON.stringify({
7286
q: content.text,

0 commit comments

Comments
 (0)