chatpb

package module
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: GPL-3.0 Imports: 27 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Who_name = map[int32]string{
		0: "NOONE",
		1: "REGEX",
		2: "USER",
	}
	Who_value = map[string]int32{
		"NOONE": 0,
		"REGEX": 1,
		"USER":  2,
	}
)

Enum value maps for Who.

Functions

This section is empty.

Types

type AbortSignal added in v0.0.4

type AbortSignal struct {
	// contains filtered or unexported fields
}

Abort signal for the request

func (*AbortSignal) Descriptor deprecated added in v0.0.4

func (*AbortSignal) Descriptor() ([]byte, []int)

Deprecated: Use AbortSignal.ProtoReflect.Descriptor instead.

func (*AbortSignal) ProtoMessage added in v0.0.4

func (*AbortSignal) ProtoMessage()

func (*AbortSignal) ProtoReflect added in v0.0.4

func (x *AbortSignal) ProtoReflect() protoreflect.Message

func (*AbortSignal) Reset added in v0.0.4

func (x *AbortSignal) Reset()

func (*AbortSignal) String added in v0.0.4

func (x *AbortSignal) String() string

type AbortSignalScanner added in v0.0.4

type AbortSignalScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*AbortSignalScanner) Next added in v0.0.4

func (it *AbortSignalScanner) Next() *AbortSignal

Next() returns the next thing in the array

func (*AbortSignalScanner) Scan added in v0.0.4

func (it *AbortSignalScanner) Scan() bool

type ArgsInfo added in v0.0.4

type ArgsInfo struct {
	AbsolutePath         string   `protobuf:"bytes,1,opt,name=absolute_path,json=absolutePath,proto3" json:"absolute_path,omitempty"`
	Description          string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Command              string   `protobuf:"bytes,3,opt,name=command,proto3" json:"command,omitempty"`
	NewString            string   `protobuf:"bytes,4,opt,name=new_string,json=newString,proto3" json:"new_string,omitempty"`
	OldString            string   `protobuf:"bytes,5,opt,name=old_string,json=oldString,proto3" json:"old_string,omitempty"`
	ExpectedReplacements int32    `protobuf:"varint,6,opt,name=expected_replacements,json=expectedReplacements,proto3" json:"expected_replacements,omitempty"`
	FilePath             string   `protobuf:"bytes,7,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	Directory            string   `protobuf:"bytes,8,opt,name=directory,proto3" json:"directory,omitempty"`
	Path                 string   `protobuf:"bytes,9,opt,name=path,proto3" json:"path,omitempty"`
	ThinkingConfig       string   `protobuf:"bytes,10,opt,name=thinkingConfig,proto3" json:"thinkingConfig,omitempty"`
	Pattern              string   `protobuf:"bytes,11,opt,name=pattern,proto3" json:"pattern,omitempty"`
	Content              string   `protobuf:"bytes,12,opt,name=content,proto3" json:"content,omitempty"`
	Fact                 string   `protobuf:"bytes,13,opt,name=fact,proto3" json:"fact,omitempty"`
	Paths                []string `protobuf:"bytes,14,rep,name=paths,proto3" json:"paths,omitempty"`
	Query                string   `protobuf:"bytes,15,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*ArgsInfo) Descriptor deprecated added in v0.0.4

func (*ArgsInfo) Descriptor() ([]byte, []int)

Deprecated: Use ArgsInfo.ProtoReflect.Descriptor instead.

func (*ArgsInfo) GetAbsolutePath added in v0.0.4

func (x *ArgsInfo) GetAbsolutePath() string

func (*ArgsInfo) GetCommand added in v0.0.4

func (x *ArgsInfo) GetCommand() string

func (*ArgsInfo) GetContent added in v0.0.4

func (x *ArgsInfo) GetContent() string

func (*ArgsInfo) GetDescription added in v0.0.4

func (x *ArgsInfo) GetDescription() string

func (*ArgsInfo) GetDirectory added in v0.0.4

func (x *ArgsInfo) GetDirectory() string

func (*ArgsInfo) GetExpectedReplacements added in v0.0.4

func (x *ArgsInfo) GetExpectedReplacements() int32

func (*ArgsInfo) GetFact added in v0.0.4

func (x *ArgsInfo) GetFact() string

func (*ArgsInfo) GetFilePath added in v0.0.4

func (x *ArgsInfo) GetFilePath() string

func (*ArgsInfo) GetNewString added in v0.0.4

func (x *ArgsInfo) GetNewString() string

func (*ArgsInfo) GetOldString added in v0.0.4

func (x *ArgsInfo) GetOldString() string

func (*ArgsInfo) GetPath added in v0.0.4

func (x *ArgsInfo) GetPath() string

func (*ArgsInfo) GetPaths added in v0.0.5

func (x *ArgsInfo) GetPaths() []string

func (*ArgsInfo) GetPattern added in v0.0.4

func (x *ArgsInfo) GetPattern() string

func (*ArgsInfo) GetQuery added in v0.0.5

func (x *ArgsInfo) GetQuery() string

func (*ArgsInfo) GetThinkingConfig added in v0.0.4

func (x *ArgsInfo) GetThinkingConfig() string

func (*ArgsInfo) ProtoMessage added in v0.0.4

func (*ArgsInfo) ProtoMessage()

func (*ArgsInfo) ProtoReflect added in v0.0.4

func (x *ArgsInfo) ProtoReflect() protoreflect.Message

func (*ArgsInfo) Reset added in v0.0.4

func (x *ArgsInfo) Reset()

func (*ArgsInfo) String added in v0.0.4

func (x *ArgsInfo) String() string

type ArgsInfoScanner added in v0.0.4

type ArgsInfoScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ArgsInfoScanner) Next added in v0.0.4

func (it *ArgsInfoScanner) Next() *ArgsInfo

Next() returns the next thing in the array

func (*ArgsInfoScanner) Scan added in v0.0.4

func (it *ArgsInfoScanner) Scan() bool

type Book added in v0.0.5

type Book struct {
	Uuid          string                 `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:unique` `autogenpb:sort`
	Ctime         *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ctime,proto3" json:"ctime,omitempty"`
	Title         string                 `protobuf:"bytes,3,opt,name=Title,proto3" json:"Title,omitempty"`
	Version       int32                  `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	From          Who                    `protobuf:"varint,5,opt,name=from,proto3,enum=chatpb.Who" json:"from,omitempty"`
	Content       string                 `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
	Table         *Table                 `protobuf:"bytes,7,opt,name=table,proto3" json:"table,omitempty"`
	GeminiRequest *GeminiRequest         `protobuf:"bytes,8,opt,name=GeminiRequest,proto3" json:"GeminiRequest,omitempty"`
	// contains filtered or unexported fields
}

func (*Book) Descriptor deprecated added in v0.0.5

func (*Book) Descriptor() ([]byte, []int)

Deprecated: Use Book.ProtoReflect.Descriptor instead.

func (*Book) GetContent added in v0.0.5

func (x *Book) GetContent() string

func (*Book) GetCtime added in v0.0.5

func (x *Book) GetCtime() *timestamppb.Timestamp

func (*Book) GetFrom added in v0.0.5

func (x *Book) GetFrom() Who

func (*Book) GetGeminiRequest added in v0.0.5

func (x *Book) GetGeminiRequest() *GeminiRequest

func (*Book) GetTable added in v0.0.5

func (x *Book) GetTable() *Table

func (*Book) GetTitle added in v0.0.5

func (x *Book) GetTitle() string

func (*Book) GetUuid added in v0.0.5

func (x *Book) GetUuid() string

func (*Book) GetVersion added in v0.0.5

func (x *Book) GetVersion() int32

func (*Book) ProtoMessage added in v0.0.5

func (*Book) ProtoMessage()

func (*Book) ProtoReflect added in v0.0.5

func (x *Book) ProtoReflect() protoreflect.Message

func (*Book) Reset added in v0.0.5

func (x *Book) Reset()

func (*Book) String added in v0.0.5

func (x *Book) String() string

type BookFunc added in v0.0.18

type BookFunc struct {
	Custom func(*Book)
	Width  int
	Attr   *guipb.ColAttr
	Header *guipb.Widget
	// contains filtered or unexported fields
}

func (*BookFunc) SetTitle added in v0.0.18

func (sf *BookFunc) SetTitle(title string)

type BookScanner added in v0.0.5

type BookScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*BookScanner) Next added in v0.0.5

func (it *BookScanner) Next() *Book

Next() returns the next thing in the array

func (*BookScanner) Scan added in v0.0.5

func (it *BookScanner) Scan() bool

type Books added in v0.0.5

type Books struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Uuid      string                 `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`       // `autogenpb:uuid:8b6409ad-4498-43a6-b09a-7835c00dcb9a`
	Version   string                 `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // `autogenpb:version:v0.0.1`
	Books     []*Book                `protobuf:"bytes,3,rep,name=Books,proto3" json:"Books,omitempty"`     // THIS MUST BE  Chat  and then  Chats
	Ctime     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=ctime,proto3" json:"ctime,omitempty"`
	Title     string                 `protobuf:"bytes,5,opt,name=Title,proto3" json:"Title,omitempty"`
	TitleUuid string                 `protobuf:"bytes,6,opt,name=TitleUuid,proto3" json:"TitleUuid,omitempty"`
	// contains filtered or unexported fields
}

func NewBooks added in v0.0.5

func NewBooks() *Books

func (*Books) All added in v0.0.5

func (x *Books) All() *BookScanner

func (*Books) Append added in v0.0.5

func (x *Books) Append(y *Book)

a Append() shortcut (that does Clone() with a mutex) notsure if it really works doesn't allow nil

func (*Books) AppendByUuid added in v0.0.5

func (x *Books) AppendByUuid(y *Book) bool

func (*Books) Clone added in v0.0.22

func (x *Books) Clone(y *Book) *Book

a Clone() shortcut (with a mutex). notsure if it really works

func (*Books) CloneByUuid added in v0.0.22

func (x *Books) CloneByUuid(y *Book) bool

func (*Books) ConfigSave added in v0.0.5

func (all *Books) ConfigSave() error

write to ~/.config/regex/ unless ENV{REGEX_HOME} is set

func (*Books) Delete added in v0.0.5

func (x *Books) Delete(y *Book) bool

func (*Books) DeleteByUuid added in v0.0.5

func (x *Books) DeleteByUuid(s string) bool

func (*Books) Descriptor deprecated added in v0.0.5

func (*Books) Descriptor() ([]byte, []int)

Deprecated: Use Books.ProtoReflect.Descriptor instead.

func (*Books) FindByUuid added in v0.0.5

func (x *Books) FindByUuid(s string) *Book

lookup a Books by the Uuid

func (*Books) FormatJSON added in v0.0.5

func (v *Books) FormatJSON() string

human readable JSON

func (*Books) FormatTEXT added in v0.0.5

func (v *Books) FormatTEXT() string

apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!

func (*Books) GetBooks added in v0.0.5

func (x *Books) GetBooks() []*Book

func (*Books) GetCtime added in v0.0.5

func (x *Books) GetCtime() *timestamppb.Timestamp

func (*Books) GetTitle added in v0.0.5

func (x *Books) GetTitle() string

func (*Books) GetTitleUuid added in v0.0.5

func (x *Books) GetTitleUuid() string

func (*Books) GetUuid added in v0.0.5

func (x *Books) GetUuid() string

func (*Books) GetVersion added in v0.0.5

func (x *Books) GetVersion() string

func (*Books) InsertByUuid added in v0.0.5

func (x *Books) InsertByUuid(y string) *Book

returns a Book if Uuid matches, otherwise create

func (*Books) IterAll added in v0.0.5

func (x *Books) IterAll() iter.Seq[*Book]

Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'

func (*Books) IterByUuid added in v0.0.5

func (x *Books) IterByUuid() iter.Seq[*Book]

'for x := range' syntax using the awesome golang 1.24 'iter'

func (*Books) Len added in v0.0.5

func (x *Books) Len() int

func (*Books) Marshal added in v0.0.5

func (v *Books) Marshal() ([]byte, error)

marshal to wire. This is called winning.

func (*Books) MarshalJSON added in v0.0.5

func (v *Books) MarshalJSON() ([]byte, error)

marshal json

func (*Books) NewTable added in v0.0.5

func (x *Books) NewTable(title string) *BooksTable

func (*Books) ProtoMessage added in v0.0.5

func (*Books) ProtoMessage()

func (*Books) ProtoReflect added in v0.0.5

func (x *Books) ProtoReflect() protoreflect.Message

func (*Books) Reset added in v0.0.5

func (x *Books) Reset()

func (*Books) SortByUuid added in v0.0.5

func (x *Books) SortByUuid() *BookScanner

func (*Books) SortUuid added in v0.0.20

func (pb *Books) SortUuid()

func (*Books) String added in v0.0.5

func (x *Books) String() string

func (*Books) Unmarshal added in v0.0.5

func (v *Books) Unmarshal(data []byte) error

unmarshal from wire. You have won.

func (*Books) UnmarshalJSON added in v0.0.5

func (v *Books) UnmarshalJSON(data []byte) error

unmarshal json

func (*Books) UnmarshalTEXT added in v0.0.5

func (v *Books) UnmarshalTEXT(data []byte) error

unmarshalTEXT. This reads the .text config file back in after the user edits it

type BooksScanner added in v0.0.5

type BooksScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*BooksScanner) Next added in v0.0.5

func (it *BooksScanner) Next() *Books

Next() returns the next thing in the array

func (*BooksScanner) Scan added in v0.0.5

func (it *BooksScanner) Scan() bool

type BooksTable added in v0.0.5

type BooksTable struct {
	Funcs      []*BookFunc
	CustomFunc func(*Book)
	// contains filtered or unexported fields
}

func (*BooksTable) AddButtonFunc added in v0.0.5

func (t *BooksTable) AddButtonFunc(title string, f func(*Book) string) *BookFunc

force the application to choose the type of data. this allows the GUI plugin to be smarter

func (*BooksTable) AddContent added in v0.0.5

func (t *BooksTable) AddContent() *BookFunc

func (*BooksTable) AddIntFunc added in v0.0.5

func (t *BooksTable) AddIntFunc(title string, f func(*Book) int) *BookFunc

force the application to choose the type of data. this allows the GUI plugin to be smarter

func (*BooksTable) AddStringFunc added in v0.0.5

func (t *BooksTable) AddStringFunc(title string, f func(*Book) string) *BookFunc

force the application to choose the type of data. this allows the GUI plugin to be smarter

func (*BooksTable) AddTimeFunc added in v0.0.5

func (t *BooksTable) AddTimeFunc(title string, f func(*Book) time.Time) *BookFunc

force the application to choose the type of data. this allows the GUI plugin to be smarter

func (*BooksTable) AddTitle added in v0.0.5

func (t *BooksTable) AddTitle() *BookFunc

func (*BooksTable) AddUuid added in v0.0.5

func (t *BooksTable) AddUuid() *BookFunc

func (*BooksTable) Custom added in v0.0.5

func (mt *BooksTable) Custom(f func(*Book))

func (*BooksTable) Delete added in v0.0.5

func (mt *BooksTable) Delete()

func (*BooksTable) GetUuid added in v0.0.5

func (mt *BooksTable) GetUuid() string

func (*BooksTable) MakeTable added in v0.0.5

func (mt *BooksTable) MakeTable()

func (*BooksTable) NewUuid added in v0.0.5

func (mt *BooksTable) NewUuid()

func (*BooksTable) PrintTable added in v0.0.15

func (t *BooksTable) PrintTable()

formats & prints the table as text to Stdout. a real timesaver!

func (*BooksTable) SetParent added in v0.0.5

func (mt *BooksTable) SetParent(p *gui.Node)

func (*BooksTable) ShowTable added in v0.0.5

func (mt *BooksTable) ShowTable()

type Chat

type Chat struct {
	Uuid     string                 `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // `autogenpb:unique` `autogenpb:sort`
	Ctime    *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ctime,proto3" json:"ctime,omitempty"`
	ChatName string                 `protobuf:"bytes,3,opt,name=ChatName,proto3" json:"ChatName,omitempty"`
	Entries  []*ChatEntry           `protobuf:"bytes,4,rep,name=Entries,proto3" json:"Entries,omitempty"`
	Session  []*SessionStats        `protobuf:"bytes,5,rep,name=Session,proto3" json:"Session,omitempty"`
	// contains filtered or unexported fields
}

func (*Chat) AddGeminiRequest added in v0.0.5

func (c *Chat) AddGeminiRequest(fname string, age time.Time, pb *GeminiRequest) bool

returns true if the pb was added to indicate that ConfigSave() should be run to write it out to disk

func (*Chat) AppendEntry added in v0.0.4

func (x *Chat) AppendEntry(y *ChatEntry)

a Append() shortcut (that does Clone() with a mutex) notsure if it really works

func (*Chat) Descriptor deprecated

func (*Chat) Descriptor() ([]byte, []int)

Deprecated: Use Chat.ProtoReflect.Descriptor instead.

func (*Chat) GetChatName

func (x *Chat) GetChatName() string

func (*Chat) GetCtime

func (x *Chat) GetCtime() *timestamppb.Timestamp

func (*Chat) GetEntries

func (x *Chat) GetEntries() []*ChatEntry

func (*Chat) GetSession

func (x *Chat) GetSession() []*SessionStats

func (*Chat) GetUuid

func (x *Chat) GetUuid() string

func (*Chat) PrintChatEntriesTable added in v0.0.5

func (c *Chat) PrintChatEntriesTable()

func (*Chat) PrintChatGeminiTable added in v0.0.5

func (c *Chat) PrintChatGeminiTable()

func (*Chat) PrintChatStatsTable added in v0.0.5

func (c *Chat) PrintChatStatsTable()

func (*Chat) ProtoMessage

func (*Chat) ProtoMessage()

func (*Chat) ProtoReflect

func (x *Chat) ProtoReflect() protoreflect.Message

func (*Chat) Reset

func (x *Chat) Reset()

func (*Chat) String

func (x *Chat) String() string

func (*Chat) VerifyUuid

func (c *Chat) VerifyUuid() bool

type ChatEntry

type ChatEntry struct {
	From           Who                    `protobuf:"varint,1,opt,name=from,proto3,enum=chatpb.Who" json:"from,omitempty"`
	Ctime          *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=ctime,proto3" json:"ctime,omitempty"`
	Content        string                 `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	Table          *Table                 `protobuf:"bytes,4,opt,name=table,proto3" json:"table,omitempty"`
	ToolCalls      []*ToolCall            `protobuf:"bytes,5,rep,name=ToolCalls,proto3" json:"ToolCalls,omitempty"`
	ContentFile    string                 `protobuf:"bytes,6,opt,name=ContentFile,proto3" json:"ContentFile,omitempty"`
	Uuid           string                 `protobuf:"bytes,7,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Snippets       []*CodeSnippet         `protobuf:"bytes,8,rep,name=Snippets,proto3" json:"Snippets,omitempty"`
	Parts          []*Part                `protobuf:"bytes,9,rep,name=parts,proto3" json:"parts,omitempty"`
	GeminiRequest  *GeminiRequest         `protobuf:"bytes,10,opt,name=GeminiRequest,proto3" json:"GeminiRequest,omitempty"`
	RequestCounter int32                  `protobuf:"varint,11,opt,name=RequestCounter,proto3" json:"RequestCounter,omitempty"`
	Paths          []string               `protobuf:"bytes,12,rep,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatEntry) Descriptor deprecated

func (*ChatEntry) Descriptor() ([]byte, []int)

Deprecated: Use ChatEntry.ProtoReflect.Descriptor instead.

func (*ChatEntry) FormatJSON added in v0.0.5

func (v *ChatEntry) FormatJSON() string

human readable JSON

func (*ChatEntry) FormatTEXT added in v0.0.5

func (v *ChatEntry) FormatTEXT() string

apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!

func (*ChatEntry) GetContent

func (x *ChatEntry) GetContent() string

func (*ChatEntry) GetContentFile

func (x *ChatEntry) GetContentFile() string

func (*ChatEntry) GetCtime

func (x *ChatEntry) GetCtime() *timestamppb.Timestamp

func (*ChatEntry) GetFrom

func (x *ChatEntry) GetFrom() Who

func (*ChatEntry) GetGeminiRequest added in v0.0.4

func (x *ChatEntry) GetGeminiRequest() *GeminiRequest

func (*ChatEntry) GetParts added in v0.0.4

func (x *ChatEntry) GetParts() []*Part

func (*ChatEntry) GetPaths added in v0.0.5

func (x *ChatEntry) GetPaths() []string

func (*ChatEntry) GetRequestCounter added in v0.0.4

func (x *ChatEntry) GetRequestCounter() int32

func (*ChatEntry) GetSnippets

func (x *ChatEntry) GetSnippets() []*CodeSnippet

func (*ChatEntry) GetTable

func (x *ChatEntry) GetTable() *Table

func (*ChatEntry) GetToolCalls

func (x *ChatEntry) GetToolCalls() []*ToolCall

func (*ChatEntry) GetUuid

func (x *ChatEntry) GetUuid() string

func (*ChatEntry) Marshal added in v0.0.5

func (v *ChatEntry) Marshal() ([]byte, error)

marshal to wire. This is called winning.

func (*ChatEntry) MarshalJSON added in v0.0.5

func (v *ChatEntry) MarshalJSON() ([]byte, error)

marshal json

func (*ChatEntry) ProtoMessage

func (*ChatEntry) ProtoMessage()

func (*ChatEntry) ProtoReflect

func (x *ChatEntry) ProtoReflect() protoreflect.Message

func (*ChatEntry) Reset

func (x *ChatEntry) Reset()

func (*ChatEntry) String

func (x *ChatEntry) String() string

func (*ChatEntry) Unmarshal added in v0.0.5

func (v *ChatEntry) Unmarshal(data []byte) error

unmarshal from wire. You have won.

func (*ChatEntry) UnmarshalJSON added in v0.0.5

func (v *ChatEntry) UnmarshalJSON(data []byte) error

unmarshal json

func (*ChatEntry) UnmarshalTEXT added in v0.0.5

func (v *ChatEntry) UnmarshalTEXT(data []byte) error

unmarshalTEXT. This reads the .text config file back in after the user edits it

func (*ChatEntry) VerifyGeminiRequest added in v0.0.5

func (c *ChatEntry) VerifyGeminiRequest(pb *GeminiRequest) (int, int, bool)

returns true if the pb is probably the same

type ChatEntryScanner

type ChatEntryScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ChatEntryScanner) Next

func (it *ChatEntryScanner) Next() *ChatEntry

Next() returns the next thing in the array

func (*ChatEntryScanner) Scan

func (it *ChatEntryScanner) Scan() bool

type ChatFunc added in v0.0.18

type ChatFunc struct {
	Custom func(*Chat)
	Width  int
	Attr   *guipb.ColAttr
	Header *guipb.Widget
	// contains filtered or unexported fields
}

func (*ChatFunc) SetTitle added in v0.0.18

func (sf *ChatFunc) SetTitle(title string)

type ChatScanner

type ChatScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ChatScanner) Next

func (it *ChatScanner) Next() *Chat

Next() returns the next thing in the array

func (*ChatScanner) Scan

func (it *ChatScanner) Scan() bool

type Chats

type Chats struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Uuid     string  `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`         // `autogenpb:uuid:9fd31f10-c25d-4d66-bc8d-5f6eb7c79057` `autogenpb:primary`
	Version  string  `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`   // `autogenpb:version:v0.0.1`
	Chats    []*Chat `protobuf:"bytes,3,rep,name=Chats,proto3" json:"Chats,omitempty"`       // THIS MUST BE  Chat  and then  Chats
	Filename string  `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"` // `autogenpb:save` -- this enables autogenerated pb.Load() and pb.Save()
	// contains filtered or unexported fields
}

func ExampleChat

func ExampleChat() *Chats

func NewChats

func NewChats() *Chats

func UnmarshalChats

func UnmarshalChats(data []byte) (*Chats, error)

func UnmarshalChatsTEXT

func UnmarshalChatsTEXT(data []byte) (*Chats, error)

func (*Chats) AddFile

func (all *Chats) AddFile(filename string) error

func (*Chats) AddRegexComment

func (c *Chats) AddRegexComment(s string) *ChatEntry

func (*Chats) AddTable

func (c *Chats) AddTable() *Table

func (*Chats) AddUserComment

func (c *Chats) AddUserComment(s string) *ChatEntry

func (*Chats) All

func (x *Chats) All() *ChatScanner

func (*Chats) Append

func (x *Chats) Append(y *Chat)

a Append() shortcut (that does Clone() with a mutex) notsure if it really works doesn't allow nil

func (*Chats) AppendByUuid

func (x *Chats) AppendByUuid(y *Chat) bool

func (*Chats) AppendNew

func (x *Chats) AppendNew(y *Chat)

func (*Chats) Clone added in v0.0.22

func (x *Chats) Clone(y *Chat) *Chat

a Clone() shortcut (with a mutex). notsure if it really works

func (*Chats) CloneByUuid added in v0.0.22

func (x *Chats) CloneByUuid(y *Chat) bool

func (*Chats) ConfigLoad

func (all *Chats) ConfigLoad() error

load the regex.pb file. I shouldn't really matter if this fails. the file should be autogenerated. This is used locally just for speed

func (*Chats) ConfigSave

func (all *Chats) ConfigSave() error

write to ~/.config/regex/ unless ENV{REGEX_HOME} is set

func (*Chats) Delete

func (x *Chats) Delete(y *Chat) bool

func (*Chats) DeleteByUuid

func (x *Chats) DeleteByUuid(s string) bool

func (*Chats) Descriptor deprecated

func (*Chats) Descriptor() ([]byte, []int)

Deprecated: Use Chats.ProtoReflect.Descriptor instead.

func (*Chats) FindByUuid

func (x *Chats) FindByUuid(s string) *Chat

lookup a Chats by the Uuid

func (*Chats) FindUuid added in v0.0.5

func (all *Chats) FindUuid(id string) *Chat

func (*Chats) FormatJSON

func (v *Chats) FormatJSON() string

human readable JSON

func (*Chats) FormatTEXT

func (v *Chats) FormatTEXT() string

apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!

func (*Chats) GetChats

func (x *Chats) GetChats() []*Chat

func (*Chats) GetFilename added in v0.0.18

func (x *Chats) GetFilename() string

func (*Chats) GetUuid

func (x *Chats) GetUuid() string

func (*Chats) GetVersion

func (x *Chats) GetVersion() string

func (*Chats) InsertByUuid

func (x *Chats) InsertByUuid(y string) *Chat

returns a Chat if Uuid matches, otherwise create

func (*Chats) IterAll

func (x *Chats) IterAll() iter.Seq[*Chat]

Iterate 'for x := range' syntax using the awesome golang 1.24 'iter'

func (*Chats) IterByUuid

func (x *Chats) IterByUuid() iter.Seq[*Chat]

'for x := range' syntax using the awesome golang 1.24 'iter'

func (*Chats) Len

func (x *Chats) Len() int

func (*Chats) Load added in v0.0.18

func (pb *Chats) Load() error

func (*Chats) Marshal

func (v *Chats) Marshal() ([]byte, error)

marshal to wire. This is called winning.

func (*Chats) MarshalJSON

func (v *Chats) MarshalJSON() ([]byte, error)

marshal json

func (*Chats) NewTable added in v0.0.5

func (x *Chats) NewTable(title string) *ChatsTable

func (*Chats) PrintHumanTable added in v0.0.5

func (all *Chats) PrintHumanTable()

func (*Chats) ProtoMessage

func (*Chats) ProtoMessage()

func (*Chats) ProtoReflect

func (x *Chats) ProtoReflect() protoreflect.Message

func (*Chats) Reset

func (x *Chats) Reset()

func (*Chats) Save added in v0.0.18

func (pb *Chats) Save() error

func (*Chats) SortByUuid

func (x *Chats) SortByUuid() *ChatScanner

func (*Chats) SortUuid added in v0.0.20

func (pb *Chats) SortUuid()

func (*Chats) String

func (x *Chats) String() string

func (*Chats) Unmarshal

func (v *Chats) Unmarshal(data []byte) error

unmarshal from wire. You have won.

func (*Chats) UnmarshalJSON

func (v *Chats) UnmarshalJSON(data []byte) error

unmarshal json

func (*Chats) UnmarshalTEXT

func (v *Chats) UnmarshalTEXT(data []byte) error

unmarshalTEXT. This reads the .text config file back in after the user edits it

func (*Chats) VerifyUuids

func (chats *Chats) VerifyUuids() bool

type ChatsScanner

type ChatsScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ChatsScanner) Next

func (it *ChatsScanner) Next() *Chats

Next() returns the next thing in the array

func (*ChatsScanner) Scan

func (it *ChatsScanner) Scan() bool

type ChatsTable added in v0.0.5

type ChatsTable struct {
	Funcs      []*ChatFunc
	CustomFunc func(*Chat)
	// contains filtered or unexported fields
}

func (*ChatsTable) AddButtonFunc added in v0.0.5

func (t *ChatsTable) AddButtonFunc(title string, f func(*Chat) string) *ChatFunc

force the application to choose the type of data. this allows the GUI plugin to be smarter

func (*ChatsTable) AddChatName added in v0.0.5

func (t *ChatsTable) AddChatName() *ChatFunc

func (*ChatsTable) AddIntFunc added in v0.0.5

func (t *ChatsTable) AddIntFunc(title string, f func(*Chat) int) *ChatFunc

force the application to choose the type of data. this allows the GUI plugin to be smarter

func (*ChatsTable) AddStringFunc added in v0.0.5

func (t *ChatsTable) AddStringFunc(title string, f func(*Chat) string) *ChatFunc

force the application to choose the type of data. this allows the GUI plugin to be smarter

func (*ChatsTable) AddTimeFunc added in v0.0.5

func (t *ChatsTable) AddTimeFunc(title string, f func(*Chat) time.Time) *ChatFunc

force the application to choose the type of data. this allows the GUI plugin to be smarter

func (*ChatsTable) AddUuid added in v0.0.5

func (t *ChatsTable) AddUuid() *ChatFunc

func (*ChatsTable) Custom added in v0.0.5

func (mt *ChatsTable) Custom(f func(*Chat))

func (*ChatsTable) Delete added in v0.0.5

func (mt *ChatsTable) Delete()

func (*ChatsTable) GetUuid added in v0.0.5

func (mt *ChatsTable) GetUuid() string

func (*ChatsTable) MakeTable added in v0.0.5

func (mt *ChatsTable) MakeTable()

func (*ChatsTable) NewUuid added in v0.0.5

func (mt *ChatsTable) NewUuid()

func (*ChatsTable) PrintTable added in v0.0.15

func (t *ChatsTable) PrintTable()

formats & prints the table as text to Stdout. a real timesaver!

func (*ChatsTable) SetParent added in v0.0.5

func (mt *ChatsTable) SetParent(p *gui.Node)

func (*ChatsTable) ShowTable added in v0.0.5

func (mt *ChatsTable) ShowTable()

type CodeSnippet

type CodeSnippet struct {
	Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
	Content  string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
	// contains filtered or unexported fields
}

func (*CodeSnippet) Descriptor deprecated

func (*CodeSnippet) Descriptor() ([]byte, []int)

Deprecated: Use CodeSnippet.ProtoReflect.Descriptor instead.

func (*CodeSnippet) GetContent

func (x *CodeSnippet) GetContent() string

func (*CodeSnippet) GetFilename

func (x *CodeSnippet) GetFilename() string

func (*CodeSnippet) ProtoMessage

func (*CodeSnippet) ProtoMessage()

func (*CodeSnippet) ProtoReflect

func (x *CodeSnippet) ProtoReflect() protoreflect.Message

func (*CodeSnippet) Reset

func (x *CodeSnippet) Reset()

func (*CodeSnippet) String

func (x *CodeSnippet) String() string

type CodeSnippetScanner

type CodeSnippetScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*CodeSnippetScanner) Next

func (it *CodeSnippetScanner) Next() *CodeSnippet

Next() returns the next thing in the array

func (*CodeSnippetScanner) Scan

func (it *CodeSnippetScanner) Scan() bool

type Confidence added in v0.0.5

type Confidence struct {
	Type        string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Confidence) Descriptor deprecated added in v0.0.5

func (*Confidence) Descriptor() ([]byte, []int)

Deprecated: Use Confidence.ProtoReflect.Descriptor instead.

func (*Confidence) GetDescription added in v0.0.5

func (x *Confidence) GetDescription() string

func (*Confidence) GetType added in v0.0.5

func (x *Confidence) GetType() string

func (*Confidence) ProtoMessage added in v0.0.5

func (*Confidence) ProtoMessage()

func (*Confidence) ProtoReflect added in v0.0.5

func (x *Confidence) ProtoReflect() protoreflect.Message

func (*Confidence) Reset added in v0.0.5

func (x *Confidence) Reset()

func (*Confidence) String added in v0.0.5

func (x *Confidence) String() string

type ConfidenceScanner added in v0.0.5

type ConfidenceScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ConfidenceScanner) Next added in v0.0.5

func (it *ConfidenceScanner) Next() *Confidence

Next() returns the next thing in the array

func (*ConfidenceScanner) Scan added in v0.0.5

func (it *ConfidenceScanner) Scan() bool

type Config added in v0.0.4

type Config struct {
	Temperature        float64                `protobuf:"fixed64,2,opt,name=temperature,proto3" json:"temperature,omitempty"`
	TopP               float64                `protobuf:"fixed64,3,opt,name=topP,proto3" json:"topP,omitempty"`
	SystemInstruction  string                 `protobuf:"bytes,4,opt,name=systemInstruction,proto3" json:"systemInstruction,omitempty"`
	ResponseJsonSchema *ResponseJsonSchema    `protobuf:"bytes,5,opt,name=responseJsonSchema,proto3" json:"responseJsonSchema,omitempty"`
	ResponseMimeType   string                 `protobuf:"bytes,6,opt,name=responseMimeType,proto3" json:"responseMimeType,omitempty"`
	AbortSignal        *AbortSignal           `protobuf:"bytes,7,opt,name=abort_signal,json=abortSignal,proto3" json:"abort_signal,omitempty"`
	ThinkingConfig     *Config_ThinkingConfig `protobuf:"bytes,8,opt,name=thinkingConfig,proto3" json:"thinkingConfig,omitempty"`
	Tools              []*Tool                `protobuf:"bytes,9,rep,name=tools,proto3" json:"tools,omitempty"`
	// contains filtered or unexported fields
}

Configuration for the request

func (*Config) Descriptor deprecated added in v0.0.4

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetAbortSignal added in v0.0.4

func (x *Config) GetAbortSignal() *AbortSignal

func (*Config) GetResponseJsonSchema added in v0.0.4

func (x *Config) GetResponseJsonSchema() *ResponseJsonSchema

func (*Config) GetResponseMimeType added in v0.0.4

func (x *Config) GetResponseMimeType() string

func (*Config) GetSystemInstruction added in v0.0.4

func (x *Config) GetSystemInstruction() string

func (*Config) GetTemperature added in v0.0.4

func (x *Config) GetTemperature() float64

func (*Config) GetThinkingConfig added in v0.0.4

func (x *Config) GetThinkingConfig() *Config_ThinkingConfig

func (*Config) GetTools added in v0.0.4

func (x *Config) GetTools() []*Tool

func (*Config) GetTopP added in v0.0.4

func (x *Config) GetTopP() float64

func (*Config) ProtoMessage added in v0.0.4

func (*Config) ProtoMessage()

func (*Config) ProtoReflect added in v0.0.4

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset added in v0.0.4

func (x *Config) Reset()

func (*Config) String added in v0.0.4

func (x *Config) String() string

type ConfigScanner added in v0.0.4

type ConfigScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ConfigScanner) Next added in v0.0.4

func (it *ConfigScanner) Next() *Config

Next() returns the next thing in the array

func (*ConfigScanner) Scan added in v0.0.4

func (it *ConfigScanner) Scan() bool

type Config_ThinkingConfig added in v0.0.4

type Config_ThinkingConfig struct {
	IncludeThoughts bool  `protobuf:"varint,1,opt,name=includeThoughts,proto3" json:"includeThoughts,omitempty"`
	ThinkingBudget  int32 `protobuf:"varint,2,opt,name=thinkingBudget,proto3" json:"thinkingBudget,omitempty"`
	// contains filtered or unexported fields
}

func (*Config_ThinkingConfig) Descriptor deprecated added in v0.0.4

func (*Config_ThinkingConfig) Descriptor() ([]byte, []int)

Deprecated: Use Config_ThinkingConfig.ProtoReflect.Descriptor instead.

func (*Config_ThinkingConfig) GetIncludeThoughts added in v0.0.4

func (x *Config_ThinkingConfig) GetIncludeThoughts() bool

func (*Config_ThinkingConfig) GetThinkingBudget added in v0.0.5

func (x *Config_ThinkingConfig) GetThinkingBudget() int32

func (*Config_ThinkingConfig) ProtoMessage added in v0.0.4

func (*Config_ThinkingConfig) ProtoMessage()

func (*Config_ThinkingConfig) ProtoReflect added in v0.0.4

func (x *Config_ThinkingConfig) ProtoReflect() protoreflect.Message

func (*Config_ThinkingConfig) Reset added in v0.0.4

func (x *Config_ThinkingConfig) Reset()

func (*Config_ThinkingConfig) String added in v0.0.4

func (x *Config_ThinkingConfig) String() string

type Content added in v0.0.4

type Content struct {
	Role  string  `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"`
	Parts []*Part `protobuf:"bytes,2,rep,name=parts,proto3" json:"parts,omitempty"`
	// contains filtered or unexported fields
}

Content of the chat

func (*Content) Descriptor deprecated added in v0.0.4

func (*Content) Descriptor() ([]byte, []int)

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetParts added in v0.0.4

func (x *Content) GetParts() []*Part

func (*Content) GetRole added in v0.0.4

func (x *Content) GetRole() string

func (*Content) ProtoMessage added in v0.0.4

func (*Content) ProtoMessage()

func (*Content) ProtoReflect added in v0.0.4

func (x *Content) ProtoReflect() protoreflect.Message

func (*Content) Reset added in v0.0.4

func (x *Content) Reset()

func (*Content) String added in v0.0.4

func (x *Content) String() string

type ContentScanner added in v0.0.4

type ContentScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ContentScanner) Next added in v0.0.4

func (it *ContentScanner) Next() *Content

Next() returns the next thing in the array

func (*ContentScanner) Scan added in v0.0.4

func (it *ContentScanner) Scan() bool

type CorrectedNewStringEscaping added in v0.0.5

type CorrectedNewStringEscaping struct {
	Type        string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

Reasoning property

func (*CorrectedNewStringEscaping) Descriptor deprecated added in v0.0.5

func (*CorrectedNewStringEscaping) Descriptor() ([]byte, []int)

Deprecated: Use CorrectedNewStringEscaping.ProtoReflect.Descriptor instead.

func (*CorrectedNewStringEscaping) GetDescription added in v0.0.5

func (x *CorrectedNewStringEscaping) GetDescription() string

func (*CorrectedNewStringEscaping) GetType added in v0.0.5

func (x *CorrectedNewStringEscaping) GetType() string

func (*CorrectedNewStringEscaping) ProtoMessage added in v0.0.5

func (*CorrectedNewStringEscaping) ProtoMessage()

func (*CorrectedNewStringEscaping) ProtoReflect added in v0.0.5

func (*CorrectedNewStringEscaping) Reset added in v0.0.5

func (x *CorrectedNewStringEscaping) Reset()

func (*CorrectedNewStringEscaping) String added in v0.0.5

func (x *CorrectedNewStringEscaping) String() string

type CorrectedNewStringEscapingScanner added in v0.0.5

type CorrectedNewStringEscapingScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*CorrectedNewStringEscapingScanner) Next added in v0.0.5

Next() returns the next thing in the array

func (*CorrectedNewStringEscapingScanner) Scan added in v0.0.5

type CorrectedTargetSnippet added in v0.0.5

type CorrectedTargetSnippet struct {
	Type        string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*CorrectedTargetSnippet) Descriptor deprecated added in v0.0.5

func (*CorrectedTargetSnippet) Descriptor() ([]byte, []int)

Deprecated: Use CorrectedTargetSnippet.ProtoReflect.Descriptor instead.

func (*CorrectedTargetSnippet) GetDescription added in v0.0.5

func (x *CorrectedTargetSnippet) GetDescription() string

func (*CorrectedTargetSnippet) GetType added in v0.0.5

func (x *CorrectedTargetSnippet) GetType() string

func (*CorrectedTargetSnippet) ProtoMessage added in v0.0.5

func (*CorrectedTargetSnippet) ProtoMessage()

func (*CorrectedTargetSnippet) ProtoReflect added in v0.0.5

func (x *CorrectedTargetSnippet) ProtoReflect() protoreflect.Message

func (*CorrectedTargetSnippet) Reset added in v0.0.5

func (x *CorrectedTargetSnippet) Reset()

func (*CorrectedTargetSnippet) String added in v0.0.5

func (x *CorrectedTargetSnippet) String() string

type CorrectedTargetSnippetScanner added in v0.0.5

type CorrectedTargetSnippetScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*CorrectedTargetSnippetScanner) Next added in v0.0.5

Next() returns the next thing in the array

func (*CorrectedTargetSnippetScanner) Scan added in v0.0.5

type FunctionCall added in v0.0.4

type FunctionCall struct {
	Name string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Args *ArgsInfo `protobuf:"bytes,3,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

Function call

func (*FunctionCall) Descriptor deprecated added in v0.0.4

func (*FunctionCall) Descriptor() ([]byte, []int)

Deprecated: Use FunctionCall.ProtoReflect.Descriptor instead.

func (*FunctionCall) GetArgs added in v0.0.4

func (x *FunctionCall) GetArgs() *ArgsInfo

func (*FunctionCall) GetName added in v0.0.4

func (x *FunctionCall) GetName() string

func (*FunctionCall) ProtoMessage added in v0.0.4

func (*FunctionCall) ProtoMessage()

func (*FunctionCall) ProtoReflect added in v0.0.4

func (x *FunctionCall) ProtoReflect() protoreflect.Message

func (*FunctionCall) Reset added in v0.0.4

func (x *FunctionCall) Reset()

func (*FunctionCall) String added in v0.0.4

func (x *FunctionCall) String() string

type FunctionCallScanner added in v0.0.4

type FunctionCallScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*FunctionCallScanner) Next added in v0.0.4

func (it *FunctionCallScanner) Next() *FunctionCall

Next() returns the next thing in the array

func (*FunctionCallScanner) Scan added in v0.0.4

func (it *FunctionCallScanner) Scan() bool

type FunctionDeclaration added in v0.0.4

type FunctionDeclaration struct {
	Name                 string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description          string  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	ParametersJsonSchema *Schema `protobuf:"bytes,3,opt,name=parameters_json_schema,json=parametersJsonSchema,proto3" json:"parameters_json_schema,omitempty"`
	// contains filtered or unexported fields
}

func (*FunctionDeclaration) Descriptor deprecated added in v0.0.4

func (*FunctionDeclaration) Descriptor() ([]byte, []int)

Deprecated: Use FunctionDeclaration.ProtoReflect.Descriptor instead.

func (*FunctionDeclaration) GetDescription added in v0.0.4

func (x *FunctionDeclaration) GetDescription() string

func (*FunctionDeclaration) GetName added in v0.0.4

func (x *FunctionDeclaration) GetName() string

func (*FunctionDeclaration) GetParametersJsonSchema added in v0.0.4

func (x *FunctionDeclaration) GetParametersJsonSchema() *Schema

func (*FunctionDeclaration) ProtoMessage added in v0.0.4

func (*FunctionDeclaration) ProtoMessage()

func (*FunctionDeclaration) ProtoReflect added in v0.0.4

func (x *FunctionDeclaration) ProtoReflect() protoreflect.Message

func (*FunctionDeclaration) Reset added in v0.0.4

func (x *FunctionDeclaration) Reset()

func (*FunctionDeclaration) String added in v0.0.4

func (x *FunctionDeclaration) String() string

type FunctionDeclarationScanner added in v0.0.4

type FunctionDeclarationScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*FunctionDeclarationScanner) Next added in v0.0.4

Next() returns the next thing in the array

func (*FunctionDeclarationScanner) Scan added in v0.0.4

func (it *FunctionDeclarationScanner) Scan() bool

type FunctionResponse added in v0.0.4

type FunctionResponse struct {
	Id       string    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
	// contains filtered or unexported fields
}

Function response

func (*FunctionResponse) Descriptor deprecated added in v0.0.4

func (*FunctionResponse) Descriptor() ([]byte, []int)

Deprecated: Use FunctionResponse.ProtoReflect.Descriptor instead.

func (*FunctionResponse) GetId added in v0.0.4

func (x *FunctionResponse) GetId() string

func (*FunctionResponse) GetName added in v0.0.4

func (x *FunctionResponse) GetName() string

func (*FunctionResponse) GetResponse added in v0.0.4

func (x *FunctionResponse) GetResponse() *Response

func (*FunctionResponse) ProtoMessage added in v0.0.4

func (*FunctionResponse) ProtoMessage()

func (*FunctionResponse) ProtoReflect added in v0.0.4

func (x *FunctionResponse) ProtoReflect() protoreflect.Message

func (*FunctionResponse) Reset added in v0.0.4

func (x *FunctionResponse) Reset()

func (*FunctionResponse) String added in v0.0.4

func (x *FunctionResponse) String() string

type FunctionResponseScanner added in v0.0.4

type FunctionResponseScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*FunctionResponseScanner) Next added in v0.0.4

Next() returns the next thing in the array

func (*FunctionResponseScanner) Scan added in v0.0.4

func (it *FunctionResponseScanner) Scan() bool

type GeminiRequest added in v0.0.4

type GeminiRequest struct {
	sync.RWMutex // auto-added by go.wit.com/apps/autogenpb

	Model    string     `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	Config   *Config    `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	Contents []*Content `protobuf:"bytes,3,rep,name=contents,proto3" json:"contents,omitempty"`
	// contains filtered or unexported fields
}

func (*GeminiRequest) Descriptor deprecated added in v0.0.4

func (*GeminiRequest) Descriptor() ([]byte, []int)

Deprecated: Use GeminiRequest.ProtoReflect.Descriptor instead.

func (*GeminiRequest) FormatJSON added in v0.0.4

func (v *GeminiRequest) FormatJSON() string

human readable JSON

func (*GeminiRequest) FormatTEXT added in v0.0.4

func (v *GeminiRequest) FormatTEXT() string

apparently this isn't stable, but it's awesomely better https://protobuf.dev/reference/go/faq/#unstable-text it's brilliant for config files!

func (*GeminiRequest) GetConfig added in v0.0.4

func (x *GeminiRequest) GetConfig() *Config

func (*GeminiRequest) GetContents added in v0.0.4

func (x *GeminiRequest) GetContents() []*Content

func (*GeminiRequest) GetModel added in v0.0.4

func (x *GeminiRequest) GetModel() string

func (*GeminiRequest) Marshal added in v0.0.4

func (v *GeminiRequest) Marshal() ([]byte, error)

marshal to wire. This is called winning.

func (*GeminiRequest) MarshalJSON added in v0.0.4

func (v *GeminiRequest) MarshalJSON() ([]byte, error)

marshal json

func (*GeminiRequest) PrintGeminiTable added in v0.0.5

func (gr *GeminiRequest) PrintGeminiTable()

func (*GeminiRequest) ProtoMessage added in v0.0.4

func (*GeminiRequest) ProtoMessage()

func (*GeminiRequest) ProtoReflect added in v0.0.4

func (x *GeminiRequest) ProtoReflect() protoreflect.Message

func (*GeminiRequest) Reset added in v0.0.4

func (x *GeminiRequest) Reset()

func (*GeminiRequest) String added in v0.0.4

func (x *GeminiRequest) String() string

func (*GeminiRequest) Unmarshal added in v0.0.4

func (v *GeminiRequest) Unmarshal(data []byte) error

unmarshal from wire. You have won.

func (*GeminiRequest) UnmarshalJSON added in v0.0.4

func (v *GeminiRequest) UnmarshalJSON(data []byte) error

unmarshal json

func (*GeminiRequest) UnmarshalTEXT added in v0.0.4

func (v *GeminiRequest) UnmarshalTEXT(data []byte) error

unmarshalTEXT. This reads the .text config file back in after the user edits it

type GeminiRequestScanner added in v0.0.4

type GeminiRequestScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*GeminiRequestScanner) Next added in v0.0.4

func (it *GeminiRequestScanner) Next() *GeminiRequest

Next() returns the next thing in the array

func (*GeminiRequestScanner) Scan added in v0.0.4

func (it *GeminiRequestScanner) Scan() bool

type GoogleSearch added in v0.0.5

type GoogleSearch struct {
	// contains filtered or unexported fields
}

func (*GoogleSearch) Descriptor deprecated added in v0.0.5

func (*GoogleSearch) Descriptor() ([]byte, []int)

Deprecated: Use GoogleSearch.ProtoReflect.Descriptor instead.

func (*GoogleSearch) ProtoMessage added in v0.0.5

func (*GoogleSearch) ProtoMessage()

func (*GoogleSearch) ProtoReflect added in v0.0.5

func (x *GoogleSearch) ProtoReflect() protoreflect.Message

func (*GoogleSearch) Reset added in v0.0.5

func (x *GoogleSearch) Reset()

func (*GoogleSearch) String added in v0.0.5

func (x *GoogleSearch) String() string

type GoogleSearchScanner added in v0.0.5

type GoogleSearchScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*GoogleSearchScanner) Next added in v0.0.5

func (it *GoogleSearchScanner) Next() *GoogleSearch

Next() returns the next thing in the array

func (*GoogleSearchScanner) Scan added in v0.0.5

func (it *GoogleSearchScanner) Scan() bool

type NextSpeaker added in v0.0.4

type NextSpeaker struct {
	Type        string   `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Enum        []string `protobuf:"bytes,2,rep,name=enum,proto3" json:"enum,omitempty"`
	Description string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

Next speaker property

func (*NextSpeaker) Descriptor deprecated added in v0.0.4

func (*NextSpeaker) Descriptor() ([]byte, []int)

Deprecated: Use NextSpeaker.ProtoReflect.Descriptor instead.

func (*NextSpeaker) GetDescription added in v0.0.4

func (x *NextSpeaker) GetDescription() string

func (*NextSpeaker) GetEnum added in v0.0.4

func (x *NextSpeaker) GetEnum() []string

func (*NextSpeaker) GetType added in v0.0.4

func (x *NextSpeaker) GetType() string

func (*NextSpeaker) ProtoMessage added in v0.0.4

func (*NextSpeaker) ProtoMessage()

func (*NextSpeaker) ProtoReflect added in v0.0.4

func (x *NextSpeaker) ProtoReflect() protoreflect.Message

func (*NextSpeaker) Reset added in v0.0.4

func (x *NextSpeaker) Reset()

func (*NextSpeaker) String added in v0.0.4

func (x *NextSpeaker) String() string

type NextSpeakerScanner added in v0.0.4

type NextSpeakerScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*NextSpeakerScanner) Next added in v0.0.4

func (it *NextSpeakerScanner) Next() *NextSpeaker

Next() returns the next thing in the array

func (*NextSpeakerScanner) Scan added in v0.0.4

func (it *NextSpeakerScanner) Scan() bool

type Part added in v0.0.4

type Part struct {

	// Types that are assignable to PartType:
	//
	//	*Part_Text
	//	*Part_FunctionCall
	//	*Part_FunctionResponse
	PartType         isPart_PartType `protobuf_oneof:"part_type"`
	ThoughtSignature string          `protobuf:"bytes,4,opt,name=thoughtSignature,proto3" json:"thoughtSignature,omitempty"`
	// contains filtered or unexported fields
}

Part of the content

func (*Part) Descriptor deprecated added in v0.0.4

func (*Part) Descriptor() ([]byte, []int)

Deprecated: Use Part.ProtoReflect.Descriptor instead.

func (*Part) GetFunctionCall added in v0.0.4

func (x *Part) GetFunctionCall() *FunctionCall

func (*Part) GetFunctionResponse added in v0.0.4

func (x *Part) GetFunctionResponse() *FunctionResponse

func (*Part) GetPartType added in v0.0.4

func (m *Part) GetPartType() isPart_PartType

func (*Part) GetText added in v0.0.4

func (x *Part) GetText() string

func (*Part) GetThoughtSignature added in v0.0.4

func (x *Part) GetThoughtSignature() string

func (*Part) ProtoMessage added in v0.0.4

func (*Part) ProtoMessage()

func (*Part) ProtoReflect added in v0.0.4

func (x *Part) ProtoReflect() protoreflect.Message

func (*Part) Reset added in v0.0.4

func (x *Part) Reset()

func (*Part) String added in v0.0.4

func (x *Part) String() string

type PartScanner added in v0.0.4

type PartScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*PartScanner) Next added in v0.0.4

func (it *PartScanner) Next() *Part

Next() returns the next thing in the array

func (*PartScanner) Scan added in v0.0.4

func (it *PartScanner) Scan() bool

type Part_FunctionCall added in v0.0.4

type Part_FunctionCall struct {
	FunctionCall *FunctionCall `protobuf:"bytes,2,opt,name=functionCall,proto3,oneof"`
}

type Part_FunctionResponse added in v0.0.4

type Part_FunctionResponse struct {
	FunctionResponse *FunctionResponse `protobuf:"bytes,3,opt,name=functionResponse,proto3,oneof"`
}

type Part_Text added in v0.0.4

type Part_Text struct {
	Text string `protobuf:"bytes,1,opt,name=text,proto3,oneof"`
}

type Properties added in v0.0.4

type Properties struct {
	Reasoning                  *Reasoning                  `protobuf:"bytes,1,opt,name=reasoning,proto3" json:"reasoning,omitempty"`
	NextSpeaker                *NextSpeaker                `protobuf:"bytes,2,opt,name=next_speaker,json=nextSpeaker,proto3" json:"next_speaker,omitempty"`
	CorrectedNewStringEscaping *CorrectedNewStringEscaping `` /* 143-byte string literal not displayed */
	CorrectedTargetSnippet     *CorrectedTargetSnippet     `` /* 129-byte string literal not displayed */
	Confidence                 *Confidence                 `protobuf:"bytes,5,opt,name=confidence,proto3" json:"confidence,omitempty"`
	// contains filtered or unexported fields
}

Properties within the JSON schema

func (*Properties) Descriptor deprecated added in v0.0.4

func (*Properties) Descriptor() ([]byte, []int)

Deprecated: Use Properties.ProtoReflect.Descriptor instead.

func (*Properties) GetConfidence added in v0.0.5

func (x *Properties) GetConfidence() *Confidence

func (*Properties) GetCorrectedNewStringEscaping added in v0.0.5

func (x *Properties) GetCorrectedNewStringEscaping() *CorrectedNewStringEscaping

func (*Properties) GetCorrectedTargetSnippet added in v0.0.5

func (x *Properties) GetCorrectedTargetSnippet() *CorrectedTargetSnippet

func (*Properties) GetNextSpeaker added in v0.0.4

func (x *Properties) GetNextSpeaker() *NextSpeaker

func (*Properties) GetReasoning added in v0.0.4

func (x *Properties) GetReasoning() *Reasoning

func (*Properties) ProtoMessage added in v0.0.4

func (*Properties) ProtoMessage()

func (*Properties) ProtoReflect added in v0.0.4

func (x *Properties) ProtoReflect() protoreflect.Message

func (*Properties) Reset added in v0.0.4

func (x *Properties) Reset()

func (*Properties) String added in v0.0.4

func (x *Properties) String() string

type PropertiesScanner added in v0.0.4

type PropertiesScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*PropertiesScanner) Next added in v0.0.4

func (it *PropertiesScanner) Next() *Properties

Next() returns the next thing in the array

func (*PropertiesScanner) Scan added in v0.0.4

func (it *PropertiesScanner) Scan() bool

type Reasoning added in v0.0.4

type Reasoning struct {
	Type        string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*Reasoning) Descriptor deprecated added in v0.0.4

func (*Reasoning) Descriptor() ([]byte, []int)

Deprecated: Use Reasoning.ProtoReflect.Descriptor instead.

func (*Reasoning) GetDescription added in v0.0.4

func (x *Reasoning) GetDescription() string

func (*Reasoning) GetType added in v0.0.4

func (x *Reasoning) GetType() string

func (*Reasoning) ProtoMessage added in v0.0.4

func (*Reasoning) ProtoMessage()

func (*Reasoning) ProtoReflect added in v0.0.4

func (x *Reasoning) ProtoReflect() protoreflect.Message

func (*Reasoning) Reset added in v0.0.4

func (x *Reasoning) Reset()

func (*Reasoning) String added in v0.0.4

func (x *Reasoning) String() string

type ReasoningScanner added in v0.0.4

type ReasoningScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ReasoningScanner) Next added in v0.0.4

func (it *ReasoningScanner) Next() *Reasoning

Next() returns the next thing in the array

func (*ReasoningScanner) Scan added in v0.0.4

func (it *ReasoningScanner) Scan() bool

type Response added in v0.0.4

type Response struct {
	Output string `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"`
	Error  string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

Response from a function call

func (*Response) Descriptor deprecated added in v0.0.4

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetError added in v0.0.4

func (x *Response) GetError() string

func (*Response) GetOutput added in v0.0.4

func (x *Response) GetOutput() string

func (*Response) ProtoMessage added in v0.0.4

func (*Response) ProtoMessage()

func (*Response) ProtoReflect added in v0.0.4

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset added in v0.0.4

func (x *Response) Reset()

func (*Response) String added in v0.0.4

func (x *Response) String() string

type ResponseJsonSchema added in v0.0.4

type ResponseJsonSchema struct {
	Type       string      `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Properties *Properties `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"`
	Required   []string    `protobuf:"bytes,3,rep,name=required,proto3" json:"required,omitempty"`
	// contains filtered or unexported fields
}

JSON schema for the response

func (*ResponseJsonSchema) Descriptor deprecated added in v0.0.4

func (*ResponseJsonSchema) Descriptor() ([]byte, []int)

Deprecated: Use ResponseJsonSchema.ProtoReflect.Descriptor instead.

func (*ResponseJsonSchema) GetProperties added in v0.0.4

func (x *ResponseJsonSchema) GetProperties() *Properties

func (*ResponseJsonSchema) GetRequired added in v0.0.4

func (x *ResponseJsonSchema) GetRequired() []string

func (*ResponseJsonSchema) GetType added in v0.0.4

func (x *ResponseJsonSchema) GetType() string

func (*ResponseJsonSchema) ProtoMessage added in v0.0.4

func (*ResponseJsonSchema) ProtoMessage()

func (*ResponseJsonSchema) ProtoReflect added in v0.0.4

func (x *ResponseJsonSchema) ProtoReflect() protoreflect.Message

func (*ResponseJsonSchema) Reset added in v0.0.4

func (x *ResponseJsonSchema) Reset()

func (*ResponseJsonSchema) String added in v0.0.4

func (x *ResponseJsonSchema) String() string

type ResponseJsonSchemaScanner added in v0.0.4

type ResponseJsonSchemaScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ResponseJsonSchemaScanner) Next added in v0.0.4

Next() returns the next thing in the array

func (*ResponseJsonSchemaScanner) Scan added in v0.0.4

func (it *ResponseJsonSchemaScanner) Scan() bool

type ResponseScanner added in v0.0.4

type ResponseScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ResponseScanner) Next added in v0.0.4

func (it *ResponseScanner) Next() *Response

Next() returns the next thing in the array

func (*ResponseScanner) Scan added in v0.0.4

func (it *ResponseScanner) Scan() bool

type Row

type Row struct {
	Fields []string `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"`
	// contains filtered or unexported fields
}

func (*Row) Descriptor deprecated

func (*Row) Descriptor() ([]byte, []int)

Deprecated: Use Row.ProtoReflect.Descriptor instead.

func (*Row) GetFields

func (x *Row) GetFields() []string

func (*Row) ProtoMessage

func (*Row) ProtoMessage()

func (*Row) ProtoReflect

func (x *Row) ProtoReflect() protoreflect.Message

func (*Row) Reset

func (x *Row) Reset()

func (*Row) String

func (x *Row) String() string

type RowScanner

type RowScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*RowScanner) Next

func (it *RowScanner) Next() *Row

Next() returns the next thing in the array

func (*RowScanner) Scan

func (it *RowScanner) Scan() bool

type Schema added in v0.0.4

type Schema struct {
	Type         string             `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Properties   map[string]*Schema `` /* 161-byte string literal not displayed */
	Required     []string           `protobuf:"bytes,3,rep,name=required,proto3" json:"required,omitempty"`
	Description  string             `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Items        *Schema            `protobuf:"bytes,5,opt,name=items,proto3" json:"items,omitempty"`
	Enum         []string           `protobuf:"bytes,6,rep,name=enum,proto3" json:"enum,omitempty"`
	Minimum      int32              `protobuf:"varint,7,opt,name=minimum,proto3" json:"minimum,omitempty"`
	MinLength    int32              `protobuf:"varint,8,opt,name=minLength,proto3" json:"minLength,omitempty"`
	MinItems     int32              `protobuf:"varint,9,opt,name=minItems,proto3" json:"minItems,omitempty"`
	DefaultValue *structpb.Value    `protobuf:"bytes,10,opt,name=default_value,json=default,proto3" json:"default_value,omitempty"`
	// contains filtered or unexported fields
}

func (*Schema) Descriptor deprecated added in v0.0.4

func (*Schema) Descriptor() ([]byte, []int)

Deprecated: Use Schema.ProtoReflect.Descriptor instead.

func (*Schema) GetDefaultValue added in v0.0.4

func (x *Schema) GetDefaultValue() *structpb.Value

func (*Schema) GetDescription added in v0.0.4

func (x *Schema) GetDescription() string

func (*Schema) GetEnum added in v0.0.4

func (x *Schema) GetEnum() []string

func (*Schema) GetItems added in v0.0.4

func (x *Schema) GetItems() *Schema

func (*Schema) GetMinItems added in v0.0.4

func (x *Schema) GetMinItems() int32

func (*Schema) GetMinLength added in v0.0.4

func (x *Schema) GetMinLength() int32

func (*Schema) GetMinimum added in v0.0.4

func (x *Schema) GetMinimum() int32

func (*Schema) GetProperties added in v0.0.4

func (x *Schema) GetProperties() map[string]*Schema

func (*Schema) GetRequired added in v0.0.4

func (x *Schema) GetRequired() []string

func (*Schema) GetType added in v0.0.4

func (x *Schema) GetType() string

func (*Schema) ProtoMessage added in v0.0.4

func (*Schema) ProtoMessage()

func (*Schema) ProtoReflect added in v0.0.4

func (x *Schema) ProtoReflect() protoreflect.Message

func (*Schema) Reset added in v0.0.4

func (x *Schema) Reset()

func (*Schema) String added in v0.0.4

func (x *Schema) String() string

type SchemaScanner added in v0.0.4

type SchemaScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*SchemaScanner) Next added in v0.0.4

func (it *SchemaScanner) Next() *Schema

Next() returns the next thing in the array

func (*SchemaScanner) Scan added in v0.0.4

func (it *SchemaScanner) Scan() bool

type SessionStats

type SessionStats struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*SessionStats) Descriptor deprecated

func (*SessionStats) Descriptor() ([]byte, []int)

Deprecated: Use SessionStats.ProtoReflect.Descriptor instead.

func (*SessionStats) GetUuid

func (x *SessionStats) GetUuid() string

func (*SessionStats) ProtoMessage

func (*SessionStats) ProtoMessage()

func (*SessionStats) ProtoReflect

func (x *SessionStats) ProtoReflect() protoreflect.Message

func (*SessionStats) Reset

func (x *SessionStats) Reset()

func (*SessionStats) String

func (x *SessionStats) String() string

type SessionStatsScanner

type SessionStatsScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*SessionStatsScanner) Next

func (it *SessionStatsScanner) Next() *SessionStats

Next() returns the next thing in the array

func (*SessionStatsScanner) Scan

func (it *SessionStatsScanner) Scan() bool

type Table

type Table struct {
	Columns int32  `protobuf:"varint,1,opt,name=columns,proto3" json:"columns,omitempty"`
	Rows    []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
	// contains filtered or unexported fields
}

func (*Table) AddRow

func (t *Table) AddRow(f []string)

func (*Table) Descriptor deprecated

func (*Table) Descriptor() ([]byte, []int)

Deprecated: Use Table.ProtoReflect.Descriptor instead.

func (*Table) GetColumns

func (x *Table) GetColumns() int32

func (*Table) GetRows

func (x *Table) GetRows() []*Row

func (*Table) ProtoMessage

func (*Table) ProtoMessage()

func (*Table) ProtoReflect

func (x *Table) ProtoReflect() protoreflect.Message

func (*Table) Reset

func (x *Table) Reset()

func (*Table) String

func (x *Table) String() string

type TableScanner

type TableScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*TableScanner) Next

func (it *TableScanner) Next() *Table

Next() returns the next thing in the array

func (*TableScanner) Scan

func (it *TableScanner) Scan() bool

type Tool added in v0.0.4

type Tool struct {
	FunctionDeclarations []*FunctionDeclaration `protobuf:"bytes,1,rep,name=functionDeclarations,proto3" json:"functionDeclarations,omitempty"`
	GoogleSearch         *GoogleSearch          `protobuf:"bytes,2,opt,name=googleSearch,proto3" json:"googleSearch,omitempty"`
	// contains filtered or unexported fields
}

func (*Tool) Descriptor deprecated added in v0.0.4

func (*Tool) Descriptor() ([]byte, []int)

Deprecated: Use Tool.ProtoReflect.Descriptor instead.

func (*Tool) GetFunctionDeclarations added in v0.0.4

func (x *Tool) GetFunctionDeclarations() []*FunctionDeclaration

func (*Tool) GetGoogleSearch added in v0.0.5

func (x *Tool) GetGoogleSearch() *GoogleSearch

func (*Tool) ProtoMessage added in v0.0.4

func (*Tool) ProtoMessage()

func (*Tool) ProtoReflect added in v0.0.4

func (x *Tool) ProtoReflect() protoreflect.Message

func (*Tool) Reset added in v0.0.4

func (x *Tool) Reset()

func (*Tool) String added in v0.0.4

func (x *Tool) String() string

type ToolCall

type ToolCall struct {
	Name         string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Input        string `protobuf:"bytes,2,opt,name=input,proto3" json:"input,omitempty"`
	Description  string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	OutputStdout string `protobuf:"bytes,4,opt,name=output_stdout,json=outputStdout,proto3" json:"output_stdout,omitempty"`
	OutputStderr string `protobuf:"bytes,5,opt,name=output_stderr,json=outputStderr,proto3" json:"output_stderr,omitempty"`
	ExitCode     int32  `protobuf:"varint,6,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	// contains filtered or unexported fields
}

func (*ToolCall) Descriptor deprecated

func (*ToolCall) Descriptor() ([]byte, []int)

Deprecated: Use ToolCall.ProtoReflect.Descriptor instead.

func (*ToolCall) GetDescription

func (x *ToolCall) GetDescription() string

func (*ToolCall) GetExitCode

func (x *ToolCall) GetExitCode() int32

func (*ToolCall) GetInput

func (x *ToolCall) GetInput() string

func (*ToolCall) GetName

func (x *ToolCall) GetName() string

func (*ToolCall) GetOutputStderr

func (x *ToolCall) GetOutputStderr() string

func (*ToolCall) GetOutputStdout

func (x *ToolCall) GetOutputStdout() string

func (*ToolCall) ProtoMessage

func (*ToolCall) ProtoMessage()

func (*ToolCall) ProtoReflect

func (x *ToolCall) ProtoReflect() protoreflect.Message

func (*ToolCall) Reset

func (x *ToolCall) Reset()

func (*ToolCall) String

func (x *ToolCall) String() string

type ToolCallScanner

type ToolCallScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ToolCallScanner) Next

func (it *ToolCallScanner) Next() *ToolCall

Next() returns the next thing in the array

func (*ToolCallScanner) Scan

func (it *ToolCallScanner) Scan() bool

type ToolScanner added in v0.0.4

type ToolScanner struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*ToolScanner) Next added in v0.0.4

func (it *ToolScanner) Next() *Tool

Next() returns the next thing in the array

func (*ToolScanner) Scan added in v0.0.4

func (it *ToolScanner) Scan() bool

type Who

type Who int32
const (
	Who_NOONE Who = 0
	Who_REGEX Who = 1
	Who_USER  Who = 2
)

func (Who) Descriptor

func (Who) Descriptor() protoreflect.EnumDescriptor

func (Who) Enum

func (x Who) Enum() *Who

func (Who) EnumDescriptor deprecated

func (Who) EnumDescriptor() ([]byte, []int)

Deprecated: Use Who.Descriptor instead.

func (Who) Number

func (x Who) Number() protoreflect.EnumNumber

func (Who) String

func (x Who) String() string

func (Who) Type

func (Who) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

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