Documentation
¶
Index ¶
- type Agent
- type Cache
- type FormFlow
- type FormSpec
- type HistoryReadWriter
- type HistoryStore
- func (s *HistoryStore) Append(ctx context.Context, messages ...*schema.Message) ([]*schema.Message, error)
- func (s *HistoryStore) Clear(ctx context.Context) error
- func (s *HistoryStore) Load(ctx context.Context) ([]*schema.Message, error)
- func (s *HistoryStore) Save(ctx context.Context, history []*schema.Message) error
- type KeyGen
- type MemoryCache
- func (m *MemoryCache[S]) Del(ctx context.Context, key string) error
- func (m *MemoryCache[S]) Exists(ctx context.Context, key string) (bool, error)
- func (m *MemoryCache[S]) Get(ctx context.Context, key string) (S, bool, error)
- func (m *MemoryCache[S]) Set(ctx context.Context, key string, val S) error
- type Request
- type Response
- type State
- type StateReadWriter
- type StateStore
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent[T any] struct { // contains filtered or unexported fields }
func NewAgent ¶
func NewAgent[T any](name, description string, flow *FormFlow[T], store StateReadWriter[T]) *Agent[T]
func (*Agent[T]) Run ¶
func (a *Agent[T]) Run(ctx context.Context, input *adk.AgentInput, options ...adk.AgentRunOption) *adk.AsyncIterator[*adk.AgentEvent]
type FormFlow ¶
type FormFlow[T any] struct { // contains filtered or unexported fields }
func NewFormFlow ¶
func NewToolBasedFormFlow ¶
type HistoryReadWriter ¶
type HistoryStore ¶
type HistoryStore struct {
// contains filtered or unexported fields
}
func NewHistoryStore ¶
func NewHistoryStore(store Store[[]*schema.Message]) *HistoryStore
type MemoryCache ¶
type MemoryCache[S any] struct { // contains filtered or unexported fields }
func NewMemoryCore ¶
func NewMemoryCore[S any]() *MemoryCache[S]
type State ¶
type State[T any] struct { Phase types.Phase `` /* 145-byte string literal not displayed */ LatestQuestion string `json:"latest_question" jsonschema:"description=The latest question asked to the user"` FormState T `json:"form_state" jsonschema:"description=The current state of the form being filled"` }
type StateReadWriter ¶
type StateStore ¶
type StateStore[T any] struct { // contains filtered or unexported fields }
func NewStateStore ¶
Click to show internal directories.
Click to hide internal directories.