Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ import { generateText, stepCountIs } from "ai";
import { diffbotExtract, diffbotWebSearch } from "@diffbot/ai-sdk";

const { text } = await generateText({
model: "anthropic/claude-sonnet-5",
model: "anthropic/claude-sonnet-5.5",
prompt: "What does Diffbot sell?",
tools: {
webSearch: diffbotWebSearch(),
Expand Down Expand Up @@ -194,7 +194,7 @@ import { generateText, stepCountIs } from "ai";
import { diffbotWebSearch } from "@diffbot/ai-sdk";

const { text } = await generateText({
model: "anthropic/claude-sonnet-5",
model: "anthropic/claude-sonnet-5.5",
prompt: "What has Diffbot shipped recently?",
tools: {
webSearch: diffbotWebSearch({
Expand Down Expand Up @@ -228,7 +228,7 @@ import { generateText, stepCountIs } from "ai";
import { diffbotExtract } from "@diffbot/ai-sdk";

const { text } = await generateText({
model: "anthropic/claude-sonnet-5",
model: "anthropic/claude-sonnet-5.5",
prompt: "Summarize https://www.diffbot.com",
tools: {
extract: diffbotExtract({ fmt: "markdown" }),
Expand Down Expand Up @@ -258,7 +258,7 @@ import { generateText, stepCountIs } from "ai";
import { diffbotKnowledgeGraph } from "@diffbot/ai-sdk";

const { text } = await generateText({
model: "anthropic/claude-sonnet-5",
model: "anthropic/claude-sonnet-5.5",
prompt: "Name three AI companies headquartered in Boston.",
tools: {
knowledgeGraph: diffbotKnowledgeGraph({ size: 10 }),
Expand All @@ -284,7 +284,7 @@ import { generateText, stepCountIs } from "ai";
import { diffbotEntities } from "@diffbot/ai-sdk";

const { text } = await generateText({
model: "anthropic/claude-sonnet-5",
model: "anthropic/claude-sonnet-5.5",
prompt: "Who is mentioned here? Diffbot opened an office in Berlin.",
tools: {
entities: diffbotEntities({ lang: "en" }),
Expand Down Expand Up @@ -342,7 +342,7 @@ import { generateText, stepCountIs } from "ai";
import { diffbotOntology } from "@diffbot/ai-sdk";

const { text } = await generateText({
model: "anthropic/claude-sonnet-5",
model: "anthropic/claude-sonnet-5.5",
prompt: "Which Organization fields describe headquarters and headcount?",
tools: { ontology: diffbotOntology() },
stopWhen: stepCountIs(4),
Expand All @@ -366,7 +366,7 @@ import { generateText, stepCountIs } from "ai";
import { diffbotDqlProbe } from "@diffbot/ai-sdk";

const { text } = await generateText({
model: "anthropic/claude-sonnet-5",
model: "anthropic/claude-sonnet-5.5",
prompt: "How many Boston AI companies are in the Knowledge Graph? Probe before you guess.",
tools: {
probe: diffbotDqlProbe({ workers: 4 }),
Expand All @@ -387,7 +387,7 @@ import { generateText, stepCountIs } from "ai";
import { diffbotDqlProbe, diffbotKnowledgeGraph, diffbotOntology } from "@diffbot/ai-sdk";

const { text } = await generateText({
model: "anthropic/claude-sonnet-5",
model: "anthropic/claude-sonnet-5.5",
system: [
"Look up fields with the ontology before writing DQL.",
"Probe candidate queries and keep one that is neither empty nor huge.",
Expand Down Expand Up @@ -426,7 +426,7 @@ import { generateText, stepCountIs } from "ai";
import { diffbotAsk } from "@diffbot/ai-sdk";

const { text } = await generateText({
model: "anthropic/claude-sonnet-5",
model: "anthropic/claude-sonnet-5.5",
prompt: "Who acquired Figma, and when?",
tools: { ask: diffbotAsk() },
stopWhen: stepCountIs(3),
Expand Down
Loading