grok_types

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromGrok

func FromGrok(events []Event) []types.AgentEvent

Types

type Event

type Event struct {
	Type      string `json:"type"`
	Data      string `json:"data,omitempty"`
	SessionID string `json:"sessionId,omitempty"`
	IsError   bool   `json:"isError,omitempty"`
}

func ToGrok

func ToGrok(events []types.AgentEvent, sessionID string) []Event

type EventType

type EventType = string
const (
	EventText    EventType = "text"
	EventThought EventType = "thought"
	EventEnd     EventType = "end"
)

Jump to

Keyboard shortcuts

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