AIToday
Large Language ModelsSimon Willison's WeblogPublished: Apr 30, 2026, 07:00 JST

LLM 0.32a0 alpha refactors Python library to handle diverse input and output types via messages and typed streaming parts

Send on LINE
LLM 0.32a0 alpha refactors Python library to handle diverse input and output types via messages and typed streaming parts

3 Key Points

  1. Simon Willison released LLM 0.32a0 on 29th April 2026, an alpha version of his LLM Python library and CLI tool. The release introduces two key changes: model inputs can now be represented as a sequence of messages (matching the conversational turn format used by major vendor APIs), and model responses can be composed of a stream of differently typed parts rather than plain text.

  2. Previously, LLM modeled prompts and responses as simple text-in/text-out. The new interface supports feeding in previous conversations at the start using `model.prompt(messages=[user(...), assistant(...), ...])`, and responses can now stream mixed content types—reasoning output, text, JSON tool calls, tool outputs, and other formats—allowing the library to represent capabilities like OpenAI's code interpreter or Anthropic's web search.

  3. The CLI tool can now display "thinking" text in a different color from final response text, with thinking text sent to stderr so it does not affect piped results. The prior `prompt=` option still works but is upgraded to a single-item messages array behind the scenes.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Simon Willison's WeblogRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleJetBrains outlines 2026 IDE strategy: support for both classic coding and AI-agent workflows side by side, with multi-vendor AI support and Agent Client Protocol for external agents.