Versions in this module Expand all Collapse all v0 v0.61.0 Dec 3, 2026 Changes in this version + func ClaudeTokenCount(_ context.Context, count int64) []byte + func ConvertClaudeRequestToCodex(modelName string, inputRawJSON []byte, stream bool) ([]byte, error) + func ConvertClaudeRequestToCodexContext(ctx context.Context, modelName string, inputRawJSON []byte, stream bool) ([]byte, error) + func ConvertClaudeRequestToCodexWithCompat(modelName string, inputRawJSON []byte, stream bool) ([]byte, error) + func ConvertClaudeRequestToCodexWithCompatContext(ctx context.Context, modelName string, inputRawJSON []byte, stream bool) ([]byte, error) + func ConvertClaudeRequestToResponses(modelName string, inputRawJSON []byte, stream bool) ([]byte, error) + func ConvertCodexResponseToClaude(ctx context.Context, _ string, originalRequestRawJSON, _ []byte, ...) [][]byte + func ConvertCodexResponseToClaudeNonStream(ctx context.Context, _ string, originalRequestRawJSON, _ []byte, ...) []byte + type ConvertCodexResponseToClaudeParams struct + ActiveFunctionCall *codexFunctionCallStream + BlockIndex int + CommentaryMessageOpen bool + DeferredStreamEvents [][]byte + FunctionCallQueue []*codexFunctionCallStream + FunctionCalls map[string]*codexFunctionCallStream + HasEmittedToolUse bool + HasTextDelta bool + LastFunctionCall *codexFunctionCallStream + LastWebSearchToolUseID string + PublicCommentaryText strings.Builder + ShortToOriginalToolNames map[string]string + TextBlockOpen bool + ThinkingBlockOpen bool + ThinkingSignature string + ThinkingSummarySeen bool + ToolNamesResolved bool + VisiblePublicCommentary bool + WebSearchToolResultIDs map[string]struct{} + WebSearchToolUseIDs map[string]struct{}