Update Assistant Package Descriptions and Configuration
- Renamed several assistant packages for clarity, including "Entity Extraction" to "Entity Extractor" and "Keyword Extraction" to "Keyword Extractor." - Revised descriptions for various assistants to enhance understanding of their functionalities, such as changing "Extract keywords from text content" to "Extract search keywords." - Added a "uses" field with "search" set to "disabled" in the configuration of each assistant, standardizing their setup. - Updated the "Prompt Optimizer" description to "Optimize prompts for better results" and modified the "QueryDSL Generator" to "Query Builder" for improved clarity. - Ensured consistent naming conventions and descriptions across all assistant packages to enhance user experience and documentation clarity.
This commit is contained in:
parent
750dd311b9
commit
46b4088af3
9 changed files with 190 additions and 181 deletions
|
|
@ -132,7 +132,10 @@ func (ast *Assistant) Stream(ctx *context.Context, inputMessages []context.Messa
|
|||
fullMessages := historyResult.FullMessages
|
||||
|
||||
// Buffer user input messages (use cleaned input without overlap)
|
||||
ast.BufferUserInput(ctx, historyResult.InputMessages)
|
||||
// Skip if History is disabled in options (for internal calls like needsearch)
|
||||
if opts == nil || opts.Skip == nil || !opts.Skip.History {
|
||||
ast.BufferUserInput(ctx, historyResult.InputMessages)
|
||||
}
|
||||
ctx.Logger.PhaseComplete("History")
|
||||
|
||||
// ================================================
|
||||
|
|
|
|||
|
|
@ -588,15 +588,19 @@ func loadMap(data map[string]interface{}) (*Assistant, error) {
|
|||
|
||||
i18n.Locales[id] = flattened
|
||||
} else {
|
||||
// No locales defined, create default with name and description
|
||||
// No locales defined, create default with name and description for all common locales
|
||||
if assistant.Name != "" || assistant.Description != "" {
|
||||
defaultLocales := make(map[string]i18n.I18n)
|
||||
defaultLocales["en"] = i18n.I18n{
|
||||
Locale: "en",
|
||||
Messages: map[string]any{
|
||||
"name": assistant.Name,
|
||||
"description": assistant.Description,
|
||||
},
|
||||
// Create entries for all common locales so {{name}} can be resolved
|
||||
commonLocales := []string{"en", "en-us", "zh", "zh-cn", "zh-tw"}
|
||||
for _, locale := range commonLocales {
|
||||
defaultLocales[locale] = i18n.I18n{
|
||||
Locale: locale,
|
||||
Messages: map[string]any{
|
||||
"name": assistant.Name,
|
||||
"description": assistant.Description,
|
||||
},
|
||||
}
|
||||
}
|
||||
i18n.Locales[id] = defaultLocales
|
||||
}
|
||||
|
|
|
|||
326
data/bindata.go
326
data/bindata.go
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"name": "Entity Extraction",
|
||||
"description": "Extract entities and relationships for knowledge graph",
|
||||
"name": "Entity Extractor",
|
||||
"description": "Extract entities and relationships",
|
||||
"type": "worker",
|
||||
"uses": { "search": "disabled" },
|
||||
"options": {
|
||||
"max_tokens": 2000,
|
||||
"temperature": 0.2
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Keyword Extraction",
|
||||
"description": "Extract keywords from text content",
|
||||
"name": "Keyword Extractor",
|
||||
"description": "Extract search keywords",
|
||||
"type": "worker",
|
||||
"uses": { "search": "disabled" },
|
||||
"options": {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
{
|
||||
"name": "Need Search",
|
||||
"description": "Determine if query requires external search",
|
||||
"name": "Reference Checker",
|
||||
"description": "Check if references are needed",
|
||||
"type": "worker",
|
||||
"uses": { "search": "disabled" },
|
||||
"options": {
|
||||
"max_tokens": 200,
|
||||
"temperature": 0.1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Prompt Optimizer",
|
||||
"description": "Transform user requirements into effective prompts",
|
||||
"description": "Optimize prompts for better results",
|
||||
"type": "worker",
|
||||
"uses": { "search": "disabled" },
|
||||
"options": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "QueryDSL Generator",
|
||||
"description": "Generate QueryDSL from natural language",
|
||||
"name": "Query Builder",
|
||||
"description": "Build database queries",
|
||||
"type": "worker",
|
||||
"uses": { "search": "disabled" },
|
||||
"options": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Title Generator",
|
||||
"description": "Generate concise titles for conversations",
|
||||
"description": "Generate conversation titles",
|
||||
"type": "worker",
|
||||
"uses": { "search": "disabled" },
|
||||
"options": {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue