Skip to content

docs: add deep dive article on flow control and reasoning block behavior#12

Merged
elijahbenizzy merged 2 commits into
salesforce:mainfrom
NikhilKGupta:docs/deep-dive-flow-control
Apr 28, 2026
Merged

docs: add deep dive article on flow control and reasoning block behavior#12
elijahbenizzy merged 2 commits into
salesforce:mainfrom
NikhilKGupta:docs/deep-dive-flow-control

Conversation

@NikhilKGupta
Copy link
Copy Markdown
Contributor

What

Add a detailed walkthrough of AgentScript's two-phase execution model (deterministic parse vs. LLM reasoning), covering primitives, flow of control diagrams, a turn-by-turn example conversation with compiled prompts and tool visibility, observability traces, and behavioral observations about pipe-prefixed instructions.

Includes 4 diagrams/screenshots and a companion .agent file.

Why

Fixes #11

How

  • Created apps/docs/docs/dialects/agentforce/ascript-deep-dive-flow.md with the full article content, Docusaurus frontmatter, and image paths rewritten to use the static asset convention (/img/agent-script/deep-dive/...).
  • Copied 4 PNG images and 1 .agent file to apps/docs/static/img/agent-script/deep-dive/.
  • Added dialects/agentforce/ascript-deep-dive-flow to apps/docs/sidebars.ts, positioned after the existing "Flow of Control" page since it serves as a companion deep dive.

Test Plan

  • Ran pnpm docs:dev and verified the article renders correctly at http://localhost:27000/dialects/agentforce/ascript-deep-dive-flow
  • Verified all 4 images load properly on the page
  • Verified the appendix link to the .agent file resolves
  • Verified the sidebar entry appears in the correct position under Agentforce > Deep Dive: Flow Control
  • Ran pnpm build in apps/docs and confirmed no new broken links or build errors (pre-existing warnings on other pages are unchanged)

Checklist

  • My code follows the project's coding style
  • I have reviewed my own diff
  • I have added/updated documentation as needed
  • This change does not introduce new warnings

Add a detailed walkthrough of AgentScript's two-phase execution model
(deterministic parse vs. LLM reasoning), covering primitives, flow of
control diagrams, a turn-by-turn example conversation with compiled
prompts and tool visibility, observability traces, and behavioral
observations about pipe-prefixed instructions.

Includes 4 diagrams/screenshots and a companion .agent file.
@salesforce-cla
Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @NikhilKGupta to sign the Salesforce Inc. Contributor License Agreement.

@elijahbenizzy elijahbenizzy merged commit 0228b7f into salesforce:main Apr 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add deep dive article on flow control and reasoning block behavior

2 participants