Skip to content

wazootech/worlds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

380 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Worlds Platform

Worlds API provides world models and verified facts for agents.

JSR JSR Score GitHub Ask DeepWiki

Worlds Platform is a context layer for agents. The engine manages, queries, and proves knowledge using SPARQL standards at the edge.

  • Reasoning: Built-in SPARQL support for federated knowledge discovery.
  • Agnostic: Works with any model, framework, or agent.
  • AI-native: Tool-calling support and context injection.
  • Provenance: Direct link to source data for all knowledge.
  • Continual learning: Designed to improve recall and reasoning over time.

Worlds delivers these features through an open-source API.

Use Worlds

Manage knowledge

Explore graphs, run queries, and build your world model.

Persistent context for your assistants and tools.

→ Open Worlds Console


Build agents

Add reasoning and context to your agents with the SDK.

No RDF expertise required.

→ Install CLI


Context for agents

The Worlds SDK provides agents with persistent context.

Important

Logical facts are technical descriptions of graph state. Worlds Platform focuses on deterministic symbolic logic. It manages actual relationships and hierarchies to provide verifiable reasoning.

Worlds Console

Manage worlds through the web interface. Build graphs, test SPARQL queries, and monitor agent memory.

The platform's AI SDK provides support for tool-calling.

import type { WorldEntry } from "@wazoo/worlds-sdk";
import { Worlds } from "@wazoo/worlds-sdk";
import { createTools } from "@wazoo/worlds-ai-sdk";

const worlds = new Worlds({
  baseUrl: "http://localhost:8000",
  apiKey: "your-api-key",
});

const { text } = await generateText({
  model: openai("gpt-4o"),
  tools: createTools({
    worlds,
    sources: [{ id: "my-knowledge-base" }],
  }),
  prompt:
    "Identify the ultimate beneficial owner of the holding company and cite the source.",
});

Build with Worlds SDK

If you are building agents or apps, Worlds provides the context stack through one SDK.

Install

deno add jsr:@wazoo/worlds-sdk

Quickstart

import { Worlds } from "@wazoo/worlds-sdk";

const worlds = new Worlds({
  baseUrl: "http://localhost:8000",
  apiKey: "your-api-key",
});

const worldId = "my-knowledge-base";

// Add facts to your world.
await worlds.sparql(
  worldId,
  `
  INSERT DATA {
    <http://corp.example/acme-corp> <http://schema.org/ownedBy> <http://corp.example/parent-co> .
    <http://corp.example/parent-co> <http://schema.org/legalName> "Parent Holdings Ltd." .
  }
`,
);

// Perform reasoning over your world.
const result = await worlds.sparql(
  worldId,
  `
  SELECT ?parentName WHERE {
    <http://corp.example/acme-corp> <http://schema.org/ownedBy> ?parent .
    ?parent <http://schema.org/legalName> ?parentName .
  }
`,
);

Command line interface

Manage worlds directly from the terminal.

Install

deno install -A --name worlds jsr:@wazoo/worlds-cli

Usage

# Create a new world
worlds create --label "My First World"

# List worlds
worlds list

# Run a SPARQL query
worlds sparql "SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10"

Prior research

The following research inspires this work:

See the whitepaper.

Quicklinks

Developed with @wazootech

About

🔵 Worlds is the infrastructure layer for knowledge.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors