Documentation
¶
Index ¶
- type CredentialContext
- type Server
- func (s *Server) GetActiveWaiterInfo(sessionID string) (bool, *time.Time, int)
- func (s *Server) GetLastKeepaliveTime(sessionID string) *time.Time
- func (s *Server) HasActiveWaiter(sessionID string) bool
- func (s *Server) NotifySessionCompleted(sess *model.FeedbackSession)
- func (s *Server) RecordKeepaliveResponse(sessionID string)
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type ToolDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredentialContext ¶ added in v1.1.0
type CredentialContext struct {
CredentialID uint
CredentialName string
HostName string
Permissions model.Permissions
Source string // "db_credential", "env_token", "open_access"
}
func CredentialFromContext ¶ added in v1.1.0
func CredentialFromContext(ctx context.Context) *CredentialContext
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) GetActiveWaiterInfo ¶
func (*Server) GetLastKeepaliveTime ¶
func (*Server) HasActiveWaiter ¶
func (*Server) NotifySessionCompleted ¶
func (s *Server) NotifySessionCompleted(sess *model.FeedbackSession)
func (*Server) RecordKeepaliveResponse ¶
type ToolDefinition ¶
type ToolDefinition struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema json.RawMessage `json:"inputSchema"`
}
func GetToolDefinitionsForPermissions ¶ added in v1.1.0
func GetToolDefinitionsForPermissions(perms model.Permissions) []ToolDefinition
Click to show internal directories.
Click to hide internal directories.