Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutoInitSessionService ¶
AutoInitSessionService wraps a real service and ensures State is initialized. This fixes a regression in ADK v0.2.0 where InMemoryService creates sessions with nil state maps (see GitHub Issue #324).
func NewAutoInitService ¶
func NewAutoInitService(s session.Service) *AutoInitSessionService
NewAutoInitService creates a new AutoInitSessionService wrapper.
func (*AutoInitSessionService) Create ¶
func (s *AutoInitSessionService) Create(ctx context.Context, req *session.CreateRequest) (*session.CreateResponse, error)
Create intercepts session creation and ensures the state map is never nil.
Click to show internal directories.
Click to hide internal directories.