types

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package types provides shared types used across GrayCodeAI hawk-related modules. Severity, TokenSeverity, and AuditSeverity are forwarded from the shared package. ToolCall and ToolResult come from eyrie/client.

Index

Constants

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

Variables

View Source
var ParseSeverity = types.ParseSeverity

ParseSeverity converts a string to a Severity.

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 = types.AuditSeverity

AuditSeverity indicates how dangerous a security audit finding is.

type ChatOptions

type ChatOptions = client.ChatOptions

type ContinuationConfig

type ContinuationConfig = client.ContinuationConfig

func DefaultContinuationConfig

func DefaultContinuationConfig() ContinuationConfig

type EyrieClient

type EyrieClient = client.EyrieClient

func NewClient

func NewClient(cfg *EyrieConfig) *EyrieClient

type EyrieConfig

type EyrieConfig = client.EyrieConfig

type EyrieMessage

type EyrieMessage = client.EyrieMessage

type EyrieResponse

type EyrieResponse = client.EyrieResponse

type EyrieStreamEvent

type EyrieStreamEvent = client.EyrieStreamEvent

type EyrieTool

type EyrieTool = client.EyrieTool

type EyrieUsage

type EyrieUsage = client.EyrieUsage

type Provider

type Provider = client.Provider

type Severity

type Severity = types.Severity

Severity represents the impact level of a finding.

type StreamResult

type StreamResult = client.StreamResult

func StreamChatWithContinuation

func StreamChatWithContinuation(ctx context.Context, p Provider, messages []EyrieMessage, opts ChatOptions, cfg ContinuationConfig) (*StreamResult, error)

type TokenSeverity

type TokenSeverity = types.TokenSeverity

TokenSeverity defines rule severity for compression error patterns.

type ToolCall

type ToolCall = client.ToolCall

ToolCall represents a tool invocation requested by the model.

func ParseInlineToolCalls

func ParseInlineToolCalls(content string) (string, []ToolCall)

type ToolResult

type ToolResult = client.ToolResult

ToolResult represents the result of a tool execution.

Jump to

Keyboard shortcuts

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