Skip to content

About

Samples for AI Hub

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Samples-AIHub

This repository contains various examples for how to use the two main parts of AI Hub: the ObjectScript SDK, which provides an API for agents to call regular ObjectScript methods as tools, and the iris-mcp-server, which allows clients to call tools exposed by InterSystems IRIS as MCP endpoints.

Getting Started

To load the examples in this repository:

USER> Do $SYSTEM.OBJ.Import("/path/to/Samples-AIHub/objectscript/cls", "ck", "*.cls", .errors, .imported)

Prerequisites

Directory Structure

In /objectscript/cls/Sample/AI:

  • Tools and ToolSet - Example tools.
  • Agent - Example Agents. These examples create agents declaratively by creating subclasses of %AI.Agent with defined class parameters.
  • Skill - Examples of how to define and use skills.
  • Policies - Examples of how to create policies to audit tool calls.
  • Examples - A sampler of various examples that uses one or more of the previous concepts.
  • Proglang - A "Programming Language Professsor" agent and includes an MCP service example. You should refer to the Calculator example before exploring this one.
  • Orders - Helper classes and scaffolding for other examples.
  • Utils.cls - Helper functions for the various examples.

In /objectscript/cls/Sample/MCP/Service:

About

Samples for AI Hub

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages