Fixing indentation in code editor when creating a Multi Agent Solution (ticketing)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 68/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 冷清
- 技术栈
- azure, python
调研方向
打开 ai-agents/Labfiles/03b-build-multi-agent-solution/Python/agent_triage.py,检查大约第 29 行开始于 with agents_client: 的代码块。运行 python agent_triage.py 以复现报告的 IndentationError;示例在没有缩进错误的情况下执行即表示完成。
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- Python
- 星标
- 4.6k
- 派生
- 3.5k
- 平均合并
- 4 天 13 小时
- 30 天内合并 PR
- 53
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Azure/azure-cli 的其他 Issue
-
customer-reported Service Attention
难度 2/5 1-3 小时 新手友好度 68/100
Azure/azure-cli#34150 · 1 条评论 ·
维护者通常 1 天内回复
-
act-observability-squad Auto-Assign ContainerApp Output Service Attention
难度 2/5 1-3 小时 新手友好度 72/100
Azure/azure-cli#33149 · 5 条评论 ·
维护者通常 1 天内回复
-
act-codegen-extensibility-squad Auto-Assign Documentation MySQL Possible-Solution Service Attention Similar-Issue
难度 1/5 1 小时以内 新手友好度 85/100
Azure/azure-cli#33009 · 5 条评论 ·
维护者通常 1 天内回复
-
act-codegen-extensibility-squad Auto-Assign AzureStackHCI Documentation needs-triage Service Attention
难度 1/5 1 小时以内 新手友好度 72/100
Azure/azure-cli#32586 · 2 条评论 ·
维护者通常 1 天内回复
-
`az mysql flexible-server import` command `--auto-scale-iops` option is defined two default value未关闭act-codegen-extensibility-squad Auto-Assign customer-reported Documentation MySQL needs-triage Service Attention
难度 2/5 1-3 小时 新手友好度 72/100
Azure/azure-cli#32568 · 3 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
repo-audit
难度 2/5 1-3 小时 新手友好度 75/100
scverse/repo-health#20 ·
维护者通常 1 天内回复
-
/context/prime scope override double-prefixes an entity-ref project and drops its scoped memories未关闭
难度 2/5 1-3 小时 新手友好度 85/100
phasespace-labs/palinode#232 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
collective/icalendar#1858 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
langflow-ai/langflow#15496 ·
维护者通常 1 天内回复