MCPcopy Create free account
hub / github.com/github/gh-aw / GetEngine

Method GetEngine

pkg/workflow/agentic_engine.go:539–548  ·  view source on GitHub ↗

GetEngine retrieves an engine by ID

(id string)

Source from the content-addressed store, hash-verified

537
538// GetEngine retrieves an engine by ID
539func (r *EngineRegistry) GetEngine(id string) (CodingAgentEngine, error) {
540 agenticEngineLog.Printf("Looking up engine: id=%s", id)
541 engine, exists := r.engines[id]
542 if !exists {
543 agenticEngineLog.Printf("Engine not found: id=%s", id)
544 return nil, fmt.Errorf("unknown engine: %s", id)
545 }
546 agenticEngineLog.Printf("Found engine: id=%s, name=%s", id, engine.GetDisplayName())
547 return engine, nil
548}
549
550// GetSupportedEngines returns a list of all supported engine IDs
551func (r *EngineRegistry) GetSupportedEngines() []string {

Calls 3

GetDisplayNameMethod · 0.65
PrintfMethod · 0.45
ErrorfMethod · 0.45