fim

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package fim is the public Fill-in-the-Middle code completion interface - a standalone client library separate from the code_complete agent tool. FIM is explicitly suited to IDE integrations and in-editor ghost text: a host application (e.g. an editor UI) can call completion directly for each keystroke/pause without an LLM tool-calling loop deciding whether to call it - that decision doesn't make sense for this use case, the human (or editor) already triggered it deterministically.

Index

Constants

View Source
const (
	EventContentDelta = internalfim.EventContentDelta
	EventComplete     = internalfim.EventComplete
	EventError        = internalfim.EventError

	FinishReasonStop    = internalfim.FinishReasonStop
	FinishReasonLength  = internalfim.FinishReasonLength
	FinishReasonUnknown = internalfim.FinishReasonUnknown
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Completer

type Completer = internalfim.Completer

Completer is the interface for FIM providers.

type Event

type Event = internalfim.Event

Event is a single event in a streaming FIM response.

type EventType

type EventType = internalfim.EventType

EventType identifies the type of a streaming FIM event.

type FinishReason

type FinishReason = internalfim.FinishReason

FinishReason indicates why the model stopped generating.

type Request

type Request = internalfim.Request

Request holds the parameters for a FIM completion call.

type Response

type Response = internalfim.Response

Response holds the result of a completed FIM call.

type Usage

type Usage = internalfim.Usage

Usage tracks token consumption for a FIM completion.

Directories

Path Synopsis
Package fimproviders exposes seshat's fim.Completer implementations for direct use by a host application, independent of the agent/tool loop.
Package fimproviders exposes seshat's fim.Completer implementations for direct use by a host application, independent of the agent/tool loop.

Jump to

Keyboard shortcuts

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