Skip to content

Add guide: Define Custom Backend Functions#105

Closed
caidobot wants to merge 1 commit intomainfrom
main-382e18c10d6834cf
Closed

Add guide: Define Custom Backend Functions#105
caidobot wants to merge 1 commit intomainfrom
main-382e18c10d6834cf

Conversation

@caidobot
Copy link
Copy Markdown
Contributor

Summary

Added a comprehensive how-to guide for backend SDK developers on how to define and register custom functions using the sdk.api.register() method.

What's new:

  • New guide: src/guides/backend_functions.md — A complete how-to guide covering:

    • Function registration patterns with type safety
    • Error handling and response patterns
    • Simple and advanced code examples
    • Best practices for backend function design
    • Integration with the frontend SDK
  • Updated src/guides sidebar configuration to organize custom functions guides under a "Custom Functions" subsection in Backend Guides

Gap Addressed

This guide addresses a documentation gap identified in the SDK surface analysis (backend SDK → custom API functions). It enables backend plugin developers to understand and implement custom function registration, a core backend SDK feature.

Related Documentation

  • SDK Reference: src/reference/sdks/backend/api/
  • Related Guide: "Call Custom Functions from Frontend"
  • Category: Backend SDK → Custom Functions

Generated by Doc-developer - Add Guides ·

Add a comprehensive how-to guide for backend plugin developers on defining and registering custom backend functions using sdk.api.register(). The guide covers:

- When and why to define custom backend functions
- Type safety patterns with DefineAPI
- Function registration and parameter handling
- Error handling and async operations
- Simple and advanced code examples
- Best practices for backend function design
- Cross-references to related guides

Also reorganize the Backend Guides sidebar section to include a new "Custom Functions" subsection that groups function definition and calling guides together.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@caidobot caidobot requested a review from Corb3nik as a code owner March 14, 2026 14:59
@caidobot caidobot temporarily deployed to main-382e18c10d6834cf - doc-developer PR #105 March 14, 2026 14:59 — with Render Destroyed
@Corb3nik
Copy link
Copy Markdown
Member

Already exists under a different article name.

@Corb3nik Corb3nik closed this Mar 14, 2026
@Corb3nik Corb3nik deleted the main-382e18c10d6834cf branch March 14, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants