ConnectOnionConnectOnion

Prompt File Formats

Use any text file format. ConnectOnion just reads the content.

Key Point: ConnectOnion doesn't parse formats - it just reads text and passes it to the LLM. Use whatever format your team prefers.

Supported Formats
# All of these work - ConnectOnion just reads the text content:

agent = Agent("bot", system_prompt="""You are helpful...""")     # Direct string
agent = Agent("bot", system_prompt="prompts/assistant.md")       # Markdown
agent = Agent("bot", system_prompt="prompts/assistant.txt")      # Plain text
agent = Agent("bot", system_prompt="prompts/assistant.yaml")     # YAML
agent = Agent("bot", system_prompt="prompts/assistant.json")     # JSON
agent = Agent("bot", system_prompt="prompts/assistant")          # No extension

Why This Matters

  • No lock-in - Use any format your team prefers
  • Future-proof - New formats work automatically
  • Simple - No complex parsing or schemas