Worlds API provides world models and verified facts for agents.
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.
|
Explore graphs, run queries, and build your world model. Persistent context for your assistants and tools. |
Add reasoning and context to your agents with the SDK. No RDF expertise required. |
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.
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.",
});If you are building agents or apps, Worlds provides the context stack through one SDK.
deno add jsr:@wazoo/worlds-sdkimport { 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 .
}
`,
);Manage worlds directly from the terminal.
deno install -A --name worlds jsr:@wazoo/worlds-cli# 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"The following research inspires this work:
- Thinking with Knowledge Graphs (Arxiv)
- World Models (Ha & Schmidhuber)
- MemGPT: Towards LLMs as Operating Systems (Arxiv)
See the whitepaper.
Developed with @wazootech