Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.0.0-...-a92561a Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package types provides Rho-owned runtime types and shared compatibility aliases. Severity, TokenSeverity, and AuditSeverity are forwarded from internal/contracts/types. Provider-facing compatibility now lives in explicit adapters inside internal/types/client.go.

Index

Constants

View Source
const (
	SeverityInfo     = contracts.SeverityInfo
	SeverityLow      = contracts.SeverityLow
	SeverityMedium   = contracts.SeverityMedium
	SeverityHigh     = contracts.SeverityHigh
	SeverityCritical = contracts.SeverityCritical
)
View Source
const (
	TokenSeverityCritical = contracts.TokenSeverityCritical
	TokenSeverityHigh     = contracts.TokenSeverityHigh
	TokenSeverityMedium   = contracts.TokenSeverityMedium
	TokenSeverityLow      = contracts.TokenSeverityLow
)
View Source
const (
	AuditSeverityCritical = contracts.AuditSeverityCritical
	AuditSeverityWarning  = contracts.AuditSeverityWarning
	AuditSeverityInfo     = contracts.AuditSeverityInfo
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attribution

type Attribution struct {
	TrailerStyle  string `json:"trailer_style,omitempty"`
	GeneratedWith bool   `json:"generated_with,omitempty"`
}

type AuditSeverity

type AuditSeverity = contracts.AuditSeverity

AuditSeverity indicates how dangerous a security audit finding is.

type ChatOptions

type ChatOptions = llm.ChatOptions

ChatOptions holds Rho-owned request options for an engine chat call.

type ChatProvider

type ChatProvider interface {
	Chat(ctx context.Context, messages []FluxMessage, opts ChatOptions) (*FluxResponse, error)
	StreamChat(ctx context.Context, messages []FluxMessage, opts ChatOptions) (*StreamResult, error)
	Ping(ctx context.Context) error
	Name() string
}

ChatProvider is Rho's transport-provider interface.

type ContentPart

type ContentPart = llm.ContentPart

ContentPart is a provider-neutral multimodal message part. Rho owns this conversation shape; the Flux engine adapter translates it at the transport boundary. It aliases the canonical contract type.

type ContinuationConfig

type ContinuationConfig = llm.ContinuationConfig

ContinuationConfig controls output continuation behavior for Rho runtime calls.

func DefaultContinuationConfig

func DefaultContinuationConfig() ContinuationConfig

DefaultContinuationConfig is Rho's agent-loop continuation policy. Flux receives these limits through its engine request rather than owning the product policy.

type FluxMessage

type FluxMessage = llm.FluxMessage

FluxMessage is Rho's runtime conversation DTO. It intentionally mirrors the engine boundary shape while remaining Rho-owned.

type FluxResponse

type FluxResponse = llm.FluxResponse

FluxResponse is Rho's runtime chat response DTO.

type FluxStreamEvent

type FluxStreamEvent = llm.FluxStreamEvent

FluxStreamEvent is Rho's runtime stream event DTO.

type FluxTool

type FluxTool = llm.FluxTool

FluxTool is Rho's runtime tool definition DTO.

type FluxUsage

type FluxUsage = llm.FluxUsage

FluxUsage tracks token usage for Rho runtime responses and streams.

type ImageURLPart

type ImageURLPart = llm.ImageURLPart

ImageURLPart describes an image URL or data URI.

type InputAudioPart

type InputAudioPart = llm.InputAudioPart

InputAudioPart describes base64-encoded audio content.

type ResolvedRoute

type ResolvedRoute = llm.ResolvedRoute

ResolvedRoute is Rho's view of the concrete provider/model route selected by the provider engine. Keeping this projection Rho-owned prevents Flux's transport DTOs from leaking into product state and observability payloads.

type ResponseFormat

type ResponseFormat = llm.ResponseFormat

ResponseFormat specifies the desired output format for a Rho runtime request.

type Severity

type Severity = contracts.Severity

Severity represents the impact level of a finding.

type StreamResult

type StreamResult = llm.StreamResult

StreamResult wraps a Rho-owned streaming response with cleanup. It aliases the canonical contract type; its Close() method and canonical constructor (NewStreamResult) live in github.com/GrayCodeAI/flux/llm.

type TokenSeverity

type TokenSeverity = contracts.TokenSeverity

TokenSeverity defines rule severity for compression error patterns.

type ToolCall

type ToolCall = llm.ToolCall

ToolCall is Rho's runtime tool invocation DTO.

type ToolChoiceOption

type ToolChoiceOption = llm.ToolChoiceOption

ToolChoiceOption controls how the model uses tools.

type ToolResult

type ToolResult = llm.ToolResult

ToolResult is Rho's runtime tool result DTO.

Jump to

Keyboard shortcuts

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