NewClaudeCodeAPIHandler creates a new Claude API handlers instance. It takes an BaseAPIHandler instance as input and returns a ClaudeCodeAPIHandler. Parameters: - apiHandlers: The base API handler instance. Returns: - *ClaudeCodeAPIHandler: A new Claude code API handler instance.
(apiHandlers *handlers.BaseAPIHandler)
| 42 | // Returns: |
| 43 | // - *ClaudeCodeAPIHandler: A new Claude code API handler instance. |
| 44 | func NewClaudeCodeAPIHandler(apiHandlers *handlers.BaseAPIHandler) *ClaudeCodeAPIHandler { |
| 45 | return &ClaudeCodeAPIHandler{ |
| 46 | BaseAPIHandler: apiHandlers, |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // HandlerType returns the identifier for this handler implementation. |
| 51 | func (h *ClaudeCodeAPIHandler) HandlerType() string { |