MCPcopy Create free account
hub / github.com/coder/agentapi / getStatus

Method getStatus

lib/httpapi/server.go:439–452  ·  view source on GitHub ↗

getStatus handles GET /status

(ctx context.Context, input *struct{})

Source from the content-addressed store, hash-verified

437
438// getStatus handles GET /status
439func (s *Server) getStatus(ctx context.Context, input *struct{}) (*StatusResponse, error) {
440 s.mu.RLock()
441 defer s.mu.RUnlock()
442
443 status := s.conversation.Status()
444 agentStatus := convertStatus(status)
445
446 resp := &StatusResponse{}
447 resp.Body.Status = agentStatus
448 resp.Body.AgentType = s.agentType
449 resp.Body.Transport = s.transport
450
451 return resp, nil
452}
453
454// getMessages handles GET /messages
455func (s *Server) getMessages(ctx context.Context, input *struct{}) (*MessagesResponse, error) {

Callers

nothing calls this directly

Calls 2

convertStatusFunction · 0.85
StatusMethod · 0.65

Tested by

no test coverage detected