Skip to content

Add 08-09 REST invocation and 08-10 hosted Copilot SDK agent labs#18

Merged
corticalstack merged 1 commit into
mainfrom
feat/08-09-foundry-hosted-copilot-sdk
May 30, 2026
Merged

Add 08-09 REST invocation and 08-10 hosted Copilot SDK agent labs#18
corticalstack merged 1 commit into
mainfrom
feat/08-09-foundry-hosted-copilot-sdk

Conversation

@corticalstack
Copy link
Copy Markdown
Owner

What

Two new 08-agents labs, plus cleanup of an accidentally-committed upstream dump.

08-09-invoke-agent-via-rest

Three notebooks invoking a Foundry agent over raw REST (the responses API), covering the patterns we previously only had via the SDK:

  • 08-09-01 single-shot
  • 08-09-02 multi-turn
  • 08-09-03 streaming

08-10-hosted-copilot-sdk-agent

Deploys a GitHub Copilot SDK agent as a Foundry hosted agent:

  • Bicep (az deployment sub create) -> az acr build -> AIProjectClient.agents.create_version, with a two-pass register + bootstrap-delete.
  • BYOK Foundry model via Managed Identity over the project endpoint (<project>/openai/v1/, audience ai.azure.com).
  • M365 license-analytics demo: uploaded CSV + reference JSON, five analytics prompts (rendered as markdown tables), and an agent-generated, downloadable cost-by-department chart (matplotlib with an SVG fallback, retrieved via a new download_session_file() helper).
  • OTel tracing into the Foundry portal, and 08-10-00 docs covering the agentic loop, BYOK wiring, and the permission model.

Cleanup

  • Removes the accidentally-committed upstream .git directory and azd scaffolding from the old 08-agents/08-09 path.
  • pyproject: bumps azure-ai-projects, drops the unused azure-ai-inference from the finetune dependency group.

Notes

  • All notebook outputs are cleared; no subscription/tenant/principal IDs, keys, or resource names are committed. The runtime bicep params file is git-ignored.
  • Notebooks are authored but validated against a torn-down deployment; the file-download round-trip in Step 7.8 has an inline-SVG fallback for platform builds that do not serve agent-written files.

…DK agent labs

- 08-09-invoke-agent-via-rest: single-shot, multi-turn, and streaming
  notebooks that invoke a Foundry agent over raw REST (responses API).
- 08-10-hosted-copilot-sdk-agent: deploy a GitHub Copilot SDK agent as a
  Foundry hosted agent (Bicep + az acr build + create_version). BYOK Foundry
  model via Managed Identity over the project endpoint, an M365 license
  analytics demo with rendered tables and an agent-generated, downloadable
  cost-by-department chart, OTel tracing, and a documented agentic-loop and
  permission model.
- Remove the accidentally-committed upstream .git directory and azd
  scaffolding from the old 08-agents/08-09 path.
- pyproject: bump azure-ai-projects, drop the unused azure-ai-inference from
  the finetune dependency group.
@corticalstack corticalstack merged commit be152dc into main May 30, 2026
1 of 2 checks passed
@corticalstack corticalstack deleted the feat/08-09-foundry-hosted-copilot-sdk branch May 30, 2026 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant