{"id":14910,"date":"2026-10-12T21:18:42","date_gmt":"2026-10-12T21:18:42","guid":{"rendered":"https:\/\/www.prepaway.com\/certification\/?p=14910"},"modified":"2026-10-12T21:18:42","modified_gmt":"2026-10-12T21:18:42","slug":"microsoft-ai-901-prompts-python-chat-client","status":"publish","type":"post","link":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/","title":{"rendered":"Microsoft AI-901: Prompt Design and Python Chat Client Labs"},"content":{"rendered":"<nav aria-label=\"Breadcrumb\" class=\"article-breadcrumbs\"><a href=\"\/certification\/\">Home<\/a><span>\/<\/span><a href=\"\/certification\/certifications\/\">Certifications<\/a><span>\/<\/span><a href=\"\/certification\/certifications\/microsoft\/\">Microsoft<\/a><span>\/<\/span><span>Microsoft AI-901: Prompt Design and Python Chat Client Labs<\/span><\/nav>\n\n<div class=\"editorial-article-shell\"><div class=\"editorial-article-main\">\n<div class=\"article-kicker-row\"><a class=\"article-kicker\" href=\"https:\/\/www.prepaway.com\/certification\/category\/technology\/ai-machine-learning\/\">AI &amp; Machine Learning<\/a><span class=\"article-meta\">Updated October 13, 2026 \u00b7 8 min read<\/span><\/div>\n<p class=\"article-deck\">A beginner can make a model answer a question in a portal without understanding how to reproduce the result in an application. This guide creates one small prompt contract, compares a revision against evidence, and translates the request to a version-pinned Python client for the correct Microsoft Foundry endpoint. It also tests refusals, throttling and structured output. The goal is a recoverable exercise grounded in the AI-901 objectives, not a library snippet that claims to work with every SDK generation.<\/p>\n<details class=\"article-toc\" open=\"\"><summary>On this page<\/summary><ol>\n<li><a href=\"#start-with-a-narrow-testable-prompt-contract\">Start with a narrow, testable prompt contract<\/a><\/li>\n<li><a href=\"#keep-trusted-instructions-separate-from-source-data\">Keep trusted instructions separate from source data<\/a><\/li>\n<li><a href=\"#test-one-meaningful-prompt-revision\">Test one meaningful prompt revision<\/a><\/li>\n<li><a href=\"#select-a-supported-python-client-contract\">Select a supported Python client contract<\/a><\/li>\n<li><a href=\"#authenticate-without-embedding-secrets\">Authenticate without embedding secrets<\/a><\/li>\n<li><a href=\"#validate-the-final-response-and-its-evidence\">Validate the final response and its evidence<\/a><\/li>\n<li><a href=\"#handle-streaming-timeouts-and-throttling-conservatively\">Handle streaming, timeouts and throttling conservatively<\/a><\/li>\n<li><a href=\"#turn-the-lab-into-a-reproducible-learning-artifact\">Turn the lab into a reproducible learning artifact<\/a><\/li>\n<\/ol><\/details>\n<article class=\"corrected-editorial-body\">\n<h2 id=\"start-with-a-narrow-testable-prompt-contract\">Start with a narrow, testable prompt contract<\/h2>\n<p>Write a short public troubleshooting note and define a task such as extracting the affected service, observed error and permitted next diagnostic step. The source note should contain one warning the answer must not omit. Record what an acceptable answer looks like before asking the model. An instruction like \u201cgive a great answer\u201d cannot be audited; a contract naming source-grounded facts and allowable missing values can. The prompt should not authorize changes to external systems or ask the model to invent a missing status.<\/p>\n<p>Add a negative note that contains no supported answer to a question. The correct response is a transparent lack-of-evidence statement, not a plausible guessed repair. Test whether a long user message or another document paragraph changes the outcome. A model that follows instructions closely may still hallucinate details when the source is insufficient; therefore the evidence and parsing checks belong outside the model\u2019s words. Keep the initial draft response for comparison rather than replacing it without a record.<\/p>\n<p>Write a fixture file containing three fields: source ID, source text and expected warning. Parse it as data instead of embedding the expected answer into the prompt. In one case, the warning is absent; a correct model should avoid inventing it. If the test harness accepts any nonempty response, it has no meaningful ability to judge correctness. Require an exact source identifier and compare the returned warning with the fixture. This simple discipline scales better than manually applauding whichever response reads most naturally.<\/p>\n<h2 id=\"keep-trusted-instructions-separate-from-source-data\">Keep trusted instructions separate from source data<\/h2>\n<p>A prompt has distinct layers: stable application rules, the user\u2019s actual task and lower-trust contextual material. A retrieved page or uploaded document can contain text such as \u201cignore previous instructions\u201d; this is information to process, not authority over the application. Clearly delimit sourced passages and validate which documents the user can access before including them. Do not grant a tool permission simply because a retrieved sentence requests it.<\/p>\n<p>Build two examples with the same legitimate task: one contains a neutral troubleshooting note, while the other embeds a malicious instruction in an attached paragraph. Inspect not just the final prose but whether the assistant attempted to call a tool or reveal a prohibited value. Tool-layer authorization remains mandatory even when a model refuses the instruction during a test. At AI-901 level, the learner should recognize the trust boundary and explain why an instruction-only defense is insufficient.<\/p>\n<h2 id=\"test-one-meaningful-prompt-revision\">Test one meaningful prompt revision<\/h2>\n<p>Try a prompt that merely asks for a summary and one that explicitly requires facts supported by the note, a concise warning and an uncertainty field. Hold the model deployment and source constant. Evaluate the results for required facts, fabricated claims, incorrect advice, and output-format compliance. Shorter text is not automatically better if it removes a safety qualification. If both versions fail, investigate the source and task definition instead of layering repetitive instructions into the prompt.<\/p>\n<p>Use a small comparison table with question ID, expected source evidence, version A result, version B result and reviewer rationale. The evaluator should be able to see which statement the note actually supports. If the model returns a convincing explanation without the crucial warning, label it as an omission; if it cites the wrong document, label source selection separately. This is a more useful learning result than choosing the prompt whose prose sounds more confident.<\/p>\n<h2 id=\"select-a-supported-python-client-contract\">Select a supported Python client contract<\/h2>\n<p>Follow the SDK version and endpoint type documented by Microsoft for your specific Foundry project or compatible inference resource. Some examples use a project client while others use an OpenAI-compatible inference client; methods and response shapes can differ. Pin package versions in a dependency file and record the resource endpoint, deployment name and API version where applicable. Avoid copying constructor parameters across different generations of examples. The deployment identifier routes your call; it is not always interchangeable with the model family label.<\/p>\n<p>For a basic request, use a <a href=\"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-foundry-model-selection-deployment\/\">previously verified model deployment<\/a> and a non-sensitive test message. The Python function should create or reuse a client following documented lifecycle rules, obtain an authorized credential, send a bounded request, and return a typed success or error state. Treat returned content as untrusted structured data until validated. If a response object contains a refusal or no usable message, display that state rather than indexing a nonexistent text field.<\/p>\n<p>A frequent migration mistake is copying a project-client example into an application that actually uses an OpenAI-compatible inference endpoint. The import may succeed while method names, authentication or returned fields remain incompatible. Save the installed package versions and print only safe, non-secret configuration identifiers at startup. Build one fake-client test that returns a refusal object and another that returns no text. The application should turn both into truthful typed states rather than raising an unexpected index error or claiming an empty answer is a successful completion.<\/p>\n<h2 id=\"authenticate-without-embedding-secrets\">Authenticate without embedding secrets<\/h2>\n<p>Use an approved Microsoft Entra identity where supported, with a credential chain appropriate to local development and a managed identity for supported hosted workloads. Give the caller only the roles required to invoke its deployment and any separately authorized data source. Keep the authenticated principal, token audience and resource scope in your setup notes. A credential that works in a portal session is not proof that a deployed workload has equivalent permissions.<\/p>\n<p>Run a smoke test with an authorized principal and an intentionally denied principal. The application should distinguish invalid credentials, missing roles and network reachability. Never solve the exercise by exposing the API key in logs, embedding it in a notebook or assigning broad subscription owner permissions. Save sanitized error identifiers and correlation IDs, but not raw tokens or private prompts. This is a basic security practice with direct exam relevance and enduring value beyond it.<\/p>\n<h2 id=\"validate-the-final-response-and-its-evidence\">Validate the final response and its evidence<\/h2>\n<p>Test whether the returned content contains the expected fields, acceptable values and source references. For structured outputs, use supported response-format controls when the deployment provides them and validate again in Python. An apparently valid JSON object might still invent an incident ID or omit a warning. Convert the response into a stable application schema with explicit success, partial, refused and failed states rather than assuming every request produces exactly one text string.<\/p>\n<p>If a user asks for a numeric result, verify that the output uses consistent units and comes from the supplied evidence. Do not allow the model to approve a payment, ticket closure or external message through its generated prose. For an information-only lab, write the validated result to a small local test file and include the model and prompt revision. Repeat the same fixture after any SDK or deployment change so a seemingly harmless package upgrade cannot silently alter response interpretation.<\/p>\n<p>For a structured case, require issue_type to be one of three approved strings, observed_system to come from the source paragraph, and next_action to be either a documented safe step or unknown. Test an extra field named administrator_override; the parser must not treat it as a privilege even if the model invents it. Also include a malformed date. The application can reject the record, ask for clarification or display a review warning, but it should not silently coerce unsupported values into an apparently complete business record.<\/p>\n<h2 id=\"handle-streaming-timeouts-and-throttling-conservatively\">Handle streaming, timeouts and throttling conservatively<\/h2>\n<p>Streaming can deliver provisional fragments that improve perceived responsiveness, but a partial message is not a confirmed action or complete structured record. Buffer and validate terminal output before handing it to a downstream system. Document what happens if the connection drops midstream, if the user cancels or if the server returns a recoverable rate-limit response. An inference call and a state-changing tool may have completely different retry safety.<\/p>\n<p>Choose a finite deadline and bounded backoff for transient errors; do not retry a permission denial or schema error indefinitely. Correlate attempts with a stable request identifier where supported and record cost and latency for completed, rejected and failed cases separately. Testing a 429 response with a mock is useful when a free training environment cannot reliably reproduce a quota event. State clearly when a result came from a mock rather than an actual Foundry endpoint.<\/p>\n<p>Simulate a stream interrupted immediately after the model begins a JSON object. A UI may show partial words for convenience, but the application must not write the malformed object as a finished result. Next simulate a transient timeout after a read-only query and a timeout after a hypothetical outbound action. The latter cannot safely be replayed without checking authoritative state. Mark which test uses a mock service and which reached the actual model deployment. This is a better lesson than claiming every retry automatically improves reliability.<\/p>\n<h2 id=\"turn-the-lab-into-a-reproducible-learning-artifact\">Turn the lab into a reproducible learning artifact<\/h2>\n<p>Your deliverable is a small manifest, minimal version-pinned script, two public test inputs, expected output contracts and sanitized execution results. The run instructions should name the endpoint class, deployment configuration, principal permissions and how to install the pinned dependencies. A colleague using another authorized tenant should be able to identify which configuration needs changing rather than editing prompt text to fix authentication.<\/p>\n<p>Finally compare the client result to the original portal output. Explain variations in formatting or behavior without pretending that two stochastic requests must be byte-identical. Revisit <a href=\"https:\/\/learn.microsoft.com\/en-us\/credentials\/certifications\/resources\/study-guides\/ai-901\" rel=\"nofollow\">Microsoft\u2019s AI-901 implementation objectives<\/a> and mark exactly which steps the lab demonstrates. Passing this exercise means you can choose, invoke and evaluate a simple deployed model and diagnose safe failures\u2014not that you built a production retrieval or agent platform.<\/p>\n<\/article>\n<section class=\"article-related\"><div class=\"article-section-heading\"><p class=\"article-section-eyebrow\">Continue learning<\/p><h2>Related guides<\/h2><\/div><div class=\"article-related-grid\">\n<a href=\"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-foundry-model-selection-deployment\/\"><strong>AI-901 Foundry Deployment<\/strong><span>Select the correct model deployment and endpoint.<\/span><\/a>\n<a href=\"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-first-foundry-agent-tools\/\"><strong>AI-901 First Foundry Agent<\/strong><span>Add bounded tools only after basic inference is safe.<\/span><\/a>\n<a href=\"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-exam-guide-skills-practical-preparation\/\"><strong>AI-901 Exam Guide<\/strong><span>Compare the lab with the full skills outline.<\/span><\/a>\n<\/div><\/section>\n<\/div><aside aria-label=\"Browse topics\" class=\"topic-nav-panel article-topic-nav pa-unified-topic-nav\"><h2 class=\"topic-nav-title\">Browse Topics<\/h2>\n<details class=\"topic-group\" open>\n\n<summary><span>Certifications<small>Vendor and credential guides<\/small><\/span><\/summary><div class=\"topic-group-body\"><a class=\"topic-view-all\" href=\"\/certification\/category\/certifications\/\">View all Certifications \u2192<\/a><a href=\"\/certification\/category\/certifications\/microsoft\/\">Microsoft<\/a><a href=\"\/certification\/category\/certifications\/amazon\/\">Amazon<\/a><a href=\"\/certification\/category\/certifications\/comptia\/\">CompTIA<\/a><a href=\"\/certification\/category\/certifications\/cisco\/\">Cisco<\/a><a href=\"\/certification\/category\/certifications\/project-management\/\">Project Management<\/a><a href=\"\/certification\/category\/certifications\/google\/\">Google<\/a><a href=\"\/certification\/category\/certifications\/isc2\/\">ISC2<\/a><a href=\"\/certification\/category\/certifications\/fortinet\/\">Fortinet<\/a><a href=\"\/certification\/category\/certifications\/isaca\/\">ISACA<\/a><a href=\"\/certification\/category\/certifications\/databricks\/\">Databricks<\/a><a href=\"\/certification\/category\/certifications\/servicenow\/\">ServiceNow<\/a><a href=\"\/certification\/category\/certifications\/anthropic\/\">Anthropic<\/a><a href=\"\/certification\/category\/certifications\/ec-council\/\">EC-Council<\/a><a href=\"\/certification\/category\/certifications\/palo-alto-networks\/\">Palo Alto Networks<\/a><a href=\"\/certification\/category\/certifications\/linux-foundation\/\">Linux Foundation<\/a><a href=\"\/certification\/category\/certifications\/vmware\/\">VMware<\/a><a href=\"\/certification\/category\/certifications\/itil\/\">ITIL<\/a><a href=\"\/certification\/category\/certifications\/hpe-aruba\/\">HPE \/ Aruba<\/a><a href=\"\/certification\/category\/certifications\/check-point\/\">Check Point<\/a><a href=\"\/certification\/category\/certifications\/hashicorp\/\">HashiCorp<\/a><a href=\"\/certification\/category\/certifications\/acams\/\">ACAMS<\/a><a href=\"\/certification\/category\/certifications\/the-open-group\/\">The Open Group<\/a><a href=\"\/certification\/category\/certifications\/iapp\/\">IAPP<\/a><a href=\"\/certification\/category\/certifications\/nvidia\/\">NVIDIA<\/a><a href=\"\/certification\/category\/certifications\/netapp\/\">NetApp<\/a><\/div>\n\n<\/details>\n<details class=\"topic-group\">\n\n<summary><span>Technology<small>AI, cloud, security and data<\/small><\/span><\/summary><div class=\"topic-group-body\"><a class=\"topic-view-all\" href=\"\/certification\/category\/technology\/\">View all Technology \u2192<\/a><a href=\"\/certification\/category\/technology\/cybersecurity\/\">Cybersecurity<\/a><a href=\"\/certification\/category\/technology\/data\/\">Data &amp; Analytics<\/a><a href=\"\/certification\/category\/technology\/ai-machine-learning\/\">AI &amp; Machine Learning<\/a><a href=\"\/certification\/category\/technology\/networking\/\">Networking<\/a><a href=\"\/certification\/category\/technology\/cloud\/\">Cloud &amp; Architecture<\/a><a href=\"\/certification\/category\/technology\/it-operations-service-management\/\">IT Operations &amp; Service Management<\/a><a href=\"\/certification\/category\/technology\/programming\/\">Programming &amp; Development<\/a><a href=\"\/certification\/category\/technology\/systems-infrastructure\/\">Systems &amp; Infrastructure<\/a><a href=\"\/certification\/category\/technology\/devops\/\">DevOps &amp; Automation<\/a><a href=\"\/certification\/category\/technology\/enterprise-architecture\/\">Enterprise Architecture<\/a><a href=\"\/certification\/category\/technology\/software\/\">Software<\/a><\/div>\n\n<\/details>\n<details class=\"topic-group\">\n\n<summary><span>College Test Prep<small>College exams and study plans<\/small><\/span><\/summary><div class=\"topic-group-body\"><a class=\"topic-view-all\" href=\"\/certification\/category\/college-test-prep\/\">View all Test Prep \u2192<\/a><a href=\"\/certification\/category\/college-test-prep\/gmat\/\">GMAT<\/a><a href=\"\/certification\/category\/college-test-prep\/mcat\/\">MCAT<\/a><a href=\"\/certification\/category\/college-test-prep\/sat\/\">SAT<\/a><a href=\"\/certification\/category\/college-test-prep\/act\/\">ACT<\/a><a href=\"\/certification\/category\/college-test-prep\/asvab\/\">ASVAB<\/a><a href=\"\/certification\/category\/college-test-prep\/psat\/\">PSAT<\/a><a href=\"\/certification\/category\/college-test-prep\/teas\/\">TEAS<\/a><a href=\"\/certification\/category\/college-test-prep\/lsat\/\">LSAT<\/a><\/div>\n\n<\/details>\n<details class=\"topic-group\">\n\n<summary><span>Career<small>Roles, skills and job search<\/small><\/span><\/summary><div class=\"topic-group-body\"><a class=\"topic-view-all\" href=\"\/certification\/category\/career\/\">View all Career \u2192<\/a><a href=\"\/certification\/category\/career\/career-guides\/\">Career Guides<\/a><a href=\"\/certification\/category\/career\/salaries-roles\/\">Salaries &amp; Roles<\/a><a href=\"\/certification\/category\/career\/job-search\/\">Job Search<\/a><\/div>\n\n<\/details>\n<details class=\"topic-group\">\n\n<summary><span>Governance &amp; Compliance<small>Risk, privacy and audit<\/small><\/span><\/summary><div class=\"topic-group-body\"><a class=\"topic-view-all\" href=\"\/certification\/category\/governance-compliance\/\">View all Governance &amp; Compliance \u2192<\/a><a href=\"\/certification\/category\/governance-compliance\/security-governance-audit\/\">Security Governance &amp; Audit<\/a><a href=\"\/certification\/category\/governance-compliance\/ai-governance-privacy\/\">AI Governance &amp; Privacy<\/a><a href=\"\/certification\/category\/governance-compliance\/anti-money-laundering\/\">Anti-Money Laundering<\/a><\/div>\n\n<\/details>\n<\/aside><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Home\/Certifications\/Microsoft\/Microsoft AI-901: Prompt Design and Python Chat Client Labs AI &amp; Machine LearningUpdated October 13, 2026 \u00b7 8 min read A beginner can make a model answer a question in a portal without understanding how to reproduce the result in an application. This guide creates one small prompt contract, compares a revision against evidence, and translates the request to a version-pinned Python client for the correct Microsoft Foundry endpoint. It also tests refusals, throttling and structured output. The goal is a recoverable exercise grounded in the AI-901 objectives, not a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2226,2182],"tags":[],"class_list":["post-14910","post","type-post","status-publish","format-standard","hentry","category-ai-machine-learning","category-microsoft"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Home\/Certifications\/Microsoft\/Microsoft AI-901: Prompt Design and Python Chat Client Labs AI &amp; Machine LearningUpdated October 13, 2026 \u00b7 8 min read A beginner can make a model answer a question in a portal without understanding how to reproduce the result in an application. This guide creates one small prompt contract, compares a revision against evidence, and\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"admin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"PrepAway - Fastest Way to Pass IT Certification Exams - PrepAway\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Microsoft AI-901: Prompt Design and Python Chat Client Labs - PrepAway\" \/>\n\t\t<meta property=\"og:description\" content=\"Home\/Certifications\/Microsoft\/Microsoft AI-901: Prompt Design and Python Chat Client Labs AI &amp; Machine LearningUpdated October 13, 2026 \u00b7 8 min read A beginner can make a model answer a question in a portal without understanding how to reproduce the result in an application. This guide creates one small prompt contract, compares a revision against evidence, and\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.prepaway.com\/certification\/wp-content\/uploads\/2017\/12\/logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.prepaway.com\/certification\/wp-content\/uploads\/2017\/12\/logo.png\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-10-12T21:18:42+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-12T21:18:42+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Microsoft AI-901: Prompt Design and Python Chat Client Labs - PrepAway\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Home\/Certifications\/Microsoft\/Microsoft AI-901: Prompt Design and Python Chat Client Labs AI &amp; Machine LearningUpdated October 13, 2026 \u00b7 8 min read A beginner can make a model answer a question in a portal without understanding how to reproduce the result in an application. This guide creates one small prompt contract, compares a revision against evidence, and\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.prepaway.com\/certification\/wp-content\/uploads\/2017\/12\/logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#blogposting\",\"name\":\"Microsoft AI-901: Prompt Design and Python Chat Client Labs - PrepAway\",\"headline\":\"Microsoft AI-901: Prompt Design and Python Chat Client Labs\",\"author\":{\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/author\\\/admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/logo.png\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/#articleImage\",\"width\":186,\"height\":38},\"datePublished\":\"2026-10-12T21:18:42+00:00\",\"dateModified\":\"2026-10-12T21:18:42+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#webpage\"},\"articleSection\":\"AI &amp; Machine Learning, Microsoft\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/category\\\/certifications\\\/#listItem\",\"name\":\"Certifications\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/category\\\/certifications\\\/#listItem\",\"position\":2,\"name\":\"Certifications\",\"item\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/category\\\/certifications\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/category\\\/certifications\\\/microsoft\\\/#listItem\",\"name\":\"Microsoft\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/category\\\/certifications\\\/microsoft\\\/#listItem\",\"position\":3,\"name\":\"Microsoft\",\"item\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/category\\\/certifications\\\/microsoft\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#listItem\",\"name\":\"Microsoft AI-901: Prompt Design and Python Chat Client Labs\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/category\\\/certifications\\\/#listItem\",\"name\":\"Certifications\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#listItem\",\"position\":4,\"name\":\"Microsoft AI-901: Prompt Design and Python Chat Client Labs\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/category\\\/certifications\\\/microsoft\\\/#listItem\",\"name\":\"Microsoft\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/#organization\",\"name\":\"PrepAway Certification\",\"description\":\"Fastest Way to Pass IT Certification Exams - PrepAway\",\"url\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/wp-content\\\/uploads\\\/2017\\\/12\\\/logo.png\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#organizationLogo\",\"width\":186,\"height\":38},\"image\":{\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/author\\\/admin\\\/#author\",\"url\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/author\\\/admin\\\/\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/69b3eaeff2d2bf70759f8c56ad9a52614771e4f88b2806c16f0a25cc297f9267?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#webpage\",\"url\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/\",\"name\":\"Microsoft AI-901: Prompt Design and Python Chat Client Labs - PrepAway\",\"description\":\"Home\\\/Certifications\\\/Microsoft\\\/Microsoft AI-901: Prompt Design and Python Chat Client Labs AI & Machine LearningUpdated October 13, 2026 \\u00b7 8 min read A beginner can make a model answer a question in a portal without understanding how to reproduce the result in an application. This guide creates one small prompt contract, compares a revision against evidence, and\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/microsoft-ai-901-prompts-python-chat-client\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/author\\\/admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/author\\\/admin\\\/#author\"},\"datePublished\":\"2026-10-12T21:18:42+00:00\",\"dateModified\":\"2026-10-12T21:18:42+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/#website\",\"url\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/\",\"name\":\"PrepAway Certification\",\"description\":\"Fastest Way to Pass IT Certification Exams - PrepAway\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.prepaway.com\\\/certification\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Microsoft AI-901: Prompt Design and Python Chat Client Labs - PrepAway","description":"Home\/Certifications\/Microsoft\/Microsoft AI-901: Prompt Design and Python Chat Client Labs AI & Machine LearningUpdated October 13, 2026 \u00b7 8 min read A beginner can make a model answer a question in a portal without understanding how to reproduce the result in an application. This guide creates one small prompt contract, compares a revision against evidence, and","canonical_url":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#blogposting","name":"Microsoft AI-901: Prompt Design and Python Chat Client Labs - PrepAway","headline":"Microsoft AI-901: Prompt Design and Python Chat Client Labs","author":{"@id":"https:\/\/www.prepaway.com\/certification\/author\/admin\/#author"},"publisher":{"@id":"https:\/\/www.prepaway.com\/certification\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.prepaway.com\/certification\/wp-content\/uploads\/2017\/12\/logo.png","@id":"https:\/\/www.prepaway.com\/certification\/#articleImage","width":186,"height":38},"datePublished":"2026-10-12T21:18:42+00:00","dateModified":"2026-10-12T21:18:42+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#webpage"},"isPartOf":{"@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#webpage"},"articleSection":"AI &amp; Machine Learning, Microsoft"},{"@type":"BreadcrumbList","@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.prepaway.com\/certification\/#listItem","position":1,"name":"Home","item":"https:\/\/www.prepaway.com\/certification\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.prepaway.com\/certification\/category\/certifications\/#listItem","name":"Certifications"}},{"@type":"ListItem","@id":"https:\/\/www.prepaway.com\/certification\/category\/certifications\/#listItem","position":2,"name":"Certifications","item":"https:\/\/www.prepaway.com\/certification\/category\/certifications\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.prepaway.com\/certification\/category\/certifications\/microsoft\/#listItem","name":"Microsoft"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.prepaway.com\/certification\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.prepaway.com\/certification\/category\/certifications\/microsoft\/#listItem","position":3,"name":"Microsoft","item":"https:\/\/www.prepaway.com\/certification\/category\/certifications\/microsoft\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#listItem","name":"Microsoft AI-901: Prompt Design and Python Chat Client Labs"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.prepaway.com\/certification\/category\/certifications\/#listItem","name":"Certifications"}},{"@type":"ListItem","@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#listItem","position":4,"name":"Microsoft AI-901: Prompt Design and Python Chat Client Labs","previousItem":{"@type":"ListItem","@id":"https:\/\/www.prepaway.com\/certification\/category\/certifications\/microsoft\/#listItem","name":"Microsoft"}}]},{"@type":"Organization","@id":"https:\/\/www.prepaway.com\/certification\/#organization","name":"PrepAway Certification","description":"Fastest Way to Pass IT Certification Exams - PrepAway","url":"https:\/\/www.prepaway.com\/certification\/","logo":{"@type":"ImageObject","url":"https:\/\/www.prepaway.com\/certification\/wp-content\/uploads\/2017\/12\/logo.png","@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#organizationLogo","width":186,"height":38},"image":{"@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.prepaway.com\/certification\/author\/admin\/#author","url":"https:\/\/www.prepaway.com\/certification\/author\/admin\/","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/69b3eaeff2d2bf70759f8c56ad9a52614771e4f88b2806c16f0a25cc297f9267?s=96&d=mm&r=g","width":96,"height":96,"caption":"admin"}},{"@type":"WebPage","@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#webpage","url":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/","name":"Microsoft AI-901: Prompt Design and Python Chat Client Labs - PrepAway","description":"Home\/Certifications\/Microsoft\/Microsoft AI-901: Prompt Design and Python Chat Client Labs AI & Machine LearningUpdated October 13, 2026 \u00b7 8 min read A beginner can make a model answer a question in a portal without understanding how to reproduce the result in an application. This guide creates one small prompt contract, compares a revision against evidence, and","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.prepaway.com\/certification\/#website"},"breadcrumb":{"@id":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/#breadcrumblist"},"author":{"@id":"https:\/\/www.prepaway.com\/certification\/author\/admin\/#author"},"creator":{"@id":"https:\/\/www.prepaway.com\/certification\/author\/admin\/#author"},"datePublished":"2026-10-12T21:18:42+00:00","dateModified":"2026-10-12T21:18:42+00:00"},{"@type":"WebSite","@id":"https:\/\/www.prepaway.com\/certification\/#website","url":"https:\/\/www.prepaway.com\/certification\/","name":"PrepAway Certification","description":"Fastest Way to Pass IT Certification Exams - PrepAway","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.prepaway.com\/certification\/#organization"}}]},"og:locale":"en_US","og:site_name":"PrepAway - Fastest Way to Pass IT Certification Exams - PrepAway","og:type":"article","og:title":"Microsoft AI-901: Prompt Design and Python Chat Client Labs - PrepAway","og:description":"Home\/Certifications\/Microsoft\/Microsoft AI-901: Prompt Design and Python Chat Client Labs AI &amp; Machine LearningUpdated October 13, 2026 \u00b7 8 min read A beginner can make a model answer a question in a portal without understanding how to reproduce the result in an application. This guide creates one small prompt contract, compares a revision against evidence, and","og:url":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/","og:image":"https:\/\/www.prepaway.com\/certification\/wp-content\/uploads\/2017\/12\/logo.png","og:image:secure_url":"https:\/\/www.prepaway.com\/certification\/wp-content\/uploads\/2017\/12\/logo.png","article:published_time":"2026-10-12T21:18:42+00:00","article:modified_time":"2026-10-12T21:18:42+00:00","twitter:card":"summary_large_image","twitter:title":"Microsoft AI-901: Prompt Design and Python Chat Client Labs - PrepAway","twitter:description":"Home\/Certifications\/Microsoft\/Microsoft AI-901: Prompt Design and Python Chat Client Labs AI &amp; Machine LearningUpdated October 13, 2026 \u00b7 8 min read A beginner can make a model answer a question in a portal without understanding how to reproduce the result in an application. This guide creates one small prompt contract, compares a revision against evidence, and","twitter:image":"https:\/\/www.prepaway.com\/certification\/wp-content\/uploads\/2017\/12\/logo.png"},"aioseo_meta_data":{"post_id":"14910","title":null,"description":null,"keywords":null,"keyphrases":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2026-10-12 21:52:50","updated":"2026-10-12 21:52:50","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.prepaway.com\/certification\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.prepaway.com\/certification\/category\/certifications\/\" title=\"Certifications\">Certifications<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.prepaway.com\/certification\/category\/certifications\/microsoft\/\" title=\"Microsoft\">Microsoft<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tMicrosoft AI-901: Prompt Design and Python Chat Client Labs\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.prepaway.com\/certification\/"},{"label":"Certifications","link":"https:\/\/www.prepaway.com\/certification\/category\/certifications\/"},{"label":"Microsoft","link":"https:\/\/www.prepaway.com\/certification\/category\/certifications\/microsoft\/"},{"label":"Microsoft AI-901: Prompt Design and Python Chat Client Labs","link":"https:\/\/www.prepaway.com\/certification\/microsoft-ai-901-prompts-python-chat-client\/"}],"_links":{"self":[{"href":"https:\/\/www.prepaway.com\/certification\/wp-json\/wp\/v2\/posts\/14910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prepaway.com\/certification\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prepaway.com\/certification\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prepaway.com\/certification\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prepaway.com\/certification\/wp-json\/wp\/v2\/comments?post=14910"}],"version-history":[{"count":1,"href":"https:\/\/www.prepaway.com\/certification\/wp-json\/wp\/v2\/posts\/14910\/revisions"}],"predecessor-version":[{"id":14919,"href":"https:\/\/www.prepaway.com\/certification\/wp-json\/wp\/v2\/posts\/14910\/revisions\/14919"}],"wp:attachment":[{"href":"https:\/\/www.prepaway.com\/certification\/wp-json\/wp\/v2\/media?parent=14910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prepaway.com\/certification\/wp-json\/wp\/v2\/categories?post=14910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prepaway.com\/certification\/wp-json\/wp\/v2\/tags?post=14910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}