You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,9 +39,18 @@ uv pip install -e .
39
39
40
40
## Configuration
41
41
42
-
We recommand you to create a `config.yaml` file in the root directory of your own project, `VeADK` is able to read it automatically.
42
+
We recommand you to create a `config.yaml` file in the root directory of your own project, `VeADK` is able to read it automatically. For running a minimal agent, you just need to set the following configs in your `config.yaml` file:
api_key: # <-- set your Volcengine ARK api key here
51
+
```
43
52
44
-
You can refer to the [example config file](config.yaml.example) for more details.
53
+
You can refer to the [config instructions](https://volcengine.github.io/veadk-python/installation.html#%E9%85%8D%E7%BD%AE) for more details.
45
54
46
55
## Have a try
47
56
@@ -61,8 +70,8 @@ print(res)
61
70
62
71
VeADK provides several useful command line tools for faster deployment and optimization, such as:
63
72
64
-
-`veadk deploy`: deploy your project to Volcengine VeFaaS platform (you can use `veadk init` to init a demo project first)
65
-
-`veadk prompt`: otpimize the system prompt of your agent by PromptPilot
73
+
-`veadk deploy`: deploy your project to [Volcengine VeFaaS platform](https://www.volcengine.com/product/vefaas) (you can use `veadk init` to init a demo project first)
74
+
-`veadk prompt`: otpimize the system prompt of your agent by [PromptPilot](https://promptpilot.volcengine.com)
from veadk.memory.short_term_memory import ShortTermMemory
91
+
from veadk.tools.demo_tools import get_city_weather
47
92
48
-
# Define runner config
49
-
APP_NAME=""
50
-
USER_ID=""
51
-
SESSION_ID=""
93
+
session_id ="..."
94
+
prompt ="..."
52
95
53
-
agent = Agent()
96
+
# define three agents, one for planner, two for write poem and polish
97
+
weather_reporter = Agent(
98
+
name="weather_reporter",
99
+
description="A weather reporter agent to report the weather.",
100
+
tools=[get_city_weather],
101
+
)
102
+
suggester = Agent(
103
+
name="suggester",
104
+
description="A suggester agent that can give some clothing suggestions according to a city's weather.",
105
+
)
54
106
55
-
runner = Runner(
56
-
agent=agent,
57
-
short_term_memory=ShortTermMemory()
58
-
)
107
+
planner_agent = Agent(
108
+
name="planner",
109
+
description="A planner that can generate a suggestion according to a city's weather.",
110
+
instruction="Invoke weather reporter agent first to get the weather, then invoke suggester agent to get the suggestion. Return the final response to user.",
0 commit comments