expectedparrot / edsl

Design, conduct and analyze results of AI-powered surveys and experiments. Simulate social science and market research with large numbers of AI agents and LLMs.
https://docs.expectedparrot.com
MIT License
96 stars 14 forks source link

Use triple quotes in the EDSL object representation (__repr__ method) #647

Open zer0dss opened 3 weeks ago

zer0dss commented 3 weeks ago

We have an issue when formatting Python code for an object returned by repr method. When there are text values on multiple lines the current solution doesn't work because it uses simple quotes '' (example for question class)

johnjosephhorton commented 3 weeks ago

Thanks - would it be as simple as changing this line to use triple quotes?

https://github.com/expectedparrot/edsl/blob/ed8be697413b5d1af939c9456a495b3a143617ba/edsl/questions/QuestionBase.py#L232

zer0dss commented 3 weeks ago

There are two more places where a similar change has to be made