Class ToolStage

    • Method Detail

      • withTool

        public ToolStage withTool​(bg.codexio.ai.openai.api.payload.chat.request.ChatTool tool,
                                  boolean shouldChoose)
        Adds a tool and set it as toolChoice if true.
        Parameters:
        tool - ChatTool such as GetNearbyPlaces.CHOICE
        shouldChoose - boolean whether to add it in toolChoice
        Returns:
        self
      • chooseTool

        public ToolStage chooseTool​(bg.codexio.ai.openai.api.payload.chat.request.ChatTool tool)
        Adds a tool and set it as toolChoice.
        Parameters:
        tool - ChatTool such as GetNearbyPlaces.CHOICE
        Returns:
        self
      • justAdd

        public ToolStage justAdd​(bg.codexio.ai.openai.api.payload.chat.request.ChatTool tool)
        Adds a tool.
        Parameters:
        tool - ChatTool such as GetNearbyPlaces.CHOICE
        Returns:
        self