View Configuration Command

The config view command displays the current configuration settings for a specific AI Agent.

Usage

xpander config view <agent_id> [--format <format>] [--section <section>]

Options

OptionDescription
--format <format>Optional. Output format: default (human-readable) or json
--section <section>Optional. View specific configuration section: general, memory, tools, interfaces

Examples

View All Configuration

xpander config view agent_123

Response:

Agent Configuration
==================
Agent: Support Agent (agent_123)
Status: Active

General Settings
---------------
Name: Support Agent
Description: Customer support agent with knowledge base access
Language: en-US
Timezone: UTC-8
Max Response Time: 5s

Memory Configuration
------------------
Type: persistent
Storage: redis
TTL: 24h
Max Tokens: 8192
Context Window: 4096

Knowledge Base
-------------
Type: vector-db
Update Frequency: 1h
Embedding Model: text-embedding-3-large
Chunk Size: 512

LLM Settings
-----------
Model: gpt-4
Temperature: 0.7
Max Tokens: 2048
Top P: 0.9

Tools (3)
--------
1. notion
   Status: connected
   Workspace: Support Team
   Permissions: read, write

2. slack
   Status: connected
   Channels: #support, #general
   Bot Name: Support Assistant

3. calendar
   Status: connected
   Calendar: support@company.com
   Access: read, write

Interfaces (2)
-------------
1. slack
   Status: active
   Users: 145
   Rate Limit: 100/minute

2. web
   Status: active
   Endpoint: https://agent.example.com/chat
   Rate Limit: 60/minute

Security
--------
Authentication: OAuth2
API Access: restricted
Rate Limiting: enabled
Audit Logging: enabled

View Specific Section

xpander config view agent_123 --section memory

Response:

Memory Configuration
===================
Type: persistent
Storage: redis
TTL: 24h
Max Tokens: 8192
Context Window: 4096
Backup Enabled: yes
Sync Interval: 5m

JSON Format

xpander config view agent_123 --format json

Response:

{
  "agent": {
    "id": "agent_123",
    "name": "Support Agent",
    "status": "active",
    "general": {
      "language": "en-US",
      "timezone": "UTC-8",
      "max_response_time": 5
    },
    "memory": {
      "type": "persistent",
      "storage": "redis",
      "ttl": "24h",
      "max_tokens": 8192,
      "context_window": 4096
    },
    "knowledge_base": {
      "type": "vector-db",
      "update_frequency": "1h",
      "embedding_model": "text-embedding-3-large",
      "chunk_size": 512
    },
    "llm": {
      "model": "gpt-4",
      "temperature": 0.7,
      "max_tokens": 2048,
      "top_p": 0.9
    },
    "tools": [
      {
        "name": "notion",
        "status": "connected",
        "config": {
          "workspace": "Support Team",
          "permissions": ["read", "write"]
        }
      }
      // ... more tools
    ],
    "interfaces": [
      {
        "name": "slack",
        "status": "active",
        "config": {
          "users": 145,
          "rate_limit": 100
        }
      }
      // ... more interfaces
    ],
    "security": {
      "authentication": "oauth2",
      "api_access": "restricted",
      "rate_limiting": true,
      "audit_logging": true
    }
  }
}

Notes

  • Configuration sections include:
    • General settings
    • Memory configuration
    • Knowledge base settings
    • LLM parameters
    • Tool configurations
    • Interface settings
    • Security options
  • Use --section to:
    • Focus on specific settings
    • Reduce output volume
    • Simplify viewing
  • The JSON format is useful for:
    • Programmatic access
    • Configuration backups
    • Setting templates
  • Use config set to modify settings