Repository navigation
Add Ask AI to the agent and action editors - #1694
Merged
Paul Lizer (paullizer) merged 10 commits intoOct 7, 2026
Merged
Paul Lizer (paullizer) merged 10 commits into
Paul Lizer (paullizer) merged 10 commits into
Conversation
Adds a descriptor-driven editor assist core shared by the agent and action editors, POST /api/agents/assist and /api/actions/assist with scope authorization, admin toggles enable_agent_ai_assistant and enable_action_ai_assistant, and a separate limiter document type. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Describe the agent draft to Ask AI (identity, model, actions, assigned knowledge, limits) and apply its answers through the editor's own helpers. Foundry agents expose only identity and description. Shares the reasoning level lookup with the Advanced panel. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Adds the action editor's Ask AI view and patch rules (per-type fields keyed on the action type, secrets excluded, type changes and their undo going through the editor's own helpers) and wires the shared side panel into ActionEditorPage behind enable_action_ai_assistant. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Ask AI in the agent editor can draft up to three new actions when no existing action fits. Drafts stay in the unsaved agent, appear under New actions from Ask AI, can be finished in the action editor, and are created just before the agent is saved. Undo and Remove drop a draft and a later undo restores it. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
- Fix the drafted-action hand-off: record the placeholder in the draft store so finishing a drafted action in the action editor replaces it on return - Add UI tests for agent/action Ask AI and handoff scope checks - Document admin toggles, guides, feature doc and release notes; bump to 0.261.282 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Paul Lizer (paullizer)
added a commit
to paullizer/simplechat
that referenced
this pull request
Oct 7, 2026
Brings in V2 at d4cfde7 (microsoft#1694, microsoft#1696, VERSION 0.261.289). Conflicts: - application/single_app/config.py: only the VERSION line. Took V2's file (0.261.289). - docs/explanation/release_notes.md: V2's file byte-for-byte, with this branch's own (v0.261.288) section inserted at the very top, above V2's first section, its own (v0.261.288). Every V2 section is unchanged. docs/admin/orchestration.md merged cleanly: V2's edits and this branch's two lines don't touch each other. The next commit renumbers this branch's section and VERSION to 0.261.290, above V2's 0.261.289. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Paul Lizer (paullizer)
added a commit
to paullizer/simplechat
that referenced
this pull request
Oct 7, 2026
V2 now uses 0.261.289 (microsoft#1694, microsoft#1696) and has its own 0.261.288 release notes section, so this branch's version moves above both. Renumbers the same 20 lines in 15 files as the previous bump: config.py, this branch's release-notes section, the documentation version notes and the new tests' headers. V2's own (v0.261.288) release-notes section is untouched. The tests' version floor stays 0.261.253. Refs microsoft#1549 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
15 of 24 tasks
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.
Summary
Building an agent and wiring up its actions takes a lot of manual form work. This adds the Ask AI side panel, which the workflow editor already has, to the V2 agent and action editors.
enable_agent_ai_assistantandenable_action_ai_assistant, both on by default. They only apply while Enable Agents is on.functions_editor_assist.py,editorAssist.tsplus thecomponents/editorAssist/*components) with per-editor adapters, so other editors can reuse it.Review note: an in-memory store (
workspaceEditorDrafts.ts) now passes the drafted action to the action editor and back to the agent. The first version stored this handoff in a React state update that never ran, because the agent editor closed when it navigated to the action editor. It is now recorded immediately and in a separate area for each workspace.Linked issue
Refs #
Release Notes & Latest Features
Is this visible to end users?
Is this admin-facing (Admin Settings, governance, deployment, config)?
Should this become a Latest Feature card?
Screenshot needed for the card?
Version bump
application/single_app/config.pyVERSIONthird segment bumped (0.261.277 -> 0.261.282, one bump per phase)deployers/version.txtbumped, or not needed becausedeployers/was not changedTesting / validation
python functional_tests/test_editor_assist_core.py: passed (26 passed under pytest)..mjslogic tests for the editor-assist adapters: passed.python -m pytest ui_tests/test_v2_agent_action_ask_ai.py: 5 passed.ui_tests/test_v2_workspace_authoring.py, were already failing before this change. They expect raw action names that Hide GUIDs and internal IDs in the shared agent editor #1684 now shows as "Unavailable action N".test_v2_workspace_action_authoring_logic.mjshas one failure (m365_calendar_plugin) that was also there before this change.python functional_tests/test_docs_app_surface_coverage.py: 7/7 passed.python functional_tests/test_docs_site_quality.py: 6/6 passed.npx tsc -b --noEmitandnpm run buildinapplication/v2_ui: clean.Documentation
docs/explanation/features/AGENT_ACTION_AI_ASSISTANT.md, plus the admin page and the create-an-agent and create-an-action guides)Security checklist
@swagger_route(security=get_auth_security())(POST /api/agents/assistandPOST /api/actions/assist, each checked per workspace and rate-limited)sanitize_settings_for_user()