sas-retrieval-agent-manager-examples

Overview

This repository contains code examples for using the APIs provided by SAS Retrieval Agent Manager (RAM).

This repository is an open source project under the Apache License 2.0. The software and documentation are provided on an AS IS basis, without warranties or conditions. SAS does not accept responsibility for use of this repository and does not provide support except where applicable law requires otherwise. See SUPPORT.md for the support policy.

Examples

Web App

Example Description
chat web app This example demonstrates how to build a web-based chat interface to interact with SAS Retrieval Agent Manager. The application allows users to authenticate with their SAS RAM credentials, select from available document collections, and ask questions about private documents that have been added to SAS RAM Agent Manager. It provides a complete implementation of a Next.js-based chat application with authentication, session management, and real-time query capabilities.

Agent Orchestrators

Example Description
news orchestrator An advanced orchestrator that coordinates domain-specific news agents to produce cross-domain news analysis and insight-driven narratives.
simple orchestrator A minimal, no-code orchestrator example that demonstrates the basic sub-agent coordination pattern.

Agents

Example Description
agentstore notes agent An agent that demonstrates using the AgentStore to summarize and persist conversation notes across turns.
banking agent A banking climate-risk analysis agent that queries bank report collections, supports templated questions, compares bank groups, and can generate chart output.
business news agent A no-code agent specialized in business and financial news, with access to a news collection and search tools.
default tool calling agent A default RAM code agent template that uses experiment-configured tools, collections, and retrieval settings.
doc metadata augmentation agent An agent that demonstrates retrieval with metadata-aware prompting by injecting file name, page number, and chunk details into LLM context.
financial agent An agent that combines structured financial data queries with unstructured document search to generate client-specific daily market updates.
health news agent A no-code agent specialized in health and medical news, with access to a news collection and search tools.
image render agent An agent that demonstrates how to render tool-generated images in the RAM chat using base64-encoded image output.
mcp tool agent A code agent template that discovers and directly invokes MCP tools by name from user prompts, bypassing LLM-driven tool selection.
multiple llms agent An agent that routes prompts between low- and high-reasoning LLM aliases to show dynamic multi-model selection in a single agent template.
news information finder A general-purpose news search agent with access to all news collections and web search tools.
science and tech news agent A no-code agent specialized in science and technology news, with access to a news collection and search tools.
tool timeout configuration agent A code agent template that configures tool and query timeout values through environment variables.

Catalog MCP Servers

Example Description
openapi mcp server RAM’s built-in OpenAPI MCP Server catalog template, which auto-generates MCP tools from an OpenAPI spec with no custom code or container. Includes an F1 Connect API example.
remote mcp server RAM’s built-in Remote MCP Server catalog template, which connects directly to an externally hosted MCP server over HTTP. Includes an Exa web search example.

Code MCP Servers

Example Description
finance tools An MCP server example that has finance and quantitative analysis tools, including market data lookup, regression, summary statistics, and arithmetic helpers.
news search tools An MCP server example that has web search tools for finding news from NYT, Reddit, DuckDuckGo, and Yahoo Finance.
simple calculator A minimal single-tool MCP server example that adds two integers.
skills A dynamic skill execution MCP server that loads markdown procedural skills on demand and exposes an invoke_skill tool.
web search A lightweight web search MCP server example built on DuckDuckGo search via the ddgs package.

Container MCP Servers

Example Description
chart generator A container MCP server that generates charts and returns base64-encoded images for use in RAM agents.
Postgres db connection template A container MCP server template that uses Google GenAI Toolbox prebuilt Postgres tools for database connectivity.
SAS Viya connection A container MCP server template that uses sassoftware/sas-mcp-server tools for connectivity with SAS Viya.

Custom Sources

Example Description
financial news fetcher A custom source example that fetches technology-sector financial news, generates a PDF digest, and saves the PDF into a RAM source for downstream collection ingestion.
news source A parameterized news source that fetches from NYT, Reddit, and Yahoo Finance for a configurable news domain.
NYT front page source A custom soure example that fetches the daily headlines from all 26 NYT Top Stories sections.

Helm Charts

Chart Description
model serving Installs KServe from locked upstream Helm dependencies and supports values-driven InferenceService and LLMInferenceService deployments.

Contributing

Maintainers are accepting patches and contributions to this project. Please read CONTRIBUTING.md for details about submitting contributions to this project.

License

Except for the the contents of the /assets/images/ folder, this project is licensed under the Apache 2.0 License. Elements in the /assets/images/ folder are owned by SAS and are not released under an open source license. SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.

Additional Resources

SAS Retrieval Agent Manager Help Center


Back to top

Open source under the Apache License 2.0. Provided AS IS, without warranties, responsibility, or support from SAS except where applicable law requires otherwise.