Skip to content

Commit 530e7d5

Browse files
nrosa-valoryNaiane B
andauthored
Documentation general improvements (#2291)
* Addition of examples for analyse logs command on advance reference section * Addition of autonomy develop and push-all command documentation * Addition of introduction pages for sections: - Advanced Reference > Commands - Configure Service - Get Started * Fix typos and some generic text improvements --------- Co-authored-by: Naiane B <bondezanrosa@gmail.com>
1 parent aab6acb commit 530e7d5

File tree

12 files changed

+242
-11
lines changed

12 files changed

+242
-11
lines changed

docs/advanced_reference/commands/autonomy_analyse.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,44 @@ autonomy analyse logs [OPTIONS]
260260
: Show the help message and exit.
261261

262262
### Examples
263-
!!! info
264-
This section will be added soon.
265263

264+
Analyze logs from the build directory `./abci_build_hAsH/persistent_data/logs` for 2 agents:
265+
266+
```bash
267+
autonomy analyse logs --from-dir ./abci_build_hAsH/persistent_data/logs -a 'aea_0' -a 'aea_1'
268+
```
269+
270+
View logs for 2 agents between specific times:
271+
272+
```bash
273+
autonomy analyse logs --from-dir ./abci_build_hAsH/persistent_data/logs -a 'aea_0' --start-time "2024-01-20 10:00:00,000" --end-time "2024-01-20 11:00:00,000"
274+
```
275+
276+
View logs for period `2` and round `RegistrationRound`:
277+
278+
```bash
279+
autonomy analyse logs --from-dir ./abci_build_hAsH/persistent_data/logs -a 'aea_0' --period 2 --round RegistrationRound
280+
```
281+
282+
View only the FSM state transitions:
283+
284+
```bash
285+
autonomy analyse logs --from-dir ./abci_build_hAsH/persistent_data/logs -a 'aea_0' --fsm
286+
```
287+
288+
Filter by log level `ERROR` and behaviour `RegistrationBehaviour`:
289+
290+
```bash
291+
autonomy analyse logs --from-dir ./abci_build_hAsH/persistent_data/logs -a 'aea_0' --log-level ERROR --behaviour RegistrationBehaviour
292+
```
293+
294+
Use regex patterns to filter logs, include lines with `consensus` and exclude lines with `debug`
295+
296+
```bash
297+
autonomy analyse logs --from-dir ./abci_build_hAsH/persistent_data/logs -a 'aea_0' -ir ".*consensus.*" -er ".*debug.*"
298+
```
299+
300+
These examples demonstrate various ways to filter and analyze agent service logs. You can combine multiple options to narrow down the log output to exactly what you need for debugging or analysis.
266301

267302
## `autonomy analyse benchmarks`
268303

docs/advanced_reference/commands/autonomy_deploy.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,14 @@ autonomy deploy build [OPTIONS] [KEYS_FILE]
102102
`--agent-memory-limit INTEGER`
103103
: Set agent memory usage limit.
104104

105-
`--remote``
106-
: To use `a remote registry.
105+
`--number-of-services INTEGER`
106+
Number of services (i.e., separate deployment folders) to build. Default is 1.
107107

108-
`--local``
109-
: To use `a local registry.
108+
`--remote`
109+
: To use a remote registry.
110+
111+
`--local`
112+
: To use a local registry.
110113

111114
`-p`
112115
: Ask for password interactively.
@@ -123,6 +126,14 @@ autonomy deploy build keys.json -ltm
123126

124127
Builds a service deployment using the keys stored in the file `keys.json` and applying environment variables to the service configuration file. The deployment will be generated by default for as many agents as keys are stored in `keys.json`. By default, the command searches for the file `keys.json`, if no file name is provided.
125128

129+
You can build multiple service deployments at once using the `--number-of-services` parameter. Each service will be created in its own `abci_build_*` folder:
130+
131+
```bash
132+
autonomy deploy build --number-of-services 2 keys.json
133+
```
134+
135+
Note: Use `--n` to set the number of agents per service, and use `--number-of-services` to build multiple separate services at once.
136+
126137
If you are manually defining `keys.json` make sure to include `ledger` property for a key object. This will be used when writing key files to the deployment environment. If you don't specify the property `ethereum` will be used as default ledger identifier, so if you're running an agent against a different ledger (eg. `solana`) you'll have to specify this property manually like this
127138

128139
```json
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Development tools for agent services.
2+
3+
## Usage
4+
```bash
5+
autonomy develop [OPTIONS] COMMAND [ARGS]...
6+
```
7+
8+
## Options
9+
`--help`
10+
: Show the help message and exit.
11+
12+
## `autonomy develop service-registry-network`
13+
Run service registry contracts locally.
14+
15+
### Usage
16+
```bash
17+
autonomy develop service-registry-network [OPTIONS]
18+
```
19+
20+
### Examples
21+
22+
Run service registry contracts locally
23+
24+
```bash
25+
autonomy develop service-registry-network
26+
```

docs/advanced_reference/commands/autonomy_fetch.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Fetch an agent or agent service from a registry using its public ID, hash, or token ID.
2+
The `autonomy fetch` command allows you to download service files from either a local or remote registry.
23

34
## Usage
45
```bash
@@ -95,7 +96,7 @@ Fetch the agent service `hello_world` from a local registry with an explicit pat
9596
autonomy --registry-path=./packages fetch valory/hello_world:0.1.0 --service --local
9697
```
9798

98-
Fetch the agent service `hello_world` from a remote registry ([IPFS](https://ipfs.io)):
99+
Fetch the agent service `hello_world` from a remote registry using [IPFS](https://ipfs.io) hash:
99100
```bash
100101
autonomy fetch valory/hello_world:0.1.0:bafybeihl6j7ihkytk4t4ca2ffhctpzydwi6r4a354ubjasttuv2pw4oaci --service --remote
101102
```
@@ -104,3 +105,22 @@ Fetch the agent service with the token ID `123` on Gnosis chain:
104105
```bash
105106
autonomy fetch 123 --use-gnosis
106107
```
108+
109+
### Viewing Remote Registry Files
110+
111+
Before fetching a service, you can inspect its contents in on IPFS through `https://gateway.autonolas.tech/ipfs/<hash>/`
112+
113+
## Common Issues and Solutions
114+
115+
### Service Not Found
116+
- Verify the service ID is correct
117+
- Check registry connection
118+
- Ensure you're using the correct registry flag (--local or --remote)
119+
120+
### Missing Dependencies
121+
- Run `autonomy packages sync` to update local packages
122+
- Check service requirements in `service.yaml`
123+
124+
### Permission Issues
125+
- Verify write permissions in packages directory
126+
- Run with appropriate permissions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
Push all available packages to a registry.
3+
4+
## Usage
5+
```bash
6+
autonomy push-all [OPTIONS]
7+
```
8+
9+
## Options
10+
`--packages-dir PATH`
11+
: Path to the packages directory.
12+
13+
`--help`
14+
: Show the help message and exit.
15+
16+
## Examples
17+
Push all packages
18+
19+
```bash
20+
autonomy push-all --packages-dir ./packages
21+
```

docs/advanced_reference/commands/autonomy_replay.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ Tendermint runner.
4444

4545
## Examples
4646

47-
Find a complete example on how the [execution replay section](../developer_tooling/execution_replay.md).
47+
Find a complete example on how the [execution replay section](../developer_tooling/execution_replay.md).
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Open Autonomy CLI Overview
2+
3+
This page provides a quick reference to commonly used CLI commands in the Open Autonomy framework. Each command has a brief description and basic usage example, with links to more detailed documentation.
4+
5+
## Core Commands
6+
7+
### autonomy analyse
8+
Analyse an agent service, including ABCI app specifications, docstrings, logs, and more.
9+
10+
[Detailed analyse documentation](./advanced_reference/commands/autonomy_analyse.md)
11+
12+
### autonomy deploy
13+
Deploy an agent service using various deployment backends (Docker, Kubernetes, or localhost).
14+
15+
[Detailed deploy documentation](./advanced_reference/commands/autonomy_deploy.md)
16+
17+
### autonomy develop
18+
Development tools for agent services.
19+
20+
[Detailed develop documentation](./advanced_reference/commands/autonomy_develop.md)
21+
22+
### autonomy fetch
23+
Fetch an agent or service from a registry.
24+
25+
[Detailed fetch documentation](./advanced_reference/commands/autonomy_fetch.md)
26+
27+
### autonomy mint
28+
Mint components and services on-chain.
29+
30+
[Detailed mint documentation](./advanced_reference/commands/autonomy_mint.md)
31+
32+
### autonomy push-all
33+
Push all available packages to a registry.
34+
35+
[Detailed push-all documentation](./advanced_reference/commands/autonomy_push_all.md)
36+
37+
### autonomy replay
38+
Replay tools for agent services.
39+
40+
[Detailed replay documentation](./advanced_reference/commands/autonomy_replay.md)
41+
42+
### autonomy service
43+
Manage on-chain services.
44+
45+
[Detailed service documentation](./advanced_reference/commands/autonomy_service.md)
46+
47+
## Additional Information
48+
49+
- Most commands support the `--help` flag for detailed usage information
50+
- Commands that interact with blockchains typically require a key file
51+
- Many commands have additional options for customization and configuration
52+
- See the [detailed command reference](./advanced_reference/commands/autonomy_analyse.md) for complete documentation of each command
53+
54+
## Common Options
55+
56+
Many commands share common options:
57+
58+
- `--registry`: Specify the registry to use (default: remote)
59+
- `--chain`: Select blockchain network (e.g., ethereum, polygon)
60+
- `--key`: Path to key file for blockchain transactions
61+
- `--password`: Password for encrypted key files
62+
- `--help`: Show help message and exit

docs/advanced_reference/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#Advanced reference - index
1+
# Advanced reference
2+
23
In this section you will find advanced developer topics such as the API and CLI documentation,
34
debugging tools and other topics relevant for the development of agent services with
45
the {{open_autonomy}} framework.

docs/configure_service/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Configure Service
2+
3+
This section provides detailed information and guides for configuring an agent service.
4+
Here you will find:
5+
6+
- [The service configuration file](./service_configuration_file.md): Learn how to set up and customize your service's configuration
7+
- [Configure access to external chains](./configure_access_external_chains.md): Guide for configuring your service to work with different blockchain networks
8+
- [On-chain deployment checklist](./on-chain_deployment_checklist.md): Requirements and steps for deploying your service on-chain
9+
- [Analyze and test](./analyze_test.md): Tools and practices for testing and analyzing your service
10+
11+
These guides will help you properly configure and validate your agent service for both development and production environments.

docs/get_started/index.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Getting Started
2+
3+
Welcome to the Open Autonomy Framework documentation! This section will help you understand and get started with building your own agent services.
4+
5+
## What are Agent Services?
6+
7+
Agent services are decentralized off-chain services that run as multi-agent systems and are secured on public blockchains. They enable complex processing and autonomous actions while maintaining decentralization, trust-minimization, transparency, and robustness.
8+
9+
## Key Topics
10+
11+
1. [What is an Agent Service?](./what_is_an_agent_service.md)
12+
Learn about the architecture and components of agent services, including how they work and interact with blockchain networks.
13+
14+
2. [Why do we need Agent Services?](./why_do_we_need_agent_services.md)
15+
Understand the challenges in blockchain technology that agent services address and their role in the crypto ecosystem.
16+
17+
3. [Use cases](./use_cases.md)
18+
Explore practical applications of agent services, from DAO operations to customizable infrastructure solutions.
19+
20+
4. [Agent Services compared](./agent_services_compared_to.md)
21+
See how agent services compare to other software solutions and understand when to use them.
22+
23+
## Next Steps
24+
25+
After understanding the basics of agent services, you can:
26+
27+
- Follow our [Quick Start Guide](../guides/quick_start.md) to build your first agent service
28+
- Learn about the [Development Process](../guides/overview_of_the_development_process.md)
29+
- Explore [Key Concepts](../key_concepts/index.md) in depth
30+
31+
## Need Help?
32+
33+
If you have questions or need assistance:
34+
35+
- Check our [Questions and Answers](../questions-and-answers.md) section
36+
- Join our community on [Discord](https://discord.com/invite/z2PT65jKqQ)
37+
- Visit the [Autonolas website](https://www.autonolas.network/) for more resources

0 commit comments

Comments
 (0)