1.1.1 • Published 10 months ago
@riligar/agents-sdk v1.1.1
RiLiGar - Agents SDK for JavaScript
About
The RiLiGar Agents SDK is a robust JavaScript library designed to streamline the development of AI-powered applications through seamless integration with various Large Language Model (LLM) providers such as OpenAI, Google, and Anthropic, as well as Meta's Llama and ModelContext. Built with flexibility and extensibility in mind, it implements the Message Control Protocol (MCP) for reliable agent communication and management.
Key Features
- Multi-Provider Support: Built-in integrations with major LLM providers
- Agent Management System: Sophisticated agent lifecycle and interaction handling
- Voice Integration: Native support for voice-based interactions
- Advanced Tracing: Comprehensive system for monitoring and debugging agent behaviors
- MCP Protocol: Implementation of Message Control Protocol
Resources
Installation
npm install @riligar/agents-sdkMCP Protocol
The RiLiGar Agents SDK implements the Message Control Protocol (MCP) for reliable agent communication and management. MCP is a secure and efficient protocol that ensures secure and reliable communication between agents and their environment.
npx -y @modelcontextprotocol/inspector npm startUsage
const agent = new Agent({
name: "Assistant",
instructions: "You are a helpful assistant. Respond to the user's questions in a friendly and concise manner."
});
// console.log("Running agent Assistant (turn 1)");
const result = await Runner.run(agent, "Hello, world! What can you do for me?");
console.log("\nUser: Hello, world! What can you do for me?");
console.log(`Assistant: ${result.finalOutput}`);License
This project is licensed under the Apache-2.0 license.