yao/agent/context
Max b13c40e88d Add concurrent testing and object registration for JsValue function
- Implemented TestJsValueConcurrent to validate the JsValue function under concurrent requests, ensuring proper handling of multiple goroutines.
- Added TestJsValueRegistrationAndCleanup to verify the registration and cleanup of context objects, enhancing resource management.
- Introduced object registration and release mechanisms in the Context type to manage JavaScript object lifecycles effectively.
- Utilized sync.Mutex for thread-safe access to shared resources, improving the robustness of concurrent operations.
2025-11-13 14:43:40 +08:00
..
chat.go Remove deprecated agent API files and refactor agent loading logic 2025-11-11 11:23:20 +08:00
chat_test.go Remove deprecated agent API files and refactor agent loading logic 2025-11-11 11:23:20 +08:00
context.go Refactor context and assistant methods for improved stack management and resource cleanup 2025-11-12 11:24:25 +08:00
context_test.go Refactor completion request handling in context tests 2025-11-11 16:23:22 +08:00
interfaces.go Refactor context and assistant methods for improved stack management and resource cleanup 2025-11-12 11:24:25 +08:00
jsapi.go Add concurrent testing and object registration for JsValue function 2025-11-13 14:43:40 +08:00
jsapi_test.go Add concurrent testing and object registration for JsValue function 2025-11-13 14:43:40 +08:00
message.go Remove deprecated agent API files and refactor agent loading logic 2025-11-11 11:23:20 +08:00
message_test.go Remove deprecated agent API files and refactor agent loading logic 2025-11-11 11:23:20 +08:00
openapi.go Refactor context and assistant methods for improved stack management and resource cleanup 2025-11-12 11:24:25 +08:00
openapi_test.go Refactor context and assistant methods for improved stack management and resource cleanup 2025-11-12 11:24:25 +08:00
stack.go Refactor context and assistant methods for improved stack management and resource cleanup 2025-11-12 11:24:25 +08:00
stack_test.go Refactor context and assistant methods for improved stack management and resource cleanup 2025-11-12 11:24:25 +08:00
types.go Refactor Assistant methods and context handling for improved functionality 2025-11-13 09:26:45 +08:00
utils.go Remove deprecated agent API files and refactor agent loading logic 2025-11-11 11:23:20 +08:00