Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 0 additions & 5 deletions cmd/ax/internal/cliutil/cliutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ func NewControllerFromConfig(ctx context.Context, cfg *Config) (*controller.Cont
}
}

for _, agentCfg := range cfg.Registry.SubstrateAgents {
if err := c.Registry().RegisterATE(ctx, cfg.ATE.Endpoint, agentCfg); err != nil {
return nil, fmt.Errorf("failed to register ATE agent %s: %w", agentCfg.ID, err)
}
}

return c, nil
}
34 changes: 9 additions & 25 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,21 @@ import (

// Config represents the main configuration for AX server.
type Config struct {
Server ServerConfig `yaml:"server"`
EventLog EventLogConfig `yaml:"eventlog"`
Planner PlannerConfig `yaml:"planner,omitempty"`
Registry RegistryConfig `yaml:"registry,omitempty"`
ATE ATEConfig `yaml:"ate,omitempty"`
Server ServerConfig `yaml:"server"`
EventLog EventLogConfig `yaml:"eventlog"`
Planner PlannerConfig `yaml:"planner,omitempty"`
Registry RegistryConfig `yaml:"registry,omitempty"`
Substrate SubstrateConfig `yaml:"substrate,omitempty"`
}

// RegistryConfig allows registring agents.
type RegistryConfig struct {
RemoteAgents []RemoteAgentConfig `yaml:"remote_agents,omitempty"`
ColabAgents []ColabAgentConfig `yaml:"colab_agents,omitempty"`
SubstrateAgents []SubstrateAgentConfig `yaml:"substrate_agents,omitempty"`
RemoteAgents []RemoteAgentConfig `yaml:"remote_agents,omitempty"`
ColabAgents []ColabAgentConfig `yaml:"colab_agents,omitempty"`
}

// ATEConfig configures the ATE integration.
type ATEConfig struct {
// SubstrateConfig configures the Substrate integration.
type SubstrateConfig struct {
Endpoint string `yaml:"endpoint"`
}

Expand Down Expand Up @@ -97,21 +96,6 @@ type GeminiConfig struct {
Tools []string `json:"tools,omitempty" yaml:"tools,omitempty"`
}

// SubstrateAgentConfig allows registering a new agent with an ATE actor template.
type SubstrateAgentConfig struct {
ID string `yaml:"id"` // Unique agent identifier
Name string `yaml:"name"` // Human-readable name
Description string `yaml:"description"` // Description of agent capabilities
Port int `yaml:"port"` // Port the agent is listening on
Namespace string `yaml:"namespace"` // Namespace for actor
Template string `yaml:"template"` // Template for actor
Protocol string `yaml:"protocol,omitempty"` // "axp" (default) or "a2a"
Auth auth.Auth `yaml:"auth,omitempty"` // Optional auth
Headers auth.Headers `yaml:"headers,omitempty"` // Optional headers
Metadata map[string]string `yaml:"metadata,omitempty"` // Optional metadata
// TODO(jbd): Rename this struct before releasing.
}

// RemoteAgentConfig configures a remote agent to register on startup.
type RemoteAgentConfig struct {
ID string `yaml:"id"` // Unique agent identifier
Expand Down
62 changes: 0 additions & 62 deletions internal/controller/registry_ate.go

This file was deleted.

126 changes: 0 additions & 126 deletions internal/experimental/agent/ate.go

This file was deleted.

Loading