framework='ag2' cannot run: AG2Adapter is a stub and the run path was removed

Aperta
#6,661 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
ai

Direzione di ricerca

Start from the AG2Adapter stub marked implemented = False and the removed AgentsGenerator._run_ag2 / _run_autogen run path, then run the openai-live test TestAG2SingleAgentFlow (currently xfail(strict=True) from PR #6657) to see the failure. The issue offers two fixes without choosing one, so confirm with a maintainer before starting. Done means either the adapter satisfies the adapter contract and the test passes unmarked, or ag2 is dropped from accepted framework values with an error listing supported ones.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug claude origin/outsider

What happens

PraisonAI(framework="ag2") cannot run an agents file. It fails with AttributeError/ImportError (or exits), and the message tells the user to pip install praisonai-frameworks[ag2]. Installing that does not help.

Why

  • AG2Adapter is a stub (implemented = False) in the wrapper and in praisonai-frameworks.
  • AgentsGenerator._run_ag2 / _run_autogen were removed, so nothing runs the AG2 path.

Where it shows

The real-key suite (openai-live job) marks TestAG2SingleAgentFlow as xfail(strict=True) until this is fixed (PR #6657).

Fix options

  1. Implement AG2Adapter against the adapter contract, or
  2. Remove ag2 from the accepted framework values and give a clear error that names the supported frameworks.

Related: #1051, #821.

🤖 Generated with Claude Code

Lingua principale
Python
Stelle
9.3k
Fork
1.5k
Merge medio
1g 5h
PR unite (30g)
520

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di MervinPraison/PraisonAI

Tutte le issue di MervinPraison/PraisonAI

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.