nexo-brain 2.6.11 → 2.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,7 @@
13
13
  This template demonstrates:
14
14
  - Inline metadata for auto-discovery
15
15
  - Safe CLI calls through nexo_helper
16
+ - Optional agent calls through the configured automation backend
16
17
  - Timeout handling (via metadata)
17
18
  - argparse for user arguments
18
19
  - No direct DB access
@@ -25,11 +26,21 @@ import sys
25
26
  # nexo_helper.py is in NEXO_HOME/templates/ — copy it next to your script
26
27
  # or add the templates dir to your path
27
28
  try:
28
- from nexo_helper import call_tool_text
29
+ from nexo_helper import call_tool_text, run_automation_text
29
30
  except ImportError:
30
31
  import os
31
32
  sys.path.insert(0, os.path.join(os.environ.get("NEXO_HOME", "~/.nexo"), "templates"))
32
- from nexo_helper import call_tool_text
33
+ from nexo_helper import call_tool_text, run_automation_text
34
+
35
+ # If this script ever needs an autonomous model call:
36
+ # 1. use run_automation_text(...)
37
+ # 2. pass a legacy task profile like model="opus" when useful
38
+ # 3. DO NOT hardcode `claude -p` or provider-specific model defaults
39
+ # Example:
40
+ # result = run_automation_text(
41
+ # "Summarize pending issues",
42
+ # model="opus", # legacy task profile; NEXO maps it per backend
43
+ # )
33
44
 
34
45
 
35
46
  def main():
@@ -3,6 +3,8 @@
3
3
 
4
4
  This script is meant to be referenced by a Skill v2 definition.
5
5
  It should use the stable NEXO CLI rather than importing internal DB modules.
6
+ If it needs an agentic model call, route it through NEXO's configured
7
+ automation backend instead of hardcoding `claude -p` or a provider model.
6
8
  """
7
9
 
8
10
  import argparse
@@ -35,5 +37,11 @@ def main() -> int:
35
37
  return result.returncode
36
38
 
37
39
 
40
+ # Agentic example for future edits:
41
+ # from nexo_helper import run_automation_text
42
+ # result = run_automation_text("Analyze this", model="opus")
43
+ # print(result)
44
+
45
+
38
46
  if __name__ == "__main__":
39
47
  raise SystemExit(main())