Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Fixing indentation in code editor when creating a Multi Agent Solution (ticketing)

Aperta Adatta ai principianti
#32,452 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
azure, python
Ambito
documentation

Direzione di ricerca

Apri ai-agents/Labfiles/03b-build-multi-agent-solution/Python/agent_triage.py e ispeziona il blocco che inizia con with agents_client: intorno alla riga 29. Esegui python agent_triage.py per riprodurre l’IndentationError segnalato; l’attività è completata quando l’esempio viene eseguito senza errori di indentazione.

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

Descrizione

Auto-Resolve bug customer-reported Service Attention
Describe the bug

Hi all,

I'm creating a multi agent ticket triaging solution.

Within the code editor and I have indented the line of code as error fix suggests but still getting the same indention error.

Any help to resolve this is appreciated.

Cheers,

Rebecca

Related command

Connect to the agents client

agents_client = AgentsClient(
endpoint=project_endpoint,
credential=DefaultAzureCredential(
exclude_environment_credential=True,
exclude_managed_identity_credential=True
),
)
with agents_client:
# Create an agent to prioritize support tickets
priority_agent_name = "priority_agent"
priority_agent_instructions = """..."""
priority_agent = agents_client.create_agent(
model=model_deployment,
name=priority_agent_name,
instructions=priority_agent_instructions

Errors

IndentationError: expected an indented block after 'with' statement on line 29
rebecca [ ~/ai-agents/Labfiles/03b-build-multi-agent-solution/Python ]$ python agent_triage.py
File "/home/rebecca/ai-agents/Labfiles/03b-build-multi-agent-solution/Python/agent_triage.py", line 33
priority_agent_name = "priority_agent"
^^^^^^^^^^^^^^^^^^^
IndentationError: expected an indented block after 'with' statement on line 29

Issue script & Debug output

IndentationError: expected an indented block after 'with' statement on line 29
rebecca [ ~/ai-agents/Labfiles/03b-build-multi-agent-solution/Python ]$ python agent_triage.py
File "/home/rebecca/ai-agents/Labfiles/03b-build-multi-agent-solution/Python/agent_triage.py", line 33
priority_agent_name = "priority_agent"
^^^^^^^^^^^^^^^^^^^
IndentationError: expected an indented block after 'with' statement on line 29

Expected behavior

The following command python agent_triage.py should be executed successfully without indention errors.

Environment Summary

{
"azure-cli": "2.79.0",
"azure-cli-core": "2.79.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"ml": "2.39.0",
"ssh": "2.0.6"
}
}

Additional context

No response

Lingua principale
Python
Stelle
4.6k
Fork
3.5k
Merge medio
4g 13h
PR unite (30g)
53

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

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 Azure/azure-cli

Tutte le issue di Azure/azure-cli

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.