Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSessionService ¶
func NewSessionService(ctx context.Context, cfg VertexAIServiceConfig, opts ...option.ClientOption) (session.Service, error)
NewSessionService returns VertextAiSessionService implementation.
Types ¶
type LocalSession ¶
type LocalSession struct {
// contains filtered or unexported fields
}
TODO LocalSession is identical to session.session. Move to sessioninternal
func (*LocalSession) AppName ¶
func (s *LocalSession) AppName() string
func (*LocalSession) Events ¶
func (s *LocalSession) Events() session.Events
func (*LocalSession) ID ¶
func (s *LocalSession) ID() string
func (*LocalSession) LastUpdateTime ¶
func (s *LocalSession) LastUpdateTime() time.Time
func (*LocalSession) State ¶
func (s *LocalSession) State() session.State
func (*LocalSession) UserID ¶
func (s *LocalSession) UserID() string
type VertexAIServiceConfig ¶
type VertexAIServiceConfig struct {
// ProjectID with VertexAI API enabled.
ProjectID string
// Location where the reasoningEngine is running.
Location string
// ReasoningEngine is the runtime in the agent engine which will store the
// sessions.
// Optimal way is to create reasoningEngine per app.
// For example, a reasoningEngine can be created via the Vertex AI REST
// API's 'projects.locations.reasoningEngines.create' method.
ReasoningEngine string
}
Click to show internal directories.
Click to hide internal directories.