{"openapi":"3.1.0","info":{"title":"EmoOwl-Service for ThinkOwl","description":"<CENTER><img src=\"/static/emoowl-service.png\"></CENTER><BR>A service for detecting sentiment and emotions.","contact":{"url":"http://www.thinkowl.com/"},"license":{"name":"ThinkOwl Usage License","url":"http://www.thinkowl.com/"},"version":"v1"},"paths":{"/metrics":{"get":{"summary":"Combined Metrics","description":"Expose combined metrics from the local instrumentator and the external server.","operationId":"combined_metrics_metrics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/sentiment/":{"post":{"summary":"Sentiment","description":"Send a string (text/plain) and return a sentiment with a likability\n:return: (application/json)","operationId":"sentiment_v1_sentiment__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"desk","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Desk"}}],"requestBody":{"content":{"text/plain":{"schema":{"type":"string","default":"","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SentimentResult"}}}},"404":{"detail":"Language detection resulted in an unsupported language.","description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/emotion/":{"post":{"summary":"Emotion","description":"Send a string (text/plain) and return the emotion for the text.\n:return: (application/json)","operationId":"emotion_v1_emotion__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"desk","in":"query","required":false,"schema":{"type":"string","default":"default","title":"Desk"}},{"name":"get_prompt","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Get Prompt"}}],"requestBody":{"content":{"text/plain":{"schema":{"type":"string","default":"","title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"404":{"detail":"Language detection resulted in an unsupported language.","description":"Not Found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"SentimentResult":{"properties":{"mood":{"type":"string","title":"Mood"},"confidence":{"type":"number","title":"Confidence"},"intensity":{"type":"number","title":"Intensity"}},"type":"object","required":["mood","confidence","intensity"],"title":"SentimentResult","description":"Comprehensive sentiment analysis result for a complete text.\n\nThis model provides a complete analysis of emotional content, including\noverall sentiment, confidence levels, and detailed breakdowns by sentence\nand mood categories.\n\nAttributes:\n    mood (str): The dominant emotional mood detected across the entire text\n    confidence (float): Overall confidence score (0.0 to 1.0) for the\n                      sentiment analysis\n    intensity (float): Emotional intensity score indicating how strongly\n                     the emotions are expressed (0.0 to 1.0)\n    detail (list[MoodResult]): List of detailed mood breakdowns, showing\n                             different emotional categories and their\n                             respective probabilities and sentence counts\n    sentences (list[SentenceResult]): Detailed analysis results for each\n                                    individual sentence in the text"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}