codexapp

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package codexapp adapts the Codex app-server JSON-RPC protocol to cogito.LLM.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoResponse = errors.New("codex app-server completed without an assistant message")

Functions

This section is empty.

Types

type Config

type Config struct {
	Command string
	Args    []string
	Model   string
	Cwd     string
}

type LLM

type LLM struct {
	// contains filtered or unexported fields
}

func New

func New(config Config) *LLM

func (*LLM) Ask

func (l *LLM) Ask(ctx context.Context, fragment cogito.Fragment) (cogito.Fragment, error)

func (*LLM) CreateChatCompletion

func (l *LLM) CreateChatCompletion(ctx context.Context, request openai.ChatCompletionRequest) (cogito.LLMReply, cogito.LLMUsage, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL