Skip to content

Commit ad4f85c

Browse files
authored
Enhance deploy-all-agents script with agent listing (#81)
Added logic to gather all agents and set environment variables for deployment.
1 parent 86de0e1 commit ad4f85c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/deploy-all-agents.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ HOSTED_AGENTS_PATH="6-deployed-agents"
22
CATEGORIES=("finance" "geo" "knowledge-base" "search" "travel" "utility" "chained")
33
EXCLUDE=("utility/website-validation-agent")
44

5+
ALL_AGENTS=$(avctl hosting get agents | grep -o 'agent1[^ ]*' | tr '\n' ',' | sed 's/,$//')
6+
57
cd $HOSTED_AGENTS_PATH
68

79
for category in ${CATEGORIES[@]}; do
@@ -27,6 +29,10 @@ for category in ${CATEGORIES[@]}; do
2729
# Create a .avctl folder for new agents if it doesn't exist
2830
avctl hosting init
2931

32+
echo BYPASS_RATE_LIMIT=$ALL_AGENTS >> .env
33+
echo AGENTVERSE_URL="https://agentverse.ai" >> .env
34+
echo ASI1_API_KEY=$ASI1_API_KEY >> .secrets
35+
3036
# Get the agent's name from the README.md top line header
3137
agent_name=$(head -n 1 README.md | sed -e 's/#//g' | xargs)
3238

@@ -39,4 +45,4 @@ for category in ${CATEGORIES[@]}; do
3945

4046
cd ../..
4147
done
42-
done
48+
done

0 commit comments

Comments
 (0)