Use this file to discover all available pages before exploring further.
All prompt operations are available under the client.prompts namespace. Every method has both sync and async variants (async methods use the a prefix).
from tracia import Traciaclient = Tracia(api_key="tr_your_api_key")# Run a promptresult = client.prompts.run("welcome-email", {"name": "Alice"})# List all promptsprompts = client.prompts.list()# Get a single promptprompt = client.prompts.get("welcome-email")# Create a promptfrom tracia import CreatePromptOptions, PromptMessagenew_prompt = client.prompts.create(CreatePromptOptions( slug="my-prompt", name="My Prompt", model="gpt-4o", provider="openai", messages=[PromptMessage(role="user", content="Hello {{name}}")],))# Update a promptfrom tracia import UpdatePromptOptionsupdated = client.prompts.update("welcome-email", UpdatePromptOptions(name="New Name"))# Delete a promptclient.prompts.delete("welcome-email")