Skip to content

Commit

Permalink
Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jncraton committed May 8, 2023
1 parent 4d0a878 commit 6b4e25f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions languagemodels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ def do(prompt):


def chat(userprompt):
"""Respond to a prompt as a chat agent
>>> chat("What is Mars?") #doctest: +SKIP
'Mars is a planet in the solar system.'
>>> chat("Who is Obama?") #doctest: +SKIP
'Obama was president of the United States.'
>>> chat("Where is Berlin?") #doctest: +SKIP
'Berlin is located in Germany.'
"""
prompt = (
f"System: Agent responses will be truthful, helpful, and harmless.\n"
f"User: {userprompt}\n"
Expand Down

0 comments on commit 6b4e25f

Please sign in to comment.