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.
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",
message="Tell me a joke about potatoes.",
system_instruction="You are a helpful assistant.",
)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!For more information, please refer to the documentation.