Skip to content

Enhance AI documentation with best practices and tool calling guidance - #490

Draft
Devon-White wants to merge 28 commits into
mainfrom
Devon/ai-tool-guide
Draft

Enhance AI documentation with best practices and tool calling guidance#490
Devon-White wants to merge 28 commits into
mainfrom
Devon/ai-tool-guide

Conversation

@Devon-White

@Devon-White Devon-White commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Restructures the AI platform section around tool calling and production best practices. Closes #489.

What changed

  • New guide: Tool calling (/ai/tool-calling) — the mental model (the AI agent is the front end, your code owns the business logic), how a SWAIG function works, a complete order-status agent in SWML and the Python Server SDK, and five patterns for reliable SWAIG functions.
  • Rewrote Best practices (/ai/best-practices) — restructured around the prompt/code split, writing for real-time voice (end-pointing and turnaround), speech-recognition hints, testing and monitoring with post-prompt reports, and TCPA compliance, ending with a complete worked example that shows the request/response exchange.
  • AI overview — renamed the Agents SDK section to Server SDKs, added a "How does it work?" section with a theme-paired light/dark flow diagram (SVG pair + CSS-only .light-only/.dark-only rules in styles.css).
  • Capabilities — added "Ways to build AI agents" cards and an "AI in the media path" section explaining the single-engine architecture and what it does for response time.
  • Prompt engineering pages — cross-linked to the tool calling guide, fixed stale /docs/swml/reference/ai paths, standardized "Next steps" sections.
  • Completed the "Agents SDK" → "Server SDKs" rename across platform, server-sdks, and SWML pages.
  • Removed the now-orphaned ai-agent.svg.

- Added "max-toc-depth" to best practices and index pages for improved navigation.
- Expanded best practices section with insights on over-prompting and examples.
- Introduced a new "Next steps" section in best practices and index pages linking to relevant resources.
- Updated references to tool calling in various documents to ensure consistency and clarity.
- Created a comprehensive guide on tool calling, detailing its importance and implementation in AI agents.
- Improved descriptions and links in existing AI documentation for better user understanding.
@Devon-White Devon-White linked an issue Jul 20, 2026 that may be closed by this pull request
@github-actions

github-actions Bot commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Devon-White and others added 17 commits July 20, 2026 14:26
- Replace ai-agent.svg with light/dark ai-agent-flow SVG pair using the
  CSS-only .light-only/.dark-only pattern in styles.css
- Convert capabilities build-methods prose to a CardGroup
- Use docstring-driven tool definition in the drive-thru example so the
  inferred schema keeps the parameter description; add required to the
  SWML variant for parity
- Trim aphorisms: reword menu-liability line, drop the duplicated
  suggestion/constraint line from best practices
- Fix stale /docs/swml/reference/ai link in the overview use cases
- Updated the "No-code agent" guide to enhance clarity and improve structure.
- Removed unnecessary elements and streamlined instructions for creating AI agents.
- Revised "Best practices for creating a SignalWire AI agent" to remove author metadata and improve focus on content.
- Enhanced "Prompt engineering best practices" with clearer language and better organization.
- Improved "Prompt engineering" overview to emphasize clarity and structure in prompt writing.
- Clarified the "Where to apply prompt engineering" guide, ensuring better understanding of prompt areas.
- Revised "AI overview" to emphasize the capabilities of SignalWire AI and streamline the quickstart instructions.
- Updated "Getting started" documentation for better flow and clarity, including clearer distinctions between SDKs and approaches.
@fern-api

fern-api Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Requested by: Devon White
Slack thread: View conversation

Single theme-aware AI flow diagram SVG
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.

Rewrite/overhaul AI conceptual guides

1 participant