feat(agents): write unified microsoft.foundry config from init#8673
Closed
huimiu wants to merge 7 commits into
Closed
feat(agents): write unified microsoft.foundry config from init#8673huimiu wants to merge 7 commits into
huimiu wants to merge 7 commits into
Conversation
…dry service target
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Consolidates the "unify Foundry config in
azure.yaml" work to a code-complete state for a single hosted agent. Builds on the design spec in #8590 (§2.1, §2.3, §2.7).Stacking
This branch is stacked on #8629 (
huimiu/foundry-service-target). It contains #8629's commits (themicrosoft.foundryservice target) plus the additions below. Merge #8629 first, then rebase/merge this — or merge this and close #8629.Changes
1.
initnow writes the unifiedhost: microsoft.foundryentryazd ai agent initwrites a singleazure.yamlwith the agent declared inline under the serviceagents:array and modeldeployments:at the project level — no moreagent.yaml/agent.manifest.yaml.ServiceConfig.AdditionalProperties(notconfig:), and no service-levelproject/languageis set — each agent owns itsprojectand deploy mode. No azd core change: the gRPCServiceConfigalready carriesadditional_properties,AddServicemaps it toproject.ServiceConfig.AdditionalProperties, andSaveserializes it inline.FoundryAgentshape (runtime/image deploy modes, env, protocols, container resources). A sharedbuildFoundryServiceConfighelper covers both the manifest (InitAction) and from-code (InitFromCodeAction) paths.init_foundry_test.go, including one that round-trips init's output through the service target's ownFoundryProjectConfig.Validate().Scope
In scope (deployable today): a single hosted agent via code-deploy (
runtime) or a prebuiltimage.Deferred (faithfully written by
init, not yet reconciled/deployed by the service target): container (docker) builds, multi-agent fan-out, deployments/connections/toolboxes/skills/routines reconcile, and migration/telemetry for the oldhost: azure.ai.agent+agent.yaml.Templating (
${VAR}/${{...}}viaExpandEnv) is already on the feature branch; theconfig-unificationbranch is stale and not needed.Validation
azure.ai.agents):go build,go vet,gofmt,golangci-lint run(0 issues), fullgo test ./..., andcspell— all clean.internal/mcp/tools,TestHandleAzdYamlSchema) pass.simple/complexexamples validate against the composedmicrosoft.foundryschema (offline ajv), exercising the corehost: microsoft.foundryconditional.