Class TurImageSearchToolService
java.lang.Object
com.viglet.turing.genai.tool.TurImageSearchToolService
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TurImageSearchToolService
public TurImageSearchToolService()
-
-
Method Details
-
searchImages
@Tool(name="search_images", description="Searches for images on the web and returns image URLs with descriptions.\nUse this tool when the user asks to see, show, or find a photo, picture, or image of something.\nExamples: 'show me a photo of the Eiffel Tower', 'find an image of a Nintendo NES',\n'what does a capybara look like?', 'picture of the Mars rover'.\n\nIMPORTANT \u2014 Before calling this tool, you MUST act as a Prompt Engineer specialized in computer vision and transform the user's simple request into an optimized super-query:\n1. Subject: Identify the main object and add texture, color, and state adjectives (e.g., from 'car' to 'polished vintage red sports car').\n2. Context/Scene: Place the object in a specific environment (e.g., 'on an Italian coastal road during golden hour sunset').\n3. Technical parameters: Append professional photography terms such as 'shallow depth of field', '8k', 'volumetric lighting', 'sharp focus', 'cinematic style'.\n4. Language: The query MUST always be in English, as image search engines and AI models have higher accuracy in English.\n5. Output: Pass ONLY the optimized English string as the query \u2014 no explanations or extra text.\n\nArgs:\n query (str): Required. The optimized super-query in English (e.g., 'polished vintage red sports car on Italian coastal road, golden hour sunset, shallow depth of field, 8k, volumetric lighting, cinematic style').\n count (int): Optional. Number of images to return (1-8). Defaults to 3.") public String searchImages(String query, Integer count)
-