Results 1 to 3 of 3

Thread: ai4vb - Ai integration

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,296

    ai4vb - Ai integration

    This is a small project that shows how you can integrate the Claude, ChatGPT, Gemini, or Ollama api into your programs.

    The main classes can be use in many ways. This example shows how to give the AI access to your programs data / API so it can automate your app and generate reports or do searches.

    We do this by adding our programs classes to the msscript control, and then giving the AI access to probe and query it. We have designed a way that the AI can automatically discover our API surface then access it dynamically with javascript.

    We use an auto generated dump of our class public prototypes to show whats available. There is a source code parser included to create these dumps by pointing it at the project file. If you wanted to keep some api private from the AI you could modify the parser to add function decorators as comments to omit them.

    There is a readme.md included and more discussion here: https://sandsprite.com/papers/Agenti...ect_Models.pdf

    Unless you run a local ollama model, you will need to generate your own API key for whichever AI to use this.

    repo: https://github.com/dzzie/ai4vb

    edit:
    added optional async=false
    added image analysis example
    added database analysis example
    added classes for ollama and gemini
    added a multi-agent chat room example
    added image tagging example
    Attached Files Attached Files
    Last edited by dz32; Jun 6th, 2026 at 07:34 PM.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,296

    Re: ai4vb - Ai integration

    So, one way to add AI to your app is to build it right in like the above example.

    Another way to do it is to make your app externally scriptable so AI can access it.

    For this mechanism to work users would have to be running a local AI agent such as claude code, and have the scripting interface of what methods they could call published for the AI to study. The scripting part can be pulled off using the Running Object Table (ROT) and leveraging vb6's native design where almost everything is a COM object by default. The AI then just executes a series of vbs script using GetObject() and figures out on its own how to answer the users question.

    If you search the forums you will find ROT examples: https://www.vbforums.com/showthread.php?879529
    Last edited by dz32; May 22nd, 2026 at 09:17 AM.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2015
    Posts
    1,296

    Re: ai4vb - Ai integration

    I added another class for local ollama access. I was using qwen3:30b, it did ok on the task1, but it didnt handle multiple tasks in one request well. You would have to break up multiple tasks in individual requests I think. It was able to navigate the js object model though. the ollama class also breaks the universal interface a little bit with: ip, model, thinking properties. The qwen model I used does not support vision so I didnt update the image example.

    also added a class for gemini, and a new example for a multi-agent chatroom where they can all debate.

    still learning it all but its interesting.
    Last edited by dz32; Jun 5th, 2026 at 07:29 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width