Skip to content

convert

Description

Commands for converting between component types.

Available Commands: agent_to_service: Convert an autonomous agent into a deployable service

Notes

- Handles package type conversion while preserving functionality
- Manages dependencies and package structure automatically
- Validates components before conversion
- Supports Open Autonomy service standards

Usage

adev convert [OPTIONS] [ARGS]

Additionally, you can view the parameters for the command using:

adev convert --help

Agent To Service

Convert an autonomous agent into a deployable service.

Required Parameters: agent_public_id: Public ID of the source agent (author/name format) service_public_id: Public ID for the target service (author/name format)

Optional Parameters: number_of_agents: Number of agent instances in the service. Default: 1 force: Overwrite existing service if it exists. Default: False

Usage: Basic conversion: adev convert agent-to-service author/my_agent author/my_service

With multiple agent instances:
    adev convert agent-to-service author/my_agent author/my_service --number_of_agents 3

Force overwrite existing:
    adev convert agent-to-service author/my_agent author/my_service --force

Notes

- Prerequisites:
    - Agent must exist in packages directory
    - Agent and service public IDs must be valid
- Package Structure:
    - Creates service in packages/<author>/services/<name>
    - Follows Open Autonomy service structure
- Configuration:
    - Copies agent configuration and dependencies
    - Sets up service-specific overrides
    - Configures number of agent instances
    - Includes network and deployment settings
- Validation:
    - Checks agent existence and structure
    - Validates service creation path
    - Verifies configuration compatibility
- Use --force to overwrite an existing service