33 releases (breaking)

new 0.26.0 May 12, 2026
0.24.0 May 1, 2026
0.20.0 Mar 28, 2026
0.9.0 Oct 7, 2025
0.2.2 Jun 30, 2025

#173 in Artificial intelligence

Download history 467/week @ 2026-01-18 548/week @ 2026-01-25 397/week @ 2026-02-01 320/week @ 2026-02-08 399/week @ 2026-02-15 420/week @ 2026-02-22 1247/week @ 2026-03-01 765/week @ 2026-03-08 1083/week @ 2026-03-15 1265/week @ 2026-03-22 762/week @ 2026-03-29 693/week @ 2026-04-05 291/week @ 2026-04-12 347/week @ 2026-04-19 507/week @ 2026-04-26 160/week @ 2026-05-03

1,343 downloads per month
Used in 21 crates (7 directly)

MIT license

565KB
15K SLoC

Potato Head

Potato Head is a core/utility crate to both opsml and scouter, providing essential rust and python components for building agentic workflows. At the current moment, only crates are published, which are then used in both opsml and scouter to provide user-friendly interfaces. The documentation contained in this repository is meant to help you understand the core concepts of potatohead and how to use it within Opsml and Scouter.

Creating a Talking Potato

To get your potato to talk, you first need to create a Prompt. It's gotta have something to say, right?

from potato_head import Prompt

prompt = Prompt(
  model="gpt-4o",
  provider="openai",
  messages="Tell me a joke about potatoes.",
  system_instructions="You are a helpful assistant.",
)

How do we make the potato talk?

from potato_head import Agent, Provider

agent = Agent(Provider.OpenAI)
response = agent.execute_prompt(prompt=prompt)


print(response.result)
# Why did the potato win the talent show?
# Because it was outstanding in its field!

Documentation

For more information, please refer to the documentation.

Dependencies

~12–19MB
~281K SLoC