Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto Apto para principiantes
#32,452 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
68/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
azure, python

Línea de trabajo

Abre ai-agents/Labfiles/03b-build-multi-agent-solution/Python/agent_triage.py e inspecciona el bloque que comienza con with agents_client: alrededor de la línea 29. Ejecuta python agent_triage.py para reproducir el IndentationError informado; se considera terminado cuando el ejemplo se ejecuta sin errores de indentación.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
4.6k
Forks
3.5k
Merge medio
4 d 4 h
PR fusionados (30 d)
51

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/azure-cli

Todos los issues de Azure/azure-cli

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.