grok_types

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 2 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"`
	ToolName   string `json:"tool_name,omitempty"`
	Outcome    string `json:"outcome,omitempty"`
	DurationMs int    `json:"duration_ms,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"
	EventToolStarted   EventType = "tool_started"
	EventToolCompleted EventType = "tool_completed"
)

Jump to

Keyboard shortcuts

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