monadic-chat 0.2.1 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/Gemfile.lock +4 -1
- data/README.md +91 -115
- data/apps/chat/chat.json +5 -1
- data/apps/chat/chat.md +4 -5
- data/apps/chat/chat.rb +13 -18
- data/apps/code/code.md +2 -4
- data/apps/code/code.rb +13 -18
- data/apps/linguistic/linguistic.json +1 -1
- data/apps/linguistic/linguistic.md +2 -4
- data/apps/linguistic/linguistic.rb +13 -18
- data/apps/novel/novel.md +2 -4
- data/apps/novel/novel.rb +13 -18
- data/apps/translate/translate.md +2 -4
- data/apps/translate/translate.rb +13 -18
- data/lib/monadic_app.rb +7 -22
- data/lib/monadic_chat/formatting.rb +1 -4
- data/lib/monadic_chat/interaction.rb +12 -12
- data/lib/monadic_chat/internals.rb +35 -181
- data/lib/monadic_chat/menu.rb +8 -8
- data/lib/monadic_chat/open_ai.rb +29 -18
- data/lib/monadic_chat/parameters.rb +12 -11
- data/lib/monadic_chat/version.rb +1 -1
- data/lib/monadic_chat.rb +43 -13
- data/monadic_chat.gemspec +1 -0
- metadata +16 -4
- data/doc/img/extra-template-json.png +0 -0
- data/doc/img/langacker-2001.svg +0 -41
data/doc/img/langacker-2001.svg
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
|
-
<svg width="2035" height="1068" overflow="hidden" xmlns="http://www.w3.org/2000/svg">
|
3
|
-
<defs>
|
4
|
-
<clipPath id="clip0">
|
5
|
-
<rect x="1347" y="366" width="2035" height="1068"/>
|
6
|
-
</clipPath>
|
7
|
-
</defs>
|
8
|
-
<g clip-path="url(#clip0)" transform="translate(-1347 -366)">
|
9
|
-
<path d="M2.17587-0.719256 6.49141 12.336 2.13967 13.7745-2.17587 0.719256ZM7.92992 16.6877 12.2455 29.7429 7.89372 31.1814 3.57818 18.1262ZM13.684 34.0947 17.9995 47.1499 13.6478 48.5884 9.33223 35.5332ZM19.438 51.5016 23.7536 64.5568 19.4018 65.9953 15.0863 52.9401ZM25.1921 68.9085 29.5076 81.9638 25.1559 83.4023 20.8403 70.3471ZM30.9461 86.3155 35.2617 99.3707 30.9099 100.809 26.5944 87.754ZM36.7002 103.722 41.0157 116.778 36.664 118.216 32.3484 105.161ZM42.4542 121.129 46.7698 134.185 42.418 135.623 38.1025 122.568ZM48.2083 138.536 49.8125 143.389 45.4607 144.828 43.8565 139.975ZM54.9884 123.649 48.9939 148.215 29.5395 132.062C28.5657 131.253 28.4317 129.808 29.2402 128.835 30.0488 127.861 31.4936 127.727 32.4673 128.535L49.1007 142.346 45.4104 143.566 50.5357 122.563C50.8358 121.333 52.0758 120.579 53.3054 120.88 54.5349 121.18 55.2885 122.42 54.9884 123.649Z" fill="#000000" fill-rule="nonzero" fill-opacity="1" transform="matrix(1 0 0 -1 2237.5 923.7)"/>
|
10
|
-
<path d="M2423.31 922.419 2419 909.364 2423.35 907.925 2427.66 920.98ZM2417.56 905.012 2413.24 891.957 2417.59 890.518 2421.91 903.573ZM2411.8 887.605 2407.49 874.55 2411.84 873.111 2416.16 886.167ZM2406.05 870.198 2401.74 857.143 2406.09 855.704 2410.4 868.76ZM2400.3 852.791 2395.98 839.736 2400.33 838.297 2404.65 851.353ZM2394.54 835.384 2390.23 822.329 2394.58 820.89 2398.89 833.946ZM2388.79 817.977 2384.47 804.922 2388.82 803.483 2393.14 816.539ZM2383.03 800.57 2378.72 787.515 2383.07 786.076 2387.39 799.132ZM2377.28 783.163 2375.68 778.31 2380.03 776.872 2381.63 781.725ZM2370.5 798.05 2376.49 773.485 2395.95 789.638C2396.92 790.447 2397.06 791.891 2396.25 792.865 2395.44 793.839 2394 793.973 2393.02 793.164L2376.39 779.354 2380.08 778.134 2374.95 799.137C2374.65 800.367 2373.41 801.12 2372.18 800.82 2370.95 800.52 2370.2 799.28 2370.5 798.05Z" fill="#000000" fill-rule="nonzero" fill-opacity="1"/>
|
11
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="700" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 1462.52 438)">Current Discourse Space</text>
|
12
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 2196.11 505)">Usage Event</text>
|
13
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 2178.87 644)">Viewing Frame</text>
|
14
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 2270.33 742)">Focus</text>
|
15
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 2255.01 1032)">Ground</text>
|
16
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 2249.34 1108)">Context</text>
|
17
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 2142.52 1201)">Shared Knowledge</text>
|
18
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="700" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 1407.17 897)">. . .</text>
|
19
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="700" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 3216.98 897)">. . .</text>
|
20
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="83" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 1999.76 913)">></text>
|
21
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="83" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 2638.71 910)">></text>
|
22
|
-
<path d="M1352.5 982.208 3305.01 982.209C3306.27 982.209 3307.3 983.235 3307.3 984.5 3307.3 985.766 3306.27 986.792 3305.01 986.792L1352.5 986.792C1351.23 986.792 1350.21 985.766 1350.21 984.5 1350.21 983.234 1351.23 982.208 1352.5 982.208ZM3305 984.5 3286.67 961.584 3332.5 984.5 3286.67 1007.42Z" fill="#000000" fill-rule="nonzero" fill-opacity="1"/>
|
23
|
-
<path d="M1352.5 522.669C1352.5 438.076 1421.08 369.5 1505.67 369.5L3179.33 369.5C3263.92 369.5 3332.5 438.076 3332.5 522.669L3332.5 1135.33C3332.5 1219.92 3263.92 1288.5 3179.33 1288.5L1505.67 1288.5C1421.08 1288.5 1352.5 1219.92 1352.5 1135.33Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
24
|
-
<path d="M1525.5 611.335C1525.5 570.005 1559 536.5 1600.33 536.5L1899.67 536.5C1941 536.5 1974.5 570.005 1974.5 611.335L1974.5 1165.67C1974.5 1207 1941 1240.5 1899.67 1240.5L1600.33 1240.5C1559 1240.5 1525.5 1207 1525.5 1165.67Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
25
|
-
<path d="M2083.5 619.668C2083.5 571.527 2122.53 532.5 2170.67 532.5L2519.33 532.5C2567.47 532.5 2606.5 571.527 2606.5 619.668L2606.5 1148.33C2606.5 1196.47 2567.47 1235.5 2519.33 1235.5L2170.67 1235.5C2122.53 1235.5 2083.5 1196.47 2083.5 1148.33Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
26
|
-
<path d="M2717.5 611.163C2717.5 569.928 2750.93 536.5 2792.16 536.5L3090.8 536.5C3132.04 536.5 3165.47 569.928 3165.47 611.163L3165.47 1164.84C3165.47 1206.07 3132.04 1239.5 3090.8 1239.5L2792.16 1239.5C2750.93 1239.5 2717.5 1206.07 2717.5 1164.84Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
27
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 1387.69 1090)">Time</text>
|
28
|
-
<path d="M2110.5 639.834C2110.5 596.571 2145.57 561.5 2188.83 561.5L2502.17 561.5C2545.43 561.5 2580.5 596.571 2580.5 639.834L2580.5 1050.17C2580.5 1093.43 2545.43 1128.5 2502.17 1128.5L2188.83 1128.5C2145.57 1128.5 2110.5 1093.43 2110.5 1050.17Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
29
|
-
<path d="M2170.5 892.167C2170.5 873.573 2185.57 858.5 2204.17 858.5L2471.83 858.5C2490.43 858.5 2505.5 873.573 2505.5 892.167L2505.5 1026.83C2505.5 1045.43 2490.43 1060.5 2471.83 1060.5L2204.17 1060.5C2185.57 1060.5 2170.5 1045.43 2170.5 1026.83Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
30
|
-
<path d="M2165.5 626.501C2165.5 606.618 2181.62 590.5 2201.5 590.5L2464.5 590.5C2484.38 590.5 2500.5 606.618 2500.5 626.501L2500.5 770.499C2500.5 790.382 2484.38 806.5 2464.5 806.5L2201.5 806.5C2181.62 806.5 2165.5 790.382 2165.5 770.499Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
31
|
-
<path d="M2226.5 725.5C2226.5 698.438 2273.29 676.5 2331 676.5 2388.71 676.5 2435.5 698.438 2435.5 725.5 2435.5 752.562 2388.71 774.5 2331 774.5 2273.29 774.5 2226.5 752.562 2226.5 725.5Z" stroke="#000000" stroke-width="9.16667" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
32
|
-
<path d="M2196.5 929C2196.5 904.976 2215.98 885.5 2240 885.5 2264.02 885.5 2283.5 904.976 2283.5 929 2283.5 953.024 2264.02 972.5 2240 972.5 2215.98 972.5 2196.5 953.024 2196.5 929Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="#FFFFFF" fill-rule="evenodd" fill-opacity="1"/>
|
33
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 2223.89 943)">S</text>
|
34
|
-
<path d="M2390.5 927C2390.5 902.976 2410.2 883.5 2434.5 883.5 2458.8 883.5 2478.5 902.976 2478.5 927 2478.5 951.024 2458.8 970.5 2434.5 970.5 2410.2 970.5 2390.5 951.024 2390.5 927Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="#FFFFFF" fill-rule="evenodd" fill-opacity="1"/>
|
35
|
-
<text fill="#000000" fill-opacity="1" font-family="Arial,Arial_MSFontService,sans-serif" font-style="normal" font-variant="normal" font-weight="400" font-stretch="normal" font-size="46" text-anchor="start" direction="ltr" writing-mode="lr-tb" unicode-bidi="normal" text-decoration="none" style="white-space: pre;" transform="matrix(1 0 0 1 2417.9 944)">H</text>
|
36
|
-
<path d="M1554.5 626.668C1554.5 590.677 1583.68 561.5 1619.67 561.5L1880.33 561.5C1916.32 561.5 1945.5 590.677 1945.5 626.668L1945.5 1071.33C1945.5 1107.32 1916.32 1136.5 1880.33 1136.5L1619.67 1136.5C1583.68 1136.5 1554.5 1107.32 1554.5 1071.33Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
37
|
-
<path d="M1609.5 627.667C1609.5 607.14 1626.14 590.5 1646.67 590.5L1852.33 590.5C1872.86 590.5 1889.5 607.14 1889.5 627.667L1889.5 776.333C1889.5 796.86 1872.86 813.5 1852.33 813.5L1646.67 813.5C1626.14 813.5 1609.5 796.86 1609.5 776.333Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
38
|
-
<path d="M1582.5 887.001C1582.5 869.604 1596.6 855.5 1614 855.5L1886 855.5C1903.4 855.5 1917.5 869.604 1917.5 887.001L1917.5 1013C1917.5 1030.4 1903.4 1044.5 1886 1044.5L1614 1044.5C1596.6 1044.5 1582.5 1030.4 1582.5 1013Z" stroke="#000000" stroke-width="4.58333" stroke-linecap="butt" stroke-linejoin="miter" stroke-miterlimit="8" stroke-opacity="1" fill="none" fill-rule="evenodd"/>
|
39
|
-
<path d="M4.31275-2.28292 18.0627-2.25501 18.0534 2.32832 4.30344 2.30041ZM22.646-2.24571 36.396-2.2178 36.3867 2.36553 22.6367 2.33762ZM40.9793-2.20849 54.7293-2.18059 54.72 2.40274 40.97 2.37483ZM59.3126-2.17128 73.0626-2.14337 73.0533 2.43995 59.3033 2.41204ZM77.6459-2.13407 91.3959-2.10616 91.3866 2.47716 77.6366 2.44925ZM95.9792-2.09686 97.2214-2.09434 97.2121 2.48899 95.9699 2.48647ZM21.3998 13.4451-0.0155744-3.1728e-05 21.4542-13.3581C22.5289-14.0268 23.9421-13.6976 24.6107-12.623 25.2793-11.5484 24.9501-10.1352 23.8755-9.46656L5.51896 1.95454 5.52685-1.93212 23.8369 9.56341C24.9088 10.2364 25.2322 11.6509 24.5592 12.7228 23.8863 13.7947 22.4717 14.1181 21.3998 13.4451ZM80.1253-13.2391 101.541 0.206101 80.0709 13.5642C78.9963 14.2328 77.5831 13.9037 76.9145 12.8291 76.2459 11.7544 76.575 10.3412 77.6497 9.67263L96.0062-1.74847 95.9983 2.13819 77.6883-9.35734C76.6164-10.0303 76.293-11.4448 76.9659-12.5167 77.6389-13.5886 79.0534-13.912 80.1253-13.2391Z" fill="#000000" fill-rule="nonzero" fill-opacity="1" transform="matrix(-1 0 0 1 2388.03 927.5)"/>
|
40
|
-
</g>
|
41
|
-
</svg>
|