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
- type Attribution
- type AuditSeverity
- type ChatOptions
- type ChatProvider
- type ContentPart
- type ContinuationConfig
- type FluxMessage
- type FluxResponse
- type FluxStreamEvent
- type FluxTool
- type FluxUsage
- type ImageURLPart
- type InputAudioPart
- type ResolvedRoute
- type ResponseFormat
- type Severity
- type StreamResult
- type TokenSeverity
- type ToolCall
- type ToolChoiceOption
- type ToolResult
Constants ¶
const ( SeverityInfo = contracts.SeverityInfo SeverityLow = contracts.SeverityLow SeverityMedium = contracts.SeverityMedium SeverityHigh = contracts.SeverityHigh SeverityCritical = contracts.SeverityCritical )
const ( TokenSeverityCritical = contracts.TokenSeverityCritical TokenSeverityHigh = contracts.TokenSeverityHigh TokenSeverityMedium = contracts.TokenSeverityMedium TokenSeverityLow = contracts.TokenSeverityLow )
const ( AuditSeverityCritical = contracts.AuditSeverityCritical AuditSeverityWarning = contracts.AuditSeverityWarning AuditSeverityInfo = contracts.AuditSeverityInfo )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attribution ¶
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 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 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 ToolChoiceOption ¶
type ToolChoiceOption = llm.ToolChoiceOption
ToolChoiceOption controls how the model uses tools.