yao/agent/context
Max eff70ab07d Implement interrupt handling for context management
- Added an interrupt controller to manage user interrupts during streaming operations.
- Introduced methods for registering and unregistering contexts in a global registry to facilitate interrupt handling.
- Enhanced the Assistant's Stream method to check for force interrupts and handle them appropriately.
- Updated context creation to include unique IDs for better identification during interrupts.
- Implemented logic for graceful and force interrupts, allowing for flexible response to user signals.
2025-11-19 18:41:31 +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 Implement interrupt handling for context management 2025-11-19 18:41:31 +08:00
context_test.go Implement event message handling and enhance output capabilities 2025-11-16 10:30:55 +08:00
interfaces.go Implement stream lifecycle events in OpenAI provider 2025-11-15 15:32:49 +08:00
interrupt.go Implement interrupt handling for context management 2025-11-19 18:41:31 +08:00
interrupt_test.go Implement interrupt handling for context management 2025-11-19 18:41:31 +08:00
jsapi.go Add trace management to context and enhance configuration options 2025-11-19 12:27:42 +08:00
jsapi_test.go Add trace management to context and enhance configuration options 2025-11-19 12:27:42 +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 Implement interrupt handling for context management 2025-11-19 18:41:31 +08:00
openapi_test.go Implement event message handling and enhance output capabilities 2025-11-16 10:30:55 +08:00
stack.go Refactor trace package structure and improve trace ID validation 2025-11-18 14:09:28 +08:00
stack_test.go Refactor trace package structure and improve trace ID validation 2025-11-18 14:09:28 +08:00
types.go Implement interrupt handling for context management 2025-11-19 18:41:31 +08:00
types_llm.go Add Claude API configuration and enhance vision support in LLM adapters 2025-11-17 10:53:08 +08:00
utils.go Remove deprecated agent API files and refactor agent loading logic 2025-11-11 11:23:20 +08:00