MCPcopy
hub / github.com/kagent-dev/kagent / Set

Method Set

go/adk/pkg/session/local_session.go:104–109  ·  view source on GitHub ↗
(key string, value any)

Source from the content-addressed store, hash-verified

102}
103
104func (s *sessionState) Set(key string, value any) error {
105 s.mu.Lock()
106 defer s.mu.Unlock()
107 s.state[key] = value
108 return nil
109}
110
111func (s *sessionState) All() iter.Seq2[string, any] {
112 return func(yield func(string, any) bool) {

Callers 15

doMethod · 0.45
doWithJSONMethod · 0.45
AddHeadersMethod · 0.45
newMockEmbeddingClientFunction · 0.45
storeMemoryMethod · 0.45
SearchMemoryMethod · 0.45
TestCreate_SuccessFunction · 0.45

Calls

no outgoing calls