Fixing indentation in code editor when creating a Multi Agent Solution (ticketing)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- azure, python
- Lĩnh vực
- documentation
Hướng nghiên cứu
Mở ai-agents/Labfiles/03b-build-multi-agent-solution/Python/agent_triage.py và kiểm tra khối bắt đầu bằng with agents_client: quanh dòng 29. Chạy python agent_triage.py để tái hiện IndentationError đã báo cáo; hoàn tất khi mẫu chạy mà không có lỗi thụt lề.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- Python
- Star
- 4.6k
- Fork
- 3.5k
- Merge trung bình
- 4 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 53
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Azure/azure-cli
-
customer-reported Service Attention
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Azure/azure-cli#34150 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
act-observability-squad Auto-Assign ContainerApp Output Service Attention
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Azure/azure-cli#33149 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
act-codegen-extensibility-squad Auto-Assign Documentation MySQL Possible-Solution Service Attention Similar-Issue
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Azure/azure-cli#33009 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
act-codegen-extensibility-squad Auto-Assign AzureStackHCI Documentation needs-triage Service Attention
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
Azure/azure-cli#32586 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`az mysql flexible-server import` command `--auto-scale-iops` option is defined two default valueĐang mởact-codegen-extensibility-squad Auto-Assign customer-reported Documentation MySQL needs-triage Service Attention
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Azure/azure-cli#32568 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Azure/azure-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
kornia/kornia#5263 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Metadata correction for W16-5400Đang mởapproved correction metadata
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
acl-org/acl-anthology#10133 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
BasedHardware/omi#20084 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-acceptance wg/evaluation-quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vllm-project/semantic-router#4424 ·
Maintainer thường phản hồi trong vòng 1 ngày