Skip to main content
Glama
response_actions.model.go860 B
package actions import ( "fmt" "strings" ) type RemedyRespRunResult int const ( RespNoOp RemedyRespRunResult = iota RespModifiedResponse RespRetryRequest ) func (runResult RemedyRespRunResult) String() string { var res string switch runResult { case RespNoOp: res = "no_op" case RespModifiedResponse: res = "modified_response" case RespRetryRequest: res = "retry_request" } return res } func ParseRemedyRespRunResult(raw string) (RemedyRespRunResult, error) { var res RemedyRespRunResult raw = strings.TrimSpace(strings.ToLower(raw)) switch raw { case RespNoOp.String(): res = RespNoOp case RespModifiedResponse.String(): res = RespModifiedResponse case RespRetryRequest.String(): res = RespRetryRequest default: return RespNoOp, fmt.Errorf( "RemedyReqRunResult %v is not recognized", raw, ) } return res, nil }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheLunarCompany/lunar'

If you have feedback or need assistance with the MCP directory API, please join our Discord server