Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesOpenAI API from A to ZPatterns: designing reliable functions
Retries after a 429 error: each pause is twice as long, then successA workflow map: a Telegram message branches into command, voice and text and reaches the agentA form request lands in a spreadsheet row labelled “Complaint”
Course

OpenAI API from A to Z

Module 1 · API Basics
01SDK install and first call02Choosing an OpenAI model03Tokens, context, and cost
Module 2 · Chat Completions
04Developer messages, reasoning effort and sampling parameters05Structured Outputs and JSON Schema06Multimodality: vision, speech-to-text and voice
Module 3 · Assistants API v2
07From Assistants to Responses: conversation memory08File Search and vector store09Code Interpreter10Combining tools and tool_choice
Module 4 · Function Calling
11Function calling: the full cycle12Parallel function calls13Patterns: designing reliable functions
Module 5 · Production
14Streaming responses15Embeddings and semantic search16Production: limits, retries, monitoring
OpenAI API from A to Z · Lesson 13

Patterns: designing reliable functions

get_weather, search_database, send_email — how to write description and parameters so the model calls them correctly.

24 min readUpdated Dec 2, 20263 questions in quizReady prompt included
🔒

Full lesson access

Patterns: designing reliable functions opens after free sign-up: 7 days of full access to every course, no card needed.

Start 7-day free trial
Then Pro: $9/mo or $79/yr

View plans →

One trial lesson is open without sign-up: what a large language model is →

In this lesson
The description decides everythingPattern 1: getweather (reading data)Pattern 2: searchdatabase (search)Pattern 3: sendemail (action with a side effect)General design rulesPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free