Agent Generation
Overview
Parameters
Name
Type
Required
Description
Prompt Example
request = { "type": "agent", "prompt": "analiza el sentimiento del siguiente texto", "params": ["title", "content"], "return": "sentiment" }Response Object
Name
Type
Description
Result Example
{
"request": "analiza el sentimiento del siguiente texto",
"return_example": {"sentiment":"POSITIVE"},
"prompt": "As a Sentiment Analysis Agent, your task is to analyze the sentiment of the following text based on the title and content of the provided text. Your response should be one of the following sentiments: 'POSITIVE', 'NEGATIVE', or 'NEUTRAL'. Return the result strictly in JSON format as {'sentiment': 'value'} where 'value' is one of the above sentiments.\n\n### Input Example:\n{\n \"title\": \"Great Service!\",\n \"content\": \"I had a wonderful experience at the restaurant. The staff was friendly, and the food was excellent.\"\n}\n\n### Counterexample:\n{\n \"title\": \"\",\n \"content\": \"This place is meh.\"\n}\nExpected return: {'sentiment': 'NEUTRAL'}\n\n### Input to Analyze:\nTitle: \"{title}\"\nContent: \"{content}\"\n\nReturn the sentiment in JSON format as {'sentiment': 'value'}"
}Last updated