Improve docs (#17)

This commit is contained in:
Lianmin Zheng
2024-01-16 19:53:55 -08:00
committed by GitHub
parent ffe4aaee1d
commit c4707f1bb5
6 changed files with 24 additions and 12 deletions

View File

@@ -632,11 +632,7 @@ class ProgramState:
self.stream_executor.end()
def __repr__(self) -> str:
msgs = self.messages()
ret = ""
for msg in msgs:
ret += msg["role"] + ":\n" + msg["content"] + "\n"
return ret
return f"ProgramState({self.text()})"
class ProgramStateGroup: