MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / genResponse

Function genResponse

module/ai-api/schema.go:48–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48func genResponse() *openapi3.ResponseRef {
49 response := openapi3.NewResponse()
50 response.Content = openapi3.NewContentWithJSONSchemaRef(responseSchemaRef)
51 description := "Response from the server"
52 response.Description = &description
53 return &openapi3.ResponseRef{
54 Value: response,
55 }
56}
57
58func genRequestBodySchema(variables []*ai_api_dto.AiPromptVariable) *openapi3.Schema {
59 result := openapi3.NewObjectSchema()

Callers 1

genOperationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected