yao/kb/api
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
addfile_test.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
addtext_test.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
addurl_test.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
api.go Enhance Assistant stream functionality and remove history handling 2025-12-08 10:28:26 +08:00
collection.go Implement Knowledge Base configuration loading and enhance Assistant initialization 2025-12-08 17:08:32 +08:00
collection_test.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
consts.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
document.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
document_test.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
interfaces.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
types.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00
utils.go Add function execution support to Job system 2025-12-19 14:50:53 +08:00