Skip to main content

Sekuire SDKs

Build AI agents with the Sekuire Secure Layer using our official SDKs for TypeScript, Python, and Rust.

tip

All SDKs use the same sekuire.yml configuration file format. Use the CLI to scaffold projects.

Installation

npm install @sekuire/sdk
# or
pnpm add @sekuire/sdk

Quick Start

Create an agent with the CLI, then use the SDK to interact with it:

import { getAgent } from '@sekuire/sdk';

// Load agent from sekuire.yml
const agent = await getAgent('assistant');

// Chat with the agent
const response = await agent.chat('Hello!');
console.log(response);

Features

FeatureTypeScriptPythonRust
LLM ProvidersOpenAI, Anthropic, Google, OllamaOpenAI, Anthropic, Google, OllamaOpenAI, Anthropic, Google, Ollama
Config-FirstYesYesYes
StreamingYesYesYes
Built-in ToolsYesYesYes
MemoryBuffer, WindowBuffer, WindowBuffer, Window
Type SafetyTypeScriptType HintsRust types

Core Concepts

Config-First Approach

All SDKs read from sekuire.yml - the same config file used by the CLI. This ensures consistency between your development workflow and runtime.

LLM Providers

Switch providers by changing the config. All SDKs support:

  • OpenAI - GPT-4, GPT-4 Turbo, GPT-3.5 Turbo
  • Anthropic - Claude 3 Opus, Sonnet, Haiku
  • Google - Gemini Pro, Gemini 1.5
  • Ollama - Local models (Llama, Mistral, etc.)

Async by Default

All SDKs are async-first for optimal performance with I/O-bound operations.

API Reference

Core API

CommandDescription
getAgent()Load single agent from config
getAgents()Load all agents from config
agent.chat()Send message and get response
agent.chatStream()Stream response tokens
Built-in ToolsCalculator, HTTP, Web Search

Platform Features

CommandDescription
A2AClient / A2AServerAgent-to-agent communication
createBeacon()Heartbeat and kill switch
SekuireServerHTTP server with trust endpoints
PolicyEnforcerRuntime policy enforcement
createMemoryStorage()Pluggable memory backends
initTelemetry()OpenTelemetry integration
createWorker()Background task processing
LLM ProvidersOpenAI, Anthropic, Google, Ollama

Advanced Features

FeatureDescription
Multi-Agent OrchestrationDiscover and delegate across agents
Agent IdentityCryptographic signing and verification
LoggingCompliance event logging

Reference

TopicDescription
Tools ReferenceAll 50+ built-in tools
Environment VariablesConfiguration reference
AuthenticationIdentity and trust
Error HandlingError types and recovery

Next Steps