Skip to content

♻️ Refactor agent prompt - #4051

Merged
YehongPan merged 13 commits into
developfrom
refactor/agent-prompt-component
Oct 9, 2026
Merged

YehongPan merged 13 commits into
developfrom
refactor/agent-prompt-component

Conversation

@Jasonxia007

@Jasonxia007 Jasonxia007 commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Refactor agent prompt into sdk layer.

Backend service only responsible for injecting prompt template which could be modified by users.

Clean prompt components.

Now a simple question costs 50% token less than v2.6.1 (From ~6k to ~3k).
image

…mpt-component

# Conflicts:
#	backend/agents/create_agent_info.py
#	backend/services/evaluation_set_service.py
#	backend/services/knowledge_scope_service.py
#	backend/services/memory_dreaming_summarizer.py
#	backend/services/nl2skill_service.py
#	backend/utils/prompt_template_utils.py
#	deploy/images/dockerfiles/main/Dockerfile
#	frontend/app/[locale]/chat/streaming/chatStreamHandler.tsx
#	sdk/nexent/core/agents/core_agent.py
#	sdk/nexent/core/agents/nexent_agent.py
#	sdk/nexent/core/agents/output_protocol.py
#	sdk/nexent/core/concurrency/telemetry.py
#	test/backend/agents/test_create_agent_info.py
#	test/backend/test_model_consts.py
#	test/sdk/core/agents/test_core_agent.py
#	test/sdk/core/agents/test_nexent_agent.py
#	test/sdk/core/concurrency/test_thread_telemetry.py
@Jasonxia007 Jasonxia007 changed the title refactor/agent-prompt-component ♻️ Refactor agent prompt Oct 8, 2026
Comment thread backend/utils/document_vector_utils.py
@YehongPan
YehongPan merged commit 66bc13a into develop Oct 9, 2026
16 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants