Skip to content

Commit bb379b2

Browse files
committed
sandbox save
1 parent 49b6112 commit bb379b2

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

remediate_rbac.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import asyncio
2+
from copilot import CopilotClient
3+
4+
async def main():
5+
client = CopilotClient()
6+
await client.start()
7+
8+
session = await client.create_session({"model": "gpt-5-agent"})
9+
10+
print("🤖 Agentic MPF is scanning for the last deployment failure...")
11+
prompt = "Find the last RBAC failure in my subscription and use the MPF skill to suggest a Bicep fix."
12+
13+
response = await session.send_and_wait({"prompt": prompt})
14+
print("\n--- Agent Remediation ---")
15+
print(response.data.content)
16+
17+
await client.stop()
18+
19+
if __name__ == "__main__":
20+
asyncio.run(main())

0 commit comments

Comments
 (0)