TypeScript SDK
Examples
Copy-ready examples for calling Roe with the TypeScript SDK.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Copy-ready examples for calling Roe with the TypeScript SDK.
agents_listimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.list(
{
page: 1, // optional
pageSize: 1, // optional
}
);
agents_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.create(
{
name: "name", // required
engineClassId: "engineClassId", // required
inputDefinitions: [{ key: "text", data_type: "text/plain" }], // optional
engineConfig: { model: "gpt-5.5-2026-04-23" }, // optional
versionName: "versionName", // optional
description: "description", // optional
}
);
agents_jobs_results_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.jobs.retrieveResultMany(["job_id"]);
agents_jobs_statuses_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.jobs.retrieveStatusMany(["job_id"]);
agents_jobs_artifacts_result_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.jobs.retrieveArtifact(
"jobId",
"artifactKey",
);
agents_jobs_references_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const content = await client.agents.jobs.downloadReference(
"job_id",
"resource_id",
false,
);
agents_jobs_result_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.jobs.retrieveResult("jobId");
agents_jobs_cancel_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.jobs.cancel("jobId");
agents_jobs_delete_data_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.jobs.deleteData("jobId");
agents_jobs_webhook_resend_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.jobs.resendWebhook(
"jobId",
"webhookId",
);
agents_jobs_status_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.jobs.retrieveStatus("jobId");
agents_runimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.runSync(
"agent_id",
{ text: "text" },
{},
{ skipCache: false }, // optional: true bypasses the job-result cache
);
agents_run_async_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const job = await client.agents.run({
agentId: "agent_id",
inputs: { text: "text" },
timeoutSeconds: 300,
metadata: {},
skipCache: false, // optional: true bypasses the job-result cache
});
agents_run_async_manyimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const batch = await client.agents.runMany({
agentId: "agent_id",
batchInputs: [{ text: "text" }],
timeoutSeconds: 300,
skipCache: false, // optional: true bypasses the job-result cache
});
agents_run_versionimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.runVersionSync(
"agent_id",
"version_id",
{ text: "text" },
{},
{ skipCache: false }, // optional: true bypasses the job-result cache
);
agents_run_versions_async_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const job = await client.agents.runVersion({
agentId: "agent_id",
versionId: "version_id",
inputs: { text: "text" },
timeoutSeconds: 300,
metadata: {},
skipCache: false, // optional: true bypasses the job-result cache
});
agents_destroyimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.delete("agentId");
agents_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.retrieve("agentId");
agents_partial_updateimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.update(
"agentId",
{
name: "name", // optional
disableCache: true, // optional
cacheFailedJobs: true, // optional
}
);
agents_updateimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.replace(
"agentId",
{
name: "name", // optional
disableCache: true, // optional
cacheFailedJobs: true, // optional
}
);
agents_duplicate_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.duplicate("agentId");
agents_jobs_listimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.jobs.list(
{
agentId: "agentId", // required
page: 1, // optional
pageSize: 1, // optional
statusCode: "statusCode", // optional
versionName: "versionName", // optional
metadata: "metadata", // optional
createdFrom: "createdFrom", // optional
createdTo: "createdTo", // optional
search: "search", // optional
ordering: "ordering", // optional
}
);
agents_jobs_cancel_all_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.jobs.cancelAll("agentId");
agents_versions_listimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.versions.list("agentId");
agents_versions_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.versions.create(
{
agentId: "agentId", // required
inputDefinitions: [{ key: "text", data_type: "text/plain" }], // optional
engineConfig: { model: "gpt-5.5-2026-04-23" }, // optional
versionName: "versionName", // optional
description: "description", // optional
}
);
agents_versions_current_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.versions.retrieveCurrent("agentId");
agents_versions_destroyimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.versions.delete(
"agentId",
"versionId",
);
agents_versions_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.versions.retrieve(
"agentId",
"versionId",
true,
);
agents_versions_partial_updateimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.versions.update(
"agentId",
"versionId",
{
versionName: "versionName", // optional
description: "description", // optional
}
);
agents_versions_updateimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.agents.versions.replace(
"agentId",
"versionId",
{
versionName: "versionName", // optional
description: "description", // optional
}
);
connections_listimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.connections.list(
{
connectorType: "connectorType", // optional
search: "search", // optional
page: 1, // optional
pageSize: 1, // optional
}
);
connections_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.connections.create(
{
connectorType: "connectorType", // required
name: "name", // required
config: {}, // required
description: "description", // optional
authConfig: {}, // optional
dynamicInputs: {}, // optional
}
);
connections_test_credentials_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.connections.testCredentials(
{
connectorType: "connectorType", // required
config: {}, // required
authConfig: {}, // optional
dynamicInputs: {}, // optional
}
);
connections_destroyimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.connections.delete("connectionId");
connections_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.connections.retrieve("connectionId");
connections_partial_updateimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.connections.update(
"connectionId",
{
name: "name", // optional
description: "description", // optional
config: {}, // optional
authConfig: {}, // optional
dynamicInputs: {}, // optional
}
);
connections_updateimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.connections.replace(
"connectionId",
{
name: "name", // optional
description: "description", // optional
config: {}, // optional
authConfig: {}, // optional
dynamicInputs: {}, // optional
}
);
connections_test_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.connections.test("connectionId");
connectors_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.connectors.list();
connectors_retrieve_by_typeimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.connectors.retrieve("connectorType");
discovery_supported_models_listimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.discovery.listSupportedModels("capability");
discovery_agent_engine_types_listimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.discovery.listAgentEngineTypes();
knowledge_base_listimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.list({
page: 1, // optional
pageSize: 10, // optional
});
knowledge_base_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.create({
company: "company",
brief: "brief",
});
knowledge_base_catalog_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.catalog();
knowledge_base_import_lens_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.importLens("atlas_lens_id");
knowledge_base_lens_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.lensByAtlasId("atlas_lens_id");
knowledge_base_destroyimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
await client.knowledge_base.delete("knowledge_base_id");
knowledge_base_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.retrieve("knowledge_base_id");
knowledge_base_draft_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.pollDraft("knowledge_base_id");
knowledge_base_finalize_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.finalize("knowledge_base_id");
knowledge_base_regenerate_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.regenerate("knowledge_base_id");
knowledge_base_resolve_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.resolve("knowledge_base_id");
knowledge_base_selection_partial_updateimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.patchSelection("knowledge_base_id", {
refs: [],
});
knowledge_base_sync_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.knowledge_base.sync("knowledge_base_id");
knowledge_base_unlink_destroyimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
await client.knowledge_base.unlink("knowledge_base_id");
policies_listimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.policies.list(
{
page: 1, // optional
pageSize: 1, // optional
}
);
policies_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.policies.create(
{
name: "name", // required
content: {}, // required
description: "description", // optional
versionName: "versionName", // optional
}
);
policies_destroyimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.policies.delete("policyId");
policies_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.policies.retrieve("policyId");
policies_partial_updateimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.policies.update(
"policyId",
{
name: "name", // optional
description: "description", // optional
}
);
policies_updateimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.policies.replace(
"policyId",
{
name: "name", // required
description: "description", // optional
}
);
policies_versions_listimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.policies.versions.list("policy_id");
policies_versions_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.policies.versions.create({
policyId: "policy_id",
content: {},
versionName: "version_name",
baseVersionId: "base_version_id",
});
policies_versions_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.policies.versions.retrieve(
"policy_id",
"version_id",
);
tables_listimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.tables.list();
tables_query_createimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.tables.query(
{
sql: "sql", // required
limit: 1, // optional
}
);
tables_query_result_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.tables.queryResult("tableQueryId");
tables_destroyimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.tables.delete("tableName");
tables_describe_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.tables.describe("tableName");
tables_preview_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.tables.preview(
"tableName",
{
limit: 1, // optional
}
);
upload_tableimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.tables.upload(
{
tableName: "table_name",
file: "file.csv",
withHeaders: true,
}
);
users_current_user_retrieveimport { RoeClient } from "roe-typescript";
const client = new RoeClient();
const result = await client.users.me();