Sfoglia il codice sorgente

Fix: add default output method for ComponentParamBase (#7933)

### What problem does this PR solve?
https://github.com/infiniflow/ragflow/issues/7908
For the code
` _, out = cpn.output(allow_partial=False)`

` def output(self, allow_partial=True) -> Tuple[str, Union[pd.DataFrame,
partial]]:
        o = getattr(self._param, self._param.output_var_name)`

need to call this method
But I do not have a full context.

### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
tags/v0.19.1
Stephen Hu 5 mesi fa
parent
commit
a0f76b7a4d
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      agent/component/base.py

+ 3
- 0
agent/component/base.py Vedi File

@@ -46,6 +46,9 @@ class ComponentParamBase(ABC):

def check(self):
raise NotImplementedError("Parameter Object should be checked.")
def output(self):
return None

@classmethod
def _get_or_init_deprecated_params_set(cls):

Loading…
Annulla
Salva