Feat: The agent can only retrieve content from the knowledge base or memory. #4213 (#12224)

### What problem does this PR solve?

Feat: The agent can only retrieve content from the knowledge base or
memory. #4213

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-12-26 12:10:13 +08:00
committed by GitHub
parent 6044314811
commit cbcbbc41af
6 changed files with 90 additions and 23 deletions

View File

@ -79,6 +79,11 @@ export const DataOperationsOperatorOptions = [
export const SwitchElseTo = 'end_cpn_ids';
export enum RetrievalFrom {
Dataset = 'dataset',
Memory = 'memory',
}
export const initialRetrievalValues = {
query: AgentGlobalsSysQueryWithBrace,
top_n: 8,
@ -91,6 +96,7 @@ export const initialRetrievalValues = {
use_kg: false,
toc_enhance: false,
cross_languages: [],
retrieval_from: RetrievalFrom.Dataset,
outputs: {
formalized_content: {
type: 'string',