Python
from chronicle import Chronicle
with Chronicle() as client:
result = client.worlds.examples.list()
print(result.items)import { Chronicle } from "@chroniclelabs/sdk";
const client = new Chronicle();
const result = await client.worlds.examples.list();
console.log(result.items);import { Chronicle } from "@chroniclelabs/sdk";
const client = new Chronicle();
const result = await client.worlds.examples.list();
console.log(result.items);package main
import (
"context"
"fmt"
"log"
"time"
chronicle "github.com/chronicle-labs/chronicle-go"
)
func main() {
if err := example(); err != nil { log.Fatal(err) }
}
func example() error {
ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
defer cancel()
client := chronicle.NewClient()
result, err := client.Worlds.Examples.List(ctx)
if err != nil {
return err
}
fmt.Println(result.Items)
return nil
}use chronicle_sdk::Chronicle;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Chronicle::from_env()?;
let result = client.worlds().examples().list().await?;
println!("{:?}", result.items);
Ok(())
}{
"examples": [
{
"blueprint": {
"clock": "<string>",
"identities": [
{
"department": "leadership",
"firstName": "<string>",
"handle": "<string>",
"lastName": "<string>",
"timezone": "<string>",
"title": "<string>",
"emailLocalPart": null,
"isApiOwner": false
}
],
"name": "<string>",
"organization": {
"description": "<string>",
"emailDomain": "<string>",
"industry": "<string>",
"name": "<string>",
"slug": "<string>",
"headquarters": null
},
"scenario": {
"narrative": "<string>",
"threads": [
{
"summary": "<string>",
"title": "<string>",
"touchpoints": [
{
"key": "<string>",
"role": "<string>",
"service": "slack"
}
]
}
],
"title": "<string>",
"suggestedTasks": [],
"tasks": []
},
"summary": "<string>",
"twins": {
"linear": null,
"salesforce": null,
"sapS4hana": null,
"slack": null
}
},
"id": "<string>",
"prompt": "<string>",
"title": "<string>"
}
]
}{
"error": "World not found"
}{
"error": "World not found"
}Worldsmith endpoints
List example worlds
Built-in example blueprints you can compile and launch as-is. Nothing is created by loading one.
Use the SDK setup with CHRONICLE_API_KEY and CHRONICLE_API_URL. The Go and Rust samples are complete entry points; Rust also needs Tokio (see Rust setup).
The schema below is the HTTP representation. SDKs normalize field names and list wrappers; see SDK and HTTP fields.
GET
/
v1
/
worldsmith
/
examples
Python
from chronicle import Chronicle
with Chronicle() as client:
result = client.worlds.examples.list()
print(result.items)import { Chronicle } from "@chroniclelabs/sdk";
const client = new Chronicle();
const result = await client.worlds.examples.list();
console.log(result.items);import { Chronicle } from "@chroniclelabs/sdk";
const client = new Chronicle();
const result = await client.worlds.examples.list();
console.log(result.items);package main
import (
"context"
"fmt"
"log"
"time"
chronicle "github.com/chronicle-labs/chronicle-go"
)
func main() {
if err := example(); err != nil { log.Fatal(err) }
}
func example() error {
ctx, cancel := context.WithTimeout(context.Background(), 120*time.Second)
defer cancel()
client := chronicle.NewClient()
result, err := client.Worlds.Examples.List(ctx)
if err != nil {
return err
}
fmt.Println(result.Items)
return nil
}use chronicle_sdk::Chronicle;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Chronicle::from_env()?;
let result = client.worlds().examples().list().await?;
println!("{:?}", result.items);
Ok(())
}{
"examples": [
{
"blueprint": {
"clock": "<string>",
"identities": [
{
"department": "leadership",
"firstName": "<string>",
"handle": "<string>",
"lastName": "<string>",
"timezone": "<string>",
"title": "<string>",
"emailLocalPart": null,
"isApiOwner": false
}
],
"name": "<string>",
"organization": {
"description": "<string>",
"emailDomain": "<string>",
"industry": "<string>",
"name": "<string>",
"slug": "<string>",
"headquarters": null
},
"scenario": {
"narrative": "<string>",
"threads": [
{
"summary": "<string>",
"title": "<string>",
"touchpoints": [
{
"key": "<string>",
"role": "<string>",
"service": "slack"
}
]
}
],
"title": "<string>",
"suggestedTasks": [],
"tasks": []
},
"summary": "<string>",
"twins": {
"linear": null,
"salesforce": null,
"sapS4hana": null,
"slack": null
}
},
"id": "<string>",
"prompt": "<string>",
"title": "<string>"
}
]
}{
"error": "World not found"
}{
"error": "World not found"
}