- Refine assistant output formatting by removing bold headers and adjusting response template.

- Update `package.json` across multiple packages to include missing newline and add package manager metadata.
- Minor README formatting fixes to remove unnecessary trailing spaces.
This commit is contained in:
geoffsee
2025-06-25 14:15:01 -04:00
parent 48bedb8c74
commit 8cdb6b8c94
9 changed files with 14 additions and 12 deletions

View File

@@ -38,5 +38,6 @@
}, },
"peerDependencies": { "peerDependencies": {
"typescript": "^5" "typescript": "^5"
} },
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
} }

View File

@@ -33,10 +33,11 @@ ${maxTokens ? `### Max Response Length: ${maxTokens} tokens (maximum)` : ''}
1. Use knowledge provided in the current context as the primary source of truth. 1. Use knowledge provided in the current context as the primary source of truth.
2. Format all responses in Markdown. 2. Format all responses in Markdown.
3. Attribute external sources with footnotes. 3. Attribute external sources with footnotes.
4. Do not bold headers.
## Examples ## Examples
#### Example 0 #### Example 0
**Human**: What is this? HUMAN: What is this?
**Assistant**: This is a conversational AI system. ASSISTANT: This is a conversational AI system.
--- ---
${AssistantSdk.useFewshots(selectedFewshots, 5)} ${AssistantSdk.useFewshots(selectedFewshots, 5)}
--- ---
@@ -48,7 +49,7 @@ Continuously monitor the evolving conversation. Dynamically adapt each response.
return Object.entries(fewshots) return Object.entries(fewshots)
.slice(0, limit) .slice(0, limit)
.map(([q, a], i) => { .map(([q, a], i) => {
return `#### Example ${i + 1}\n**Human**: ${q}\n**Assistant**: ${a}`; return `#### Example ${i + 1}\nHUMAN: ${q}\nASSISTANT: ${a}`;
}) })
.join('\n---\n'); .join('\n---\n');
} }

View File

@@ -90,7 +90,7 @@ const d = {
~~~javascript ~~~javascript
console.log(marked.parse('A Description List:\\n' console.log(marked.parse('A Description List:\\n'
+ ': Topic 1 : Description 1\\n' + ': Topic 1 : Description 1\\n'
+ ': **Topic 2** : *Description 2*')); + ': Topic 2 : Description 2'));
~~~ ~~~
## Tables ## Tables
| Name | Value | | Name | Value |
@@ -103,7 +103,7 @@ console.log(marked.parse('A Description List:\\n'
## Horizontal Rule ## Horizontal Rule
--- ---
## Font: Bold and Italic ## Font: Bold and Italic
**Bold Text** **Bold Text**
*Italic Text* *Italic Text*
## Font: Strikethrough ## Font: Strikethrough
~~Struck-through text~~ ~~Struck-through text~~

View File

@@ -2,4 +2,4 @@
"name": "@open-gsio/types", "name": "@open-gsio/types",
"type": "module", "type": "module",
"module": "index.ts" "module": "index.ts"
} }

View File

@@ -1,3 +1,3 @@
# durable_objects # durable_objects
This package exports implementations of durable objects This package exports implementations of durable objects

View File

@@ -10,4 +10,4 @@
"peerDependencies": { "peerDependencies": {
"typescript": "^5" "typescript": "^5"
} }
} }

View File

@@ -22,4 +22,4 @@
"typescript": "^5.7.2", "typescript": "^5.7.2",
"mobx-state-tree": "^6.0.1" "mobx-state-tree": "^6.0.1"
} }
} }

View File

@@ -1,3 +1,3 @@
# @open-gsio/server # @open-gsio/server
This directory contains a bun server component of open-gsio. Static files are not being served yet. This directory contains a bun server component of open-gsio. Static files are not being served yet.

View File

@@ -1,3 +1,3 @@
# @open-gsio/services # @open-gsio/services
A service layer powered by mobx-state-tree. A service layer powered by mobx-state-tree.