Skip to content

Plugin: slash_shortcuts #118

@ch0udry

Description

@ch0udry

after enabling Plugin: slash_shortcuts

following error comes

AttributeError: 'AgentContext' object has no attribute 'agent0' Traceback (most recent call last): Traceback (most recent call last): File "/a0/helpers/api.py", line 83, in handle_request output = await self.process(input_data, request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/usr/plugins/slash_shortcuts/api/slash_shortcuts.py", line 12, in process return self._list_effective(input) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/usr/plugins/slash_shortcuts/api/slash_shortcuts.py", line 29, in _list_effective context_scope = shortcuts_helper.get_context_scope(str(input.get("context_id", "") or "")) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/usr/plugins/slash_shortcuts/helpers/slash_shortcuts.py", line 88, in get_context_scope "agent_profile": context.agent0.config.profile or "", ^^^^^^^^^^^^^^

also another plugin error on honcho memory . when unable not able to open new chat gives this error

Error creating new chat: ModuleNotFoundError: No module named 'python.helpers' Traceback (most recent call last): Traceback (most recent call last): File "/a0/helpers/api.py", line 83, in handle_request output = await self.process(input_data, request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/api/chat_create.py", line 17, in process new_context = self.use_context(new_ctxid) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/helpers/api.py", line 114, in use_context context = AgentContext( ^^^^^^^^^^^^^ File "/a0/helpers/extension.py", line 203, in _run_sync result = _process_result(data) ^^^^^^^^^^^^^^^^^^^^^ File "/a0/helpers/extension.py", line 143, in _process_result raise exc File "/a0/helpers/extension.py", line 157, in _call_original data["result"] = func(*call_args, **call_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/agent.py", line 96, in init self.agent0 = agent0 or Agent(0, self.config, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/helpers/extension.py", line 203, in _run_sync result = _process_result(data) ^^^^^^^^^^^^^^^^^^^^^ File "/a0/helpers/extension.py", line 143, in _process_result raise exc File "/a0/helpers/extension.py", line 157, in _call_original data["result"] = func(call_args, **call_kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/agent.py", line 370, in init extension.call_extensions_sync("agent_init", self) File "/a0/helpers/extension.py", line 242, in call_extensions_sync classes = _get_extension_classes(extension_point, agent=agent, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/helpers/extension.py", line 295, in _get_extension_classes all_exts = [cls for path in paths for cls in _get_extensions(path)] ^^^^^^^^^^^^^^^^^^^^^ File "/a0/helpers/extension.py", line 323, in _get_extensions classes = modules.load_classes_from_folder(folder, "", Extension) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/helpers/modules.py", line 46, in load_classes_from_folder module = import_module(file_path) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/a0/helpers/modules.py", line 23, in import_module spec.loader.exec_module(module) File "", line 995, in exec_module File "", line 488, in _call_with_frames_removed File "/a0/usr/plugins/honcho/extensions/python/agent_init/_20_honcho_init.py", line 10, in from python.helpers.extension import Extension

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions