Class TurFinanceToolService

java.lang.Object
com.viglet.turing.genai.tool.TurFinanceToolService

@Service public class TurFinanceToolService extends Object
  • Constructor Details

    • TurFinanceToolService

      public TurFinanceToolService()
  • Method Details

    • getStockQuote

      @Tool(name="get_stock_quote", description="Gets the current stock price and market data for a given ticker symbol.\nUse this tool when the user asks about stock prices, market data, or financial quotes.\nArgs:\n symbol (str): Stock ticker symbol (e.g., 'AAPL' for Apple, 'GOOGL' for Google, 'PETR4.SA' for Petrobras, '^BVSP' for Bovespa index, '^GSPC' for S&P 500, '^DJI' for Dow Jones, 'BTC-USD' for Bitcoin, 'BRL=X' for USD/BRL exchange rate). Required.\n range (str): Time range for historical data. Options: '1d', '5d', '1mo', '3mo', '6mo', '1y'. Default: '5d'.\nReturns:\n Current price, change, volume, and recent price history.") public String getStockQuote(String symbol, String range)
    • searchTicker

      @Tool(name="search_ticker", description="Searches for a stock ticker symbol by company name or keyword.\nUse this tool when the user mentions a company name but not the ticker symbol, or when you need to find the correct ticker for a stock, index, or cryptocurrency.\nArgs:\n query (str): Company name or search keyword (e.g., 'Apple', 'Petrobras', 'Bitcoin'). Required.\nReturns:\n A list of matching ticker symbols with company name, exchange, and type.") public String searchTicker(String query)