0.9.0 - Added Trilium ETAPI integration.
Lyra can now: Search trilium notes and create new notes. with proper ETAPI auth.
This commit is contained in:
@@ -26,7 +26,7 @@ class ToolRegistry:
|
||||
# Feature flags from environment
|
||||
self.code_execution_enabled = os.getenv("ENABLE_CODE_EXECUTION", "true").lower() == "true"
|
||||
self.web_search_enabled = os.getenv("ENABLE_WEB_SEARCH", "true").lower() == "true"
|
||||
self.trillium_enabled = os.getenv("ENABLE_TRILLIUM", "false").lower() == "true"
|
||||
self.trilium_enabled = os.getenv("ENABLE_TRILIUM", "false").lower() == "true"
|
||||
|
||||
self._register_tools()
|
||||
self._register_executors()
|
||||
@@ -39,7 +39,7 @@ class ToolRegistry:
|
||||
if self.web_search_enabled:
|
||||
self.executors["search_web"] = search_web
|
||||
|
||||
if self.trillium_enabled:
|
||||
if self.trilium_enabled:
|
||||
self.executors["search_notes"] = search_notes
|
||||
self.executors["create_note"] = create_note
|
||||
|
||||
@@ -85,10 +85,10 @@ class ToolRegistry:
|
||||
"required": ["query"]
|
||||
}
|
||||
|
||||
if self.trillium_enabled:
|
||||
if self.trilium_enabled:
|
||||
self.tools["search_notes"] = {
|
||||
"name": "search_notes",
|
||||
"description": "Search through Trillium notes to find relevant information. Use this to retrieve knowledge, context, or information previously stored in the user's notes.",
|
||||
"description": "Search through Trilium notes to find relevant information. Use this to retrieve knowledge, context, or information previously stored in the user's notes.",
|
||||
"parameters": {
|
||||
"query": {
|
||||
"type": "string",
|
||||
@@ -104,7 +104,7 @@ class ToolRegistry:
|
||||
|
||||
self.tools["create_note"] = {
|
||||
"name": "create_note",
|
||||
"description": "Create a new note in Trillium. Use this to store important information, insights, or knowledge for future reference. Notes are stored in the user's Trillium knowledge base.",
|
||||
"description": "Create a new note in Trilium. Use this to store important information, insights, or knowledge for future reference. Notes are stored in the user's Trilium knowledge base.",
|
||||
"parameters": {
|
||||
"title": {
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user