WeKnora/internal/types
wizardchen a4b255a456 feat: implement final_answer tool and enhance agent duration tracking
- Introduced the final_answer tool to ensure agents submit their complete responses as the last action, improving response accuracy and consistency.
- Updated the agent engine to log detailed information about tool calls and responses, including the total duration of agent execution.
- Enhanced the chat message model to include agent_duration_ms, tracking the total execution time from query start to answer delivery.
- Implemented JSON field extraction for streaming responses, allowing for more efficient handling of tool call outputs.

These changes significantly improve the agent's response handling and ensure that final answers are consistently delivered, enhancing overall user experience.
2026-03-09 11:46:56 +08:00
..
interfaces feat: add ListChunksByParentIDs method and enhance chunk merging logic 2026-03-05 18:14:14 +08:00
agent.go fix(swagger): resolve interface documentation generation error and regenerate docs 2026-02-27 09:52:07 +08:00
chat.go
…
chat_manage.go
…
chunk.go feat: implement parent-child chunking strategy for enhanced context management 2026-03-05 18:14:14 +08:00
cleanup.go
…
const.go
…
context_helpers.go feat: enhance document loading and state management in doc-content component 2026-03-02 21:21:49 +08:00
custom_agent.go feat: use language-neutral English prompts for multilingual LLM responses 2026-03-06 21:08:12 +08:00
dataset.go
…
docparser.go feat: implement parent-child chunking strategy for enhanced context management 2026-03-05 18:14:14 +08:00
embedding.go
…
errors.go
…
evaluation.go
…
event_bus.go
…
extract_graph.go refactor: simplify image handling in _resolve_images function 2026-03-03 22:23:23 +08:00
faq.go
…
graph.go
…
json.go
…
knowledge.go fix: handle empty metadata case in Knowledge struct 2026-03-02 21:21:49 +08:00
knowledgebase.go feat: update chunk size configurations for knowledge base processing 2026-03-05 18:14:14 +08:00
mcp.go feat: add built-in MCP service support 2026-03-05 21:57:01 +08:00
memory.go
…
message.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
model.go feat(security): add AES-256-GCM encryption for API keys at rest 2026-03-09 10:35:07 +08:00
organization.go
…
placeholder.go
…
retriever.go feat: support weaviate vectordb for knowledge retrieve 2026-03-09 10:36:16 +08:00
search.go feat: implement parent-child chunking strategy for enhanced context management 2026-03-05 18:14:14 +08:00
session.go
…
tag.go
…
tenant.go feat(storage): 集成S3存储适配器 2026-03-09 10:39:46 +08:00
user.go
…
web_search.go
…