Skip to content

chore: update name of anda cli #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/quick-starts/create-an-agent-with-icp.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,22 @@ DEEPSEEK_API_KEY=''

This project supports xAI's grok-2 or OpenAI's o3-mini models, but not DeepSeek due to unstable Function Calling.

Generate `ID_SECRET` and `ROOT_SECRET` using `anda_engine_cli`:
Generate `ID_SECRET` and `ROOT_SECRET` using `anda_cli`:

```bash
cargo build -p anda_engine_cli
./target/debug/anda_engine_cli --help
./target/debug/anda_engine_cli rand-bytes --help
cargo build -p anda_cli
./target/debug/anda_cli --help
./target/debug/anda_cli rand-bytes --help
```

Generate 32-byte `ID_SECRET`:
```bash
./target/debug/anda_engine_cli rand-bytes --len 32
./target/debug/anda_cli rand-bytes --len 32
```

Generate 48-byte `ROOT_SECRET`:
```bash
./target/debug/anda_engine_cli rand-bytes --len 48
./target/debug/anda_cli rand-bytes --len 48
```

### 1.4 Running the AI Agent Service
Expand All @@ -94,25 +94,25 @@ This starts the AI agent service, listening on the default port `8042`.

### 1.5 Calling the Agent

Use `anda_engine_cli` to call the AI agent service:
Use `anda_cli` to call the AI agent service:

```bash
./target/debug/anda_engine_cli agent-run --help
./target/debug/anda_engine_cli agent-run -p 'Please check my PANDA balance'
./target/debug/anda_cli agent-run --help
./target/debug/anda_cli agent-run -p 'Please check my PANDA balance'
```

The AI agent service can include multiple Anda engines, each with multiple agents and tools. The above command calls the default agent in the default Anda engine.

Use a different identity to call the AI agent service if you have `dfx` installed:

```bash
./target/debug/anda_engine_cli agent-run -i ~/.config/dfx/identity/default/identity.pem -p 'Please transfer 0.1 PANDA tokens to me'
./target/debug/anda_cli agent-run -i ~/.config/dfx/identity/default/identity.pem -p 'Please transfer 0.1 PANDA tokens to me'
```

You can also directly call tools to query balances:

```bash
./target/debug/anda_engine_cli tool-call -n icp_ledger_balance_of -a '{"account":"535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe","symbol":"PANDA"}'
./target/debug/anda_cli tool-call -n icp_ledger_balance_of -a '{"account":"535yc-uxytb-gfk7h-tny7p-vjkoe-i4krp-3qmcl-uqfgr-cpgej-yqtjq-rqe","symbol":"PANDA"}'
```

## Code Analysis
Expand Down