yao/openapi/kb
Max 01820d9fe2 Add function execution support to Job system
- Introduced `AddFunc` method to the `Job` struct for adding Go functions as job executions, allowing for dynamic execution of functions with specified arguments.
- Enhanced internal execution handling to register functions in a global registry, ensuring proper cleanup after execution.
- Implemented `ExecuteFunc` method in the `Goroutine` struct to handle the execution of registered functions, including error handling and context management.
- Added comprehensive unit tests for `AddFunc`, verifying function registration, execution, and memory cleanup post-execution.
- Updated related documentation to reflect the new functionality and usage patterns for adding and executing Go functions within the job system.
2025-12-19 14:50:53 +08:00
..
addfile.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
addtext.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
addurl.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
backup.go Add Knowledge Base API endpoints and integrate with OpenAPI router 2025-07-23 15:19:40 +08:00
collection.go Enhance Assistant stream functionality and remove history handling 2025-12-08 10:28:26 +08:00
collection_process.go Implement authorized script execution and enhance context handling 2025-12-08 11:42:01 +08:00
document.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
filter.go Add authorization checks and filtering in collection and document listing 2025-10-31 19:50:21 +08:00
graph.go Refactor job handling and enhance document processing features 2025-09-02 10:05:51 +08:00
hit.go Enhance hit and vote retrieval logic in API 2025-08-22 11:25:46 +08:00
kb.go Implement authorized script execution and enhance context handling 2025-12-08 11:42:01 +08:00
provider.go Enhance knowledge base provider management with multi-language support 2025-08-09 16:57:23 +08:00
score.go Implement hit and vote management enhancements in API 2025-08-22 11:18:04 +08:00
search.go Add Knowledge Base API endpoints and integrate with OpenAPI router 2025-07-23 15:19:40 +08:00
segment.go Refactor job handling and enhance document processing features 2025-09-02 10:05:51 +08:00
types.go Enhance job and category management with unique ID generation 2025-09-02 16:57:23 +08:00
utils.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
vote.go Enhance hit and vote retrieval logic in API 2025-08-22 11:25:46 +08:00
weight.go Implement hit and vote management enhancements in API 2025-08-22 11:18:04 +08:00