AutoGPT icon indicating copy to clipboard operation
AutoGPT copied to clipboard

feat(agent_builder): Add `beautifyString` util function

Open kcze opened this issue 7 months ago • 2 comments

Add beautifyString util function that reformats backend names to user friendly names in the frontend using regex patterns.

  • Add space before capital letters
  • Add space between acronyms and next word
  • Replace underscores with spaces
  • Capitalize the first letter of each word
  • Handle exceptions:
    • Auto GPT -> AutoGPT
    • Gpt -> GPT
    • Creds -> Credentials
    • Id -> ID
    • Openai -> OpenAI
    • Api -> API
    • Url -> URL
    • Http -> HTTP
    • Json -> JSON

Example: AutoGPTAgentBlock -> AutoGPT Agent Block, `

kcze avatar Jul 14 '24 16:07 kcze