<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/python-sdk-v0-5-ai-pydantic-and-more-ko4bmlzbs" -->

---
title: Python SDK v0.5: AI, Pydantic, and more | daily.dev
description: Inngest's Python SDK v0.5 is now stable, adding first-class Pydantic support for step and function output, experimental AI orchestration via step.ai.infer...
canonical: https://daily.dev/posts/python-sdk-v0-5-ai-pydantic-and-more-ko4bmlzbs
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Python SDK v0.5: AI, Pydantic, and more | daily.dev
og:description: Inngest's Python SDK v0.5 is now stable, adding first-class Pydantic support for step and function output, experimental AI orchestration via step.ai.infer...
og:url: https://daily.dev/posts/python-sdk-v0-5-ai-pydantic-and-more-ko4bmlzbs
og:image: https://api.daily.dev/og/posts/kO4BmLZbs.png
og:image:alt: Python SDK v0.5: AI, Pydantic, and more
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Python SDK v0.5: AI, Pydantic, and more

**[Inngest Blog](https://daily.dev/sources/inngest)** · 3 min read · 0 upvotes · 0 comments

## Summary

Inngest's Python SDK v0.5 is now stable, adding first-class Pydantic support for step and function output, experimental AI orchestration via step.ai.infer matching the TypeScript SDK, a stabilized Connect API, Python 3.13 support (dropping 3.9), automatic event-sending retries with idempotency, function singletons, function timeouts, and up to 50% fewer requests for parallel steps. A migration guide covers breaking changes from v0.4.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.inngest.com/blog/2025-06-23-python-v0.5>

## Questions this post answers

### Does Inngest's Python SDK v0.5 still support Python 3.9?

No, Python 3.9 support was dropped in Inngest Python SDK v0.5, which adds support for Python 3.13 instead. Developers on Python 3.9 need to upgrade their runtime before adopting this SDK version, and a migration guide from v0.4 to v0.5 documents this and other breaking changes.

_Track breaking changes like Python version drops before upgrading a dependency on daily.dev._

### How do I return a Pydantic model from an Inngest step in Python?

Set the serializer on the Inngest client with inngest.PydanticSerializer(), then pass output_type=User to step.run or to the create_function decorator's output_type parameter. This makes the returned object a typed Pydantic model at both runtime and compile time, as introduced in Inngest Python SDK v0.5.

_Developers wiring type-safe validation into workflows can follow Pydantic integration patterns via daily.dev._

### How do I call an LLM from an Inngest Python function?

Use the experimental step.ai.infer method from inngest.experimental.ai, passing an adapter such as ai.anthropic.Adapter with an auth key and model name (for example claude-3-5-sonnet-latest) plus a request body. This AI orchestration feature in Inngest Python SDK v0.5 mirrors the existing TypeScript SDK API and is ready for production despite being experimental.

_daily.dev helps developers building AI-orchestrated workflows keep up with SDKs like this one._

## Similar posts on daily.dev

- [How to use AI to generate type-safe Python code that survives production](https://daily.dev/posts/how-to-use-ai-to-generate-type-safe-python-code-that-survives-production-vasuplwtd) · All Things Open · 1 upvotes · 0 comments
- [Azure SDK Release \(June 2026\)](https://daily.dev/posts/azure-sdk-release-june-2026--nsnrp9tj4) · DevBlogs · 0 upvotes · 0 comments
- [Building AI Agents in Python with Pydantic AI](https://daily.dev/posts/building-ai-agents-in-python-with-pydantic-ai-aj0aokeuz) · Machine Learning Mastery · 4 upvotes · 0 comments
- [AI SDK 7 is now available](https://daily.dev/posts/ai-sdk-7-is-now-available-iz9c3resl) · Vercel · 32 upvotes · 3 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#inngest](https://daily.dev/tags/inngest), [#pydantic](https://daily.dev/tags/pydantic), [#python](https://daily.dev/tags/python)

[View this post on daily.dev](https://daily.dev/posts/python-sdk-v0-5-ai-pydantic-and-more-ko4bmlzbs)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Python SDK v0.5: AI, Pydantic, and more","url":"https://daily.dev/posts/python-sdk-v0-5-ai-pydantic-and-more-ko4bmlzbs","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/python-sdk-v0-5-ai-pydantic-and-more-ko4bmlzbs"},"datePublished":"2026-09-13T19:57:08.017Z","dateModified":"2026-10-15T02:22:31.077Z","description":"Inngest's Python SDK v0.5 is now stable, adding first-class Pydantic support for step and function output, experimental AI orchestration via step.ai.infer...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c066df3cc16d26f4aed8ec7d009d0aaf?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c066df3cc16d26f4aed8ec7d009d0aaf?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Inngest Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Inngest Blog","logo":"https://media.daily.dev/image/upload/s--ieZKUa5y--/c_limit,w_256/f_auto,q_auto/v1789329423/logos/inngest?_a=BAMAMicg0","url":"https://daily.dev/sources/inngest"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/python-sdk-v0-5-ai-pydantic-and-more-ko4bmlzbs","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,inngest,pydantic,python","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Inngest Blog","item":"https://daily.dev/sources/inngest"},{"@type":"ListItem","position":3,"name":"Python SDK v0.5: AI, Pydantic, and more"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/python-sdk-v0-5-ai-pydantic-and-more-ko4bmlzbs#faq","mainEntity":[{"@type":"Question","name":"Does Inngest's Python SDK v0.5 still support Python 3.9?","acceptedAnswer":{"@type":"Answer","text":"No, Python 3.9 support was dropped in Inngest Python SDK v0.5, which adds support for Python 3.13 instead. Developers on Python 3.9 need to upgrade their runtime before adopting this SDK version, and a migration guide from v0.4 to v0.5 documents this and other breaking changes. Track breaking changes like Python version drops before upgrading a dependency on daily.dev."}},{"@type":"Question","name":"How do I return a Pydantic model from an Inngest step in Python?","acceptedAnswer":{"@type":"Answer","text":"Set the serializer on the Inngest client with inngest.PydanticSerializer(), then pass output_type=User to step.run or to the create_function decorator's output_type parameter. This makes the returned object a typed Pydantic model at both runtime and compile time, as introduced in Inngest Python SDK v0.5. Developers wiring type-safe validation into workflows can follow Pydantic integration patterns via daily.dev."}},{"@type":"Question","name":"How do I call an LLM from an Inngest Python function?","acceptedAnswer":{"@type":"Answer","text":"Use the experimental step.ai.infer method from inngest.experimental.ai, passing an adapter such as ai.anthropic.Adapter with an auth key and model name (for example claude-3-5-sonnet-latest) plus a request body. This AI orchestration feature in Inngest Python SDK v0.5 mirrors the existing TypeScript SDK API and is ready for production despite being experimental. daily.dev helps developers building AI-orchestrated workflows keep up with SDKs like this one."}}]}
```

