Skip to content

Commit ac39084

Browse files
committed
Added code block separators ↞ [auto-sync from https://github.com/KudoAI/ai-personas/tree/main/python]
1 parent a136a08 commit ac39084

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

ai-personas/docs/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ print(find_personas('coach'))
5555
# => ['Interview Preparation Coach', 'Life Coach', ...]
5656
```
5757

58+
#
59+
5860
#### Get prompt for a persona:
5961

6062
```py
@@ -65,6 +67,8 @@ print(get_prompt('Food Critic'))
6567
# => I want you to act as a food critic. I will tell you about a restaurant...
6668
```
6769

70+
#
71+
6872
#### Get random personas:
6973

7074
```py
@@ -80,6 +84,8 @@ print(random_persona(10))
8084
# => e.g. ['Internet Trend & Slang Intelligence', 'Tic-Tac-Toe Game', ...]
8185
```
8286

87+
#
88+
8389
#### Get random prompt:
8490

8591
```py
@@ -102,6 +108,8 @@ print(random_prompt())
102108
# ...
103109
```
104110

111+
#
112+
105113
#### Fill variables in template prompts:
106114

107115
```py
@@ -117,6 +125,8 @@ print(filled_prompt)
117125
# ...
118126
```
119127

128+
#
129+
120130
#### Combine prompts:
121131

122132
```py
@@ -139,6 +149,8 @@ print(mega_prompt)
139149
# Prompt B: I want you to act as a DAX terminal...
140150
```
141151

152+
#
153+
142154
#### Build system prompt:
143155

144156
```py
@@ -150,6 +162,8 @@ messages = [
150162
]
151163
```
152164

165+
#
166+
153167
#### Use persona w/ an LLM:
154168

155169
```py

0 commit comments

Comments
 (0)