@dxos/assistant-toolkit 0.8.4-main.ae835ea → 0.8.4-main.c85a9c8dae
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/index.mjs +2989 -1842
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/testing/index.mjs +81 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/types/src/blueprints/browser/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/browser/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/browser/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/browser/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/browser/index.d.ts +2 -0
- package/dist/types/src/blueprints/browser/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/database/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/database/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/context-add.d.ts +6 -0
- package/dist/types/src/blueprints/database/functions/context-add.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts +6 -0
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/index.d.ts +57 -0
- package/dist/types/src/blueprints/database/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/load.d.ts +6 -0
- package/dist/types/src/blueprints/database/functions/load.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/object-create.d.ts +6 -0
- package/dist/types/src/blueprints/database/functions/object-create.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/object-delete.d.ts +6 -0
- package/dist/types/src/blueprints/database/functions/object-delete.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/object-update.d.ts +9 -0
- package/dist/types/src/blueprints/database/functions/object-update.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/query.d.ts +9 -0
- package/dist/types/src/blueprints/database/functions/query.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/relation-create.d.ts +9 -0
- package/dist/types/src/blueprints/database/functions/relation-create.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/relation-delete.d.ts +6 -0
- package/dist/types/src/blueprints/database/functions/relation-delete.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/schema-add.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/schema-add.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/schema-list.d.ts +5 -0
- package/dist/types/src/blueprints/database/functions/schema-list.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/tag-add.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/tag-add.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/index.d.ts +3 -0
- package/dist/types/src/blueprints/database/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/design/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/design/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/design/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/design/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/design/index.d.ts +1 -2
- package/dist/types/src/blueprints/design/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/discord/blueprint.d.ts.map +1 -0
- package/dist/types/src/{functions/discord → blueprints/discord/functions}/fetch-messages.d.ts +1 -1
- package/dist/types/src/blueprints/discord/functions/fetch-messages.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/functions/fetch-messages.test.d.ts.map +1 -0
- package/dist/types/src/{functions/discord → blueprints/discord/functions}/index.d.ts +4 -4
- package/dist/types/src/blueprints/discord/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/index.d.ts +1 -2
- package/dist/types/src/blueprints/discord/index.d.ts.map +1 -1
- package/dist/types/src/{functions/github → blueprints/github/functions}/fetch-prs.d.ts +1 -1
- package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts.map +1 -0
- package/dist/types/src/blueprints/github/functions/index.d.ts +7 -0
- package/dist/types/src/blueprints/github/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/github/index.d.ts +1 -0
- package/dist/types/src/blueprints/github/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +10 -6
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/linear/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/index.d.ts +9 -0
- package/dist/types/src/blueprints/linear/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/linear.test.d.ts.map +1 -0
- package/dist/types/src/{functions/linear → blueprints/linear/functions}/sync-issues.d.ts +2 -2
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/index.d.ts +1 -2
- package/dist/types/src/blueprints/linear/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/markdown/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/markdown/blueprint.d.ts.map +1 -0
- package/dist/types/src/{functions/research/create-document.d.ts → blueprints/markdown/functions/create.d.ts} +2 -3
- package/dist/types/src/blueprints/markdown/functions/create.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/index.d.ts +30 -0
- package/dist/types/src/blueprints/markdown/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/read.d.ts +14 -0
- package/dist/types/src/blueprints/markdown/functions/read.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/update.d.ts +13 -0
- package/dist/types/src/blueprints/markdown/functions/update.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/index.d.ts +3 -0
- package/dist/types/src/blueprints/markdown/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/planning/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/functions/index.d.ts +10 -0
- package/dist/types/src/blueprints/planning/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts +9 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/index.d.ts +1 -2
- package/dist/types/src/blueprints/planning/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning-old/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/planning-old/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/planning-old/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/index.d.ts +29 -0
- package/dist/types/src/blueprints/planning-old/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/read.d.ts +14 -0
- package/dist/types/src/blueprints/planning-old/functions/read.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/task-list.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/task-list.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/update.d.ts +16 -0
- package/dist/types/src/blueprints/planning-old/functions/update.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/index.d.ts +2 -0
- package/dist/types/src/blueprints/planning-old/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/project/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/project/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts +7 -0
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/agent.d.ts +62 -0
- package/dist/types/src/blueprints/project/functions/agent.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/get-context.d.ts +13 -0
- package/dist/types/src/blueprints/project/functions/get-context.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/index.d.ts +133 -0
- package/dist/types/src/blueprints/project/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts +60 -0
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/index.d.ts +3 -0
- package/dist/types/src/blueprints/project/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/research/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/research/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/document-create.d.ts +10 -0
- package/dist/types/src/blueprints/research/functions/document-create.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/index.d.ts +19 -0
- package/dist/types/src/blueprints/research/functions/index.d.ts.map +1 -0
- package/dist/types/src/{functions/research → blueprints/research/functions}/research.d.ts +4 -3
- package/dist/types/src/blueprints/research/functions/research.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/research.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/index.d.ts +2 -2
- package/dist/types/src/blueprints/research/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts +18 -0
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/types/index.d.ts +7 -0
- package/dist/types/src/blueprints/research/types/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/testing.d.ts +18 -4
- package/dist/types/src/blueprints/testing.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/websearch/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/index.d.ts +2 -3
- package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/{websearch-toolkit.d.ts → toolkit.d.ts} +2 -1
- package/dist/types/src/blueprints/websearch/toolkit.d.ts.map +1 -0
- package/dist/types/src/{functions/research → crud}/graph.d.ts +14 -11
- package/dist/types/src/crud/graph.d.ts.map +1 -0
- package/dist/types/src/crud/graph.test.d.ts.map +1 -0
- package/dist/types/src/crud/index.d.ts +2 -0
- package/dist/types/src/crud/index.d.ts.map +1 -0
- package/dist/types/src/functions/agent/index.d.ts +84 -4
- package/dist/types/src/functions/agent/index.d.ts.map +1 -1
- package/dist/types/src/functions/agent/prompt.d.ts +81 -8
- package/dist/types/src/functions/agent/prompt.d.ts.map +1 -1
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +142 -136
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +1 -1
- package/dist/types/src/functions/entity-extraction/index.d.ts +144 -139
- package/dist/types/src/functions/entity-extraction/index.d.ts.map +1 -1
- package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts.map +1 -0
- package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts.map +1 -0
- package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts.map +1 -0
- package/dist/types/src/functions/exa/data/index.d.ts.map +1 -0
- package/dist/types/src/functions/exa/exa.d.ts +1 -1
- package/dist/types/src/functions/exa/index.d.ts +8 -2
- package/dist/types/src/functions/exa/index.d.ts.map +1 -1
- package/dist/types/src/functions/exa/mock.d.ts +1 -1
- package/dist/types/src/functions/index.d.ts +1 -5
- package/dist/types/src/functions/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/sync/sync.d.ts +3 -3
- package/dist/types/src/sync/sync.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +2 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/plugins.d.ts +19 -0
- package/dist/types/src/testing/plugins.d.ts.map +1 -0
- package/dist/types/src/toolkits/WebToolkit.d.ts +38 -0
- package/dist/types/src/toolkits/WebToolkit.d.ts.map +1 -0
- package/dist/types/src/toolkits/index.d.ts +2 -0
- package/dist/types/src/toolkits/index.d.ts.map +1 -0
- package/dist/types/src/types/Chat.d.ts +31 -0
- package/dist/types/src/types/Chat.d.ts.map +1 -0
- package/dist/types/src/types/Plan.d.ts +77 -0
- package/dist/types/src/types/Plan.d.ts.map +1 -0
- package/dist/types/src/types/Project.d.ts +67 -0
- package/dist/types/src/types/Project.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +4 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +49 -38
- package/src/blueprints/browser/blueprint.conversations.json +1 -0
- package/src/blueprints/browser/blueprint.test.ts +70 -0
- package/src/blueprints/browser/blueprint.ts +41 -0
- package/src/blueprints/browser/index.ts +5 -0
- package/src/blueprints/database/blueprint.conversations.json +1 -0
- package/src/blueprints/database/blueprint.test.ts +321 -0
- package/src/blueprints/database/blueprint.ts +39 -0
- package/src/blueprints/database/functions/context-add.ts +35 -0
- package/src/blueprints/database/functions/context-remove.ts +35 -0
- package/src/blueprints/database/functions/index.ts +33 -0
- package/src/blueprints/database/functions/load.ts +31 -0
- package/src/blueprints/database/functions/object-create.ts +35 -0
- package/src/blueprints/database/functions/object-delete.ts +27 -0
- package/src/blueprints/database/functions/object-update.ts +32 -0
- package/src/blueprints/database/functions/query.ts +126 -0
- package/src/blueprints/database/functions/relation-create.ts +47 -0
- package/src/blueprints/database/functions/relation-delete.ts +28 -0
- package/src/blueprints/database/functions/schema-add.ts +40 -0
- package/src/blueprints/database/functions/schema-list.ts +34 -0
- package/src/blueprints/database/functions/tag-add.ts +31 -0
- package/src/blueprints/database/functions/tag-remove.ts +30 -0
- package/src/blueprints/database/index.ts +6 -0
- package/src/blueprints/design/{design-blueprint.test.ts → blueprint.test.ts} +25 -37
- package/src/blueprints/design/blueprint.ts +46 -0
- package/src/blueprints/design/index.ts +1 -3
- package/src/blueprints/discord/blueprint.ts +46 -0
- package/src/{functions/discord → blueprints/discord/functions}/fetch-messages.test.ts +10 -14
- package/src/{functions/discord → blueprints/discord/functions}/fetch-messages.ts +11 -10
- package/src/blueprints/discord/functions/index.ts +9 -0
- package/src/blueprints/discord/index.ts +1 -3
- package/src/{functions/github → blueprints/github/functions}/fetch-prs.ts +3 -2
- package/src/blueprints/github/functions/index.ts +9 -0
- package/src/blueprints/github/index.ts +3 -0
- package/src/blueprints/index.ts +10 -6
- package/src/blueprints/linear/blueprint.ts +47 -0
- package/src/blueprints/linear/functions/index.ts +9 -0
- package/src/blueprints/linear/functions/linear.test.ts +58 -0
- package/src/{functions/linear → blueprints/linear/functions}/sync-issues.ts +17 -15
- package/src/blueprints/linear/index.ts +1 -3
- package/src/blueprints/markdown/blueprint.ts +38 -0
- package/src/blueprints/markdown/functions/create.ts +29 -0
- package/src/blueprints/markdown/functions/index.ts +13 -0
- package/src/blueprints/markdown/functions/read.ts +32 -0
- package/src/{functions/document → blueprints/markdown/functions}/update.ts +9 -7
- package/src/blueprints/markdown/index.ts +6 -0
- package/src/blueprints/planning/blueprint.ts +28 -0
- package/src/blueprints/planning/functions/index.ts +9 -0
- package/src/blueprints/planning/functions/update-tasks.ts +168 -0
- package/src/blueprints/planning/index.ts +2 -4
- package/src/blueprints/{planning/planning-blueprint.test.ts → planning-old/blueprint.test.ts} +25 -32
- package/src/blueprints/{planning/planning-blueprint.ts → planning-old/blueprint.ts} +24 -12
- package/src/blueprints/planning-old/functions/index.ts +11 -0
- package/src/{functions/tasks → blueprints/planning-old/functions}/read.ts +6 -6
- package/src/{functions/tasks → blueprints/planning-old/functions}/update.ts +6 -6
- package/src/blueprints/planning-old/index.ts +5 -0
- package/src/blueprints/project/blueprint.test.ts +579 -0
- package/src/blueprints/project/blueprint.ts +68 -0
- package/src/blueprints/project/functions/add-artifact.ts +41 -0
- package/src/blueprints/project/functions/agent.ts +72 -0
- package/src/blueprints/project/functions/get-context.ts +63 -0
- package/src/blueprints/project/functions/index.ts +15 -0
- package/src/blueprints/project/functions/qualifier.ts +96 -0
- package/src/blueprints/project/index.ts +6 -0
- package/src/blueprints/research/blueprint.ts +65 -0
- package/src/blueprints/research/functions/document-create.ts +73 -0
- package/src/blueprints/research/functions/index.ts +11 -0
- package/src/{functions/research/instructions-research.tpl → blueprints/research/functions/research-instructions.tpl} +14 -6
- package/src/blueprints/research/functions/research.conversations.json +1 -0
- package/src/blueprints/research/functions/research.test.ts +149 -0
- package/src/blueprints/research/functions/research.ts +175 -0
- package/src/blueprints/research/index.ts +2 -3
- package/src/blueprints/research/types/ResearchGraph.ts +49 -0
- package/src/blueprints/research/types/index.ts +32 -0
- package/src/blueprints/testing.ts +36 -5
- package/src/blueprints/websearch/blueprint.ts +32 -0
- package/src/blueprints/websearch/index.ts +2 -4
- package/src/crud/graph.test.ts +46 -0
- package/src/{functions/research → crud}/graph.ts +32 -40
- package/src/crud/index.ts +5 -0
- package/src/functions/READ_THIS.md +5 -0
- package/src/functions/agent/index.ts +4 -6
- package/src/functions/agent/prompt.ts +32 -25
- package/src/functions/entity-extraction/entity-extraction.conversations.json +1 -1
- package/src/functions/entity-extraction/entity-extraction.test.ts +17 -43
- package/src/functions/entity-extraction/entity-extraction.ts +54 -36
- package/src/functions/entity-extraction/index.ts +4 -4
- package/src/functions/exa/exa.ts +2 -2
- package/src/functions/exa/index.ts +7 -2
- package/src/functions/exa/mock.ts +1 -1
- package/src/functions/index.ts +1 -5
- package/src/index.ts +3 -1
- package/src/sync/sync.ts +38 -30
- package/src/testing/index.ts +2 -1
- package/src/testing/plugins.tsx +72 -0
- package/src/toolkits/WebToolkit.ts +33 -0
- package/src/toolkits/index.ts +5 -0
- package/src/types/Chat.ts +49 -0
- package/src/types/Plan.ts +107 -0
- package/src/types/Project.ts +196 -0
- package/src/types/index.ts +7 -0
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/node-esm/index.mjs +0 -2483
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/types/src/blueprints/design/design-blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/design/design-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/design/design-blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprints/design/design-blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/discord/discord-blueprint.d.ts +0 -18
- package/dist/types/src/blueprints/discord/discord-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/linear/linear-blueprint.d.ts +0 -18
- package/dist/types/src/blueprints/linear/linear-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning/planning-blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/planning/planning-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning/planning-blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprints/planning/planning-blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/research-blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/research/research-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/research-blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprints/research/research-blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts.map +0 -1
- package/dist/types/src/experimental/feed.test.d.ts +0 -2
- package/dist/types/src/experimental/feed.test.d.ts.map +0 -1
- package/dist/types/src/functions/discord/fetch-messages.d.ts.map +0 -1
- package/dist/types/src/functions/discord/fetch-messages.test.d.ts.map +0 -1
- package/dist/types/src/functions/discord/index.d.ts.map +0 -1
- package/dist/types/src/functions/document/index.d.ts +0 -12
- package/dist/types/src/functions/document/index.d.ts.map +0 -1
- package/dist/types/src/functions/document/read.d.ts +0 -7
- package/dist/types/src/functions/document/read.d.ts.map +0 -1
- package/dist/types/src/functions/document/update.d.ts +0 -6
- package/dist/types/src/functions/document/update.d.ts.map +0 -1
- package/dist/types/src/functions/github/fetch-prs.d.ts.map +0 -1
- package/dist/types/src/functions/linear/index.d.ts +0 -9
- package/dist/types/src/functions/linear/index.d.ts.map +0 -1
- package/dist/types/src/functions/linear/linear.test.d.ts.map +0 -1
- package/dist/types/src/functions/linear/sync-issues.d.ts.map +0 -1
- package/dist/types/src/functions/research/create-document.d.ts.map +0 -1
- package/dist/types/src/functions/research/graph.d.ts.map +0 -1
- package/dist/types/src/functions/research/graph.test.d.ts.map +0 -1
- package/dist/types/src/functions/research/index.d.ts +0 -19
- package/dist/types/src/functions/research/index.d.ts.map +0 -1
- package/dist/types/src/functions/research/research-graph.d.ts +0 -18
- package/dist/types/src/functions/research/research-graph.d.ts.map +0 -1
- package/dist/types/src/functions/research/research.d.ts.map +0 -1
- package/dist/types/src/functions/research/research.test.d.ts.map +0 -1
- package/dist/types/src/functions/research/types.d.ts +0 -384
- package/dist/types/src/functions/research/types.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/index.d.ts +0 -15
- package/dist/types/src/functions/tasks/index.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/read.d.ts +0 -7
- package/dist/types/src/functions/tasks/read.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/task-list.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/task-list.test.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/update.d.ts +0 -9
- package/dist/types/src/functions/tasks/update.d.ts.map +0 -1
- package/dist/types/src/plugins.d.ts +0 -19
- package/dist/types/src/plugins.d.ts.map +0 -1
- package/dist/types/src/testing/data/exa-search-1748337321991.d.ts.map +0 -1
- package/dist/types/src/testing/data/exa-search-1748337331526.d.ts.map +0 -1
- package/dist/types/src/testing/data/exa-search-1748337344119.d.ts.map +0 -1
- package/dist/types/src/testing/data/index.d.ts.map +0 -1
- package/src/blueprints/design/design-blueprint.ts +0 -33
- package/src/blueprints/discord/discord-blueprint.ts +0 -34
- package/src/blueprints/linear/linear-blueprint.ts +0 -35
- package/src/blueprints/research/research-blueprint.ts +0 -45
- package/src/blueprints/websearch/websearch-blueprint.ts +0 -20
- package/src/experimental/feed.test.ts +0 -108
- package/src/functions/discord/index.ts +0 -9
- package/src/functions/document/index.ts +0 -11
- package/src/functions/document/read.ts +0 -29
- package/src/functions/linear/index.ts +0 -9
- package/src/functions/linear/linear.test.ts +0 -86
- package/src/functions/research/create-document.ts +0 -69
- package/src/functions/research/graph.test.ts +0 -69
- package/src/functions/research/index.ts +0 -15
- package/src/functions/research/research-graph.ts +0 -47
- package/src/functions/research/research.conversations.json +0 -10714
- package/src/functions/research/research.test.ts +0 -240
- package/src/functions/research/research.ts +0 -155
- package/src/functions/research/types.ts +0 -24
- package/src/functions/tasks/index.ts +0 -11
- package/src/plugins.tsx +0 -68
- /package/dist/types/src/{functions/discord → blueprints/discord/functions}/fetch-messages.test.d.ts +0 -0
- /package/dist/types/src/{functions/linear → blueprints/linear/functions}/linear.test.d.ts +0 -0
- /package/dist/types/src/{functions/tasks → blueprints/planning-old/functions}/task-list.d.ts +0 -0
- /package/dist/types/src/{functions/tasks → blueprints/planning-old/functions}/task-list.test.d.ts +0 -0
- /package/dist/types/src/{functions/research → blueprints/research/functions}/research.test.d.ts +0 -0
- /package/dist/types/src/{functions/research → crud}/graph.test.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337321991.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337331526.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337344119.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/index.d.ts +0 -0
- /package/src/{functions/tasks → blueprints/planning-old/functions}/task-list.test.ts +0 -0
- /package/src/{functions/tasks → blueprints/planning-old/functions}/task-list.ts +0 -0
- /package/src/blueprints/research/{research-blueprint.test.ts → blueprint.test.ts} +0 -0
- /package/src/blueprints/websearch/{websearch-toolkit.ts → toolkit.ts} +0 -0
- /package/src/{testing → functions/exa}/data/exa-search-1748337321991.ts +0 -0
- /package/src/{testing → functions/exa}/data/exa-search-1748337331526.ts +0 -0
- /package/src/{testing → functions/exa}/data/exa-search-1748337344119.ts +0 -0
- /package/src/{testing → functions/exa}/data/index.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"conversations":[{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N4Z3GQBH7RPS7NSMZZW9TE\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hello, how are you?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.doe@example.com\",\"name\":\"John Doe\"}},\"contact\":{\"id\":\"01K6N4Z3M23TKTPKGAJC1ZYF34\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.doe@example.com\"}],\"fullName\":\"John Doe\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_01JXJSoaEWxv2ZPLc7aTHSrL","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I can","metadata":{}},{"type":"text-delta","id":"0","delta":" see that the sender John Doe is from","metadata":{}},{"type":"text-delta","id":"0","delta":" the email domain \"example.com\". I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ll extract and create an","metadata":{}},{"type":"text-delta","id":"0","delta":" organization record for this domain.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"{\"objects_dx","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"os_org_type_","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"Or","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"ganization\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":": [{\"id","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"\":\"exa","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"mple","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"-com","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"\",\"name\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"\"Example.co","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"m\",\"w","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"ebsite\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":":\"htt","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"ps://ex","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"amp","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"le.com\"}","metadata":{}},{"type":"tool-params-delta","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","delta":"]}","metadata":{}},{"type":"tool-params-end","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","metadata":{}},{"type":"tool-call","id":"toolu_01D9nUnfahdBrsHkPpAaVms6","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Example.com","website":"https://example.com","id":"example-com"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":813,"outputTokens":131,"totalTokens":944},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":813,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N5223M6Z12Y5ZDHYJDCXH8\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hello, how are you?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.doe@example.com\",\"name\":\"John Doe\"}},\"contact\":{\"id\":\"01K6N5226YBFAAEZTQ3P5M03DR\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.doe@example.com\"}],\"fullName\":\"John Doe\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_019Ckim6rQUSdPbpTX7LEEUC","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I can","metadata":{}},{"type":"text-delta","id":"0","delta":" see the sender's email is \"john.doe@example.com\"","metadata":{}},{"type":"text-delta","id":"0","delta":" with the domain \"example.com\". I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ll extract the organization information an","metadata":{}},{"type":"text-delta","id":"0","delta":"d add it to the graph database","metadata":{}},{"type":"text-delta","id":"0","delta":".","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"{\"objects","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"_dxos_","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"org_typ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"e_Or","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"ganizati","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"on\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":" [{\"i","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"d\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"\"example-com","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"\",\"n","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"ame\":\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"Example","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":".com\",\"we","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"bsite\":\"h","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"ttps://e","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"xam","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","delta":"ple.com\"}]}","metadata":{}},{"type":"tool-params-end","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","metadata":{}},{"type":"tool-call","id":"toolu_01NGWqDfZf4S2YMyEoi1HUEK","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Example.com","website":"https://example.com","id":"example-com"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":808,"outputTokens":139,"totalTokens":947},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":808,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N53E94VD3VDQ0TVJC34BWQ\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hello, how are you?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.doe@example.com\",\"name\":\"John Doe\"}},\"contact\":{\"id\":\"01K6N53ECB8PYQNYVGVJEH02FM\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.doe@example.com\"}],\"fullName\":\"John Doe\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_015nFikCZHdRA6BJ3PCCFGTK","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I'll extract the sender's organization from","metadata":{}},{"type":"text-delta","id":"0","delta":" the email. The sender's email is \"","metadata":{}},{"type":"text-delta","id":"0","delta":"john.doe@example.com\", so","metadata":{}},{"type":"text-delta","id":"0","delta":" the organization domain is \"example.com\".","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"{\"ob","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"jects","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"_dxos","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"_org_t","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"ype_Org","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"anization\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":" [{\"id\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":":\"ex","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"ampl","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"e-c","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"om\",\"name\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":":\"Example.co","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"m\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":",\"websi","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"te\":\"http","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"s://example.","metadata":{}},{"type":"tool-params-delta","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","delta":"com\"}]}","metadata":{}},{"type":"tool-params-end","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","metadata":{}},{"type":"tool-call","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Example.com","website":"https://example.com","id":"example-com"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":806,"outputTokens":135,"totalTokens":941},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":806,"output_tokens":8,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N53E94VD3VDQ0TVJC34BWQ\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hello, how are you?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.doe@example.com\",\"name\":\"John Doe\"}},\"contact\":{\"id\":\"01K6N53ECB8PYQNYVGVJEH02FM\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.doe@example.com\"}],\"fullName\":\"John Doe\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I'll extract the sender's organization from the email. The sender's email is \"john.doe@example.com\", so the organization domain is \"example.com\".","options":{}},{"type":"tool-call","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Example.com","website":"https://example.com","id":"example-com"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_015Zbb4RTAQcs4Y2qZ4Y8myK","name":"graph_writer","result":["dxn:queue:data:BI7G7Q5MVM32SQY2SOPC7J2KS5VZBMGKV:01K6N53ECM7ESVBEAEQKGWS1RA:01K6N53HPF57MQSGKDRZW8VS9J"],"options":{}}],"options":{}}]},"response":[{"type":"response-metadata","id":"msg_01CFZvXuk4JxUFT6aUh5vQj6","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve extracted and created the organization \"","metadata":{}},{"type":"text-delta","id":"0","delta":"Example.com\" based on the sender's email domain \"example","metadata":{}},{"type":"text-delta","id":"0","delta":".com\". The organization has been adde","metadata":{}},{"type":"text-delta","id":"0","delta":"d to the graph database with the","metadata":{}},{"type":"text-delta","id":"0","delta":" website URL matching the email domain.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1025,"outputTokens":45,"totalTokens":1070},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1025,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N54RPJN9Y8A7K739MTAFZ8\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.ai\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01K6N54RT3VN5BB2BANSFZK5H7\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.ai\"}],\"fullName\":\"John Smith\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_01FVenEScvAWxnDht4xTHaHS","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I can","metadata":{}},{"type":"text-delta","id":"0","delta":" see that the sender John","metadata":{}},{"type":"text-delta","id":"0","delta":" Smith is from the email domain \"anthropic.ai\". I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ll extract this organization information and create an","metadata":{}},{"type":"text-delta","id":"0","delta":" entry for Anthropic.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"{\"objects","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"_dxo","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"s_org_","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"type_Orga","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"nization\": [","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"{\"id\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":":\"anthropi","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"c\",\"name\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"\"Anthrop","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"ic\",\"web","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"site\":\"h","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"ttps://","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"anth","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"ropi","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"c.","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"co","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"m\",\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"description","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"\":\"AI ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"safety comp","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"any ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"focu","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"sed on dev","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"eloping s","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"afe,","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":" benefic","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"ial art","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"ificial ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"intellig","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"ence s","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"ystems","metadata":{}},{"type":"tool-params-delta","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","delta":"\"}]}","metadata":{}},{"type":"tool-params-end","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","metadata":{}},{"type":"tool-call","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial artificial intelligence systems","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":844,"outputTokens":153,"totalTokens":997},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":844,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N54RPJN9Y8A7K739MTAFZ8\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.ai\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01K6N54RT3VN5BB2BANSFZK5H7\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.ai\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I can see that the sender John Smith is from the email domain \"anthropic.ai\". I'll extract this organization information and create an entry for Anthropic.","options":{}},{"type":"tool-call","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial artificial intelligence systems","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01HAyTTcMTm1JVPgqBhWB11R","name":"graph_writer","result":["dxn:queue:data:BD7IS3XWPEKHDAL5VMGXYFT6SRUQVBLBB:01K6N54RTCTFMAQEE2J632VVQ0:01K6N54WBYJ3AYW1BQ0297HHJ2"],"options":{}}],"options":{}}]},"response":[{"type":"response-metadata","id":"msg_01EiSFfQNcFzrDUtE4JETreR","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve successfully extracted and added the","metadata":{}},{"type":"text-delta","id":"0","delta":" organization \"Anthropic\" to the graph database","metadata":{}},{"type":"text-delta","id":"0","delta":", matching the sender's email domain \"@anthropic.ai\". The organization entry","metadata":{}},{"type":"text-delta","id":"0","delta":" includes the name, a description of what","metadata":{}},{"type":"text-delta","id":"0","delta":" Anthropic does, and their website URL","metadata":{}},{"type":"text-delta","id":"0","delta":".","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1076,"outputTokens":54,"totalTokens":1130},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1076,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N6RBQZNM4K8AV836ZW3SK3\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01K6N6RBVQ06QA7BPGCW15PCA4\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_0123sMRNfZqxchHcHy8LMuhP","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I can","metadata":{}},{"type":"text-delta","id":"0","delta":" see that the sender John Smith is from the email domain \"anthropic.com\". Let","metadata":{}},{"type":"text-delta","id":"0","delta":" me extract and create an organization entry for Anthropic.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"{\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"objects_","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"dxos_org_","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"type_Org","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"anization\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":" [{","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"\"id\":\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"anthropi","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"c\",\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"na","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"me\":\"Anth","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"ropi","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"c\",","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"\"webs","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"ite\":\"h","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"tt","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"ps","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"://www.ant","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"hrop","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"ic.com\",\"des","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"cription\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"\"AI safe","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"ty c","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"ompany foc","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"used on dev","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"el","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"oping s","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"afe, benefi","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"cial, and","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":" understand","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"able AI sy","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"stems","metadata":{}},{"type":"tool-params-delta","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","delta":"\"}]}","metadata":{}},{"type":"tool-params-end","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","metadata":{}},{"type":"tool-call","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial, and understandable AI systems","website":"https://www.anthropic.com","id":"anthropic"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":847,"outputTokens":157,"totalTokens":1004},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":847,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N6RBQZNM4K8AV836ZW3SK3\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01K6N6RBVQ06QA7BPGCW15PCA4\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I can see that the sender John Smith is from the email domain \"anthropic.com\". Let me extract and create an organization entry for Anthropic.","options":{}},{"type":"tool-call","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial, and understandable AI systems","website":"https://www.anthropic.com","id":"anthropic"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01XnwGzgfyvHvthi4ibNMtcA","name":"graph_writer","result":["dxn:queue:data:B7L2RFQOY6MSC43AMPXYE3QEMQKEUMQ4M:01K6N6RBW09WDACVJ14Z4988ZC:01K6N6RGEK3WE2XETP24D9JRXC"],"options":{}}],"options":{}}]},"response":[{"type":"response-metadata","id":"msg_01C3iagt5znq9d4J14p8Yxgy","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve successfully extracted and created an organization entry for Anthropic","metadata":{}},{"type":"text-delta","id":"0","delta":", which matches the sender's email domain \"","metadata":{}},{"type":"text-delta","id":"0","delta":"anthropic.com\". The organization has","metadata":{}},{"type":"text-delta","id":"0","delta":" been added to the database with relevant information","metadata":{}},{"type":"text-delta","id":"0","delta":" about Anthropic as an AI safety company.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1088,"outputTokens":51,"totalTokens":1139},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1088,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N6RBQZNM4K8AV836ZW3SK3\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01K6N6TCTN8A96M86T25TWTMQZ\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_01TeJsByedXu3jJcFe8Resa3","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I can","metadata":{}},{"type":"text-delta","id":"0","delta":" see from the email that the sender is John Smith with","metadata":{}},{"type":"text-delta","id":"0","delta":" email address john.smith@anthropic.com. Base","metadata":{}},{"type":"text-delta","id":"0","delta":"d on the email domain \"anthropic.com\", I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ll extract Anthropic as the sender's organization.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"{\"obj","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"ects_dxo","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"s_org_type","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"_Organiza","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"tion\": [{\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"id\":\"an","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"thropic\",\"n","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"ame\":\"Ant","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"hropic","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"\",\"websit","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"e\":\"https://","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"anthropic.","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"com\",\"des","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"cr","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"ip","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"tion\":\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"AI safety c","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"ompany focu","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"se","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"d on deve","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"loping s","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"afe, benefi","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"cial AI","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":" systems\"}","metadata":{}},{"type":"tool-params-delta","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","delta":"]}","metadata":{}},{"type":"tool-params-end","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","metadata":{}},{"type":"tool-call","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial AI systems","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":845,"outputTokens":165,"totalTokens":1010},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":845,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N6RBQZNM4K8AV836ZW3SK3\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01K6N6TCTN8A96M86T25TWTMQZ\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I can see from the email that the sender is John Smith with email address john.smith@anthropic.com. Based on the email domain \"anthropic.com\", I'll extract Anthropic as the sender's organization.","options":{}},{"type":"tool-call","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial AI systems","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_016F8CYVAc5MRAQzUYMZGyq3","name":"graph_writer","result":["dxn:queue:data:BZRVOZCXLV4P3FYCSU73LDUZGFB7JGYU2:01K6N6TCTW93S6XY3Q9SZWWHZN:01K6N6TGQA2G5XW31A3XZJXMQF"],"options":{}}],"options":{}}]},"response":[{"type":"response-metadata","id":"msg_01EzJqj1kuf6aJ1S1inFR8sg","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve successfully extracted and added Anthropic as the organization","metadata":{}},{"type":"text-delta","id":"0","delta":" associated with the sender's email domain (","metadata":{}},{"type":"text-delta","id":"0","delta":"anthropic.com). The organization has been added to the graph","metadata":{}},{"type":"text-delta","id":"0","delta":" database with basic information about Anthropic as an","metadata":{}},{"type":"text-delta","id":"0","delta":" AI safety company.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1098,"outputTokens":50,"totalTokens":1148},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1098,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N6RBQZNM4K8AV836ZW3SK3\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT88\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_016nQ6A8RRZU2K1aTTUTi9Qc","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I'll extract the organization","metadata":{}},{"type":"text-delta","id":"0","delta":" information from the sender's email domain.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01PpdNynFQjozgr56kjEBwyR","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"{\"obj","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"ects_dxos_","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"org_ty","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"pe","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"_Org","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"anization\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":" [{\"id","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"\":\"an","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"throp","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"ic\",\"na","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"me\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"\"Anthropic","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"\",\"web","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"site\":\"http","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"s://","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"ant","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"hropic.","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"com\",\"de","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"scr","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"iption\":\"AI","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":" safety co","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"mpa","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"ny focus","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"ed on de","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"veloping saf","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"e, benefi","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"cial AI","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":" systems\",\"s","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"tatus\":\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01PpdNynFQjozgr56kjEBwyR","delta":"active\"}]}","metadata":{}},{"type":"tool-params-end","id":"toolu_01PpdNynFQjozgr56kjEBwyR","metadata":{}},{"type":"tool-call","id":"toolu_01PpdNynFQjozgr56kjEBwyR","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial AI systems","status":"active","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":844,"outputTokens":139,"totalTokens":983},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":844,"output_tokens":5,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N6RBQZNM4K8AV836ZW3SK3\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT88\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I'll extract the organization information from the sender's email domain.","options":{}},{"type":"tool-call","id":"toolu_01PpdNynFQjozgr56kjEBwyR","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial AI systems","status":"active","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01PpdNynFQjozgr56kjEBwyR","name":"graph_writer","result":["dxn:queue:data:BEWNJJQJ5H4RXPCDR2MT7KBWDIND5J2FM:01JGFJJZ00G0WKQSJGMAKCNT8A:01JGFJJZ00G0WKQSJGMAKCNT8F"],"options":{}}],"options":{}}]},"response":[{"type":"response-metadata","id":"msg_017xNRLUnSqEeCG14STZ2wPg","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve extracted and saved the organization \"Anthropic\" from the sender's","metadata":{}},{"type":"text-delta","id":"0","delta":" email domain (john.smith@anthropic.com).","metadata":{}},{"type":"text-delta","id":"0","delta":" The organization has been added to the database with relevant","metadata":{}},{"type":"text-delta","id":"0","delta":" details including their website and status as","metadata":{}},{"type":"text-delta","id":"0","delta":" an active organization.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1062,"outputTokens":52,"totalTokens":1114},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1062,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01K6N6RBQZNM4K8AV836ZW3SK3\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT88\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I'll extract the organization information from the sender's email domain.","options":{}},{"type":"tool-call","id":"toolu_01PpdNynFQjozgr56kjEBwyR","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial AI systems","status":"active","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01PpdNynFQjozgr56kjEBwyR","name":"graph_writer","result":["dxn:queue:data:BDJXMULPW5FB55UZ7KP5HLDHVTXUTHE2U:01JGFJJZ00G0WKQSJGMAKCNT8A:01JGFJJZ00G0WKQSJGMAKCNT8F"],"options":{}}],"options":{}}]},"response":[{"type":"response-metadata","id":"msg_019BYu3DvNMkFZMd2bTABr2U","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve successfully extracted and created an organization entry","metadata":{}},{"type":"text-delta","id":"0","delta":" for Anthropic based on the sender's email domain (","metadata":{}},{"type":"text-delta","id":"0","delta":"john.smith@anthropic.com). The organization has","metadata":{}},{"type":"text-delta","id":"0","delta":" been added to the graph database","metadata":{}},{"type":"text-delta","id":"0","delta":" with relevant information including their","metadata":{}},{"type":"text-delta","id":"0","delta":" focus on AI safety and their website URL matching","metadata":{}},{"type":"text-delta","id":"0","delta":" the email domain.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1063,"outputTokens":60,"totalTokens":1123},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1063,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_013KzbQfpaUBdz9m6UsnDB43","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I can","metadata":{}},{"type":"text-delta","id":"0","delta":" see that the sender's email is from","metadata":{}},{"type":"text-delta","id":"0","delta":" \"anthropic.com\" domain","metadata":{}},{"type":"text-delta","id":"0","delta":". Let me extract and create the organization record for Anthropic.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"{\"obj","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"ects_dxo","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"s_org_typ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"e_Orga","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"nizat","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"io","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"n\": [{\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"id\":\"anthro","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"pic\",\"name","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"\":\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"Anthropic\",","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"\"website","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"\":\"https","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"://a","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"nthropic.co","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"m\",","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"\"descrip","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"tion\":\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"AI s","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"af","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"ety company ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"focused on ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"developing s","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"afe,","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":" bene","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"ficial ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"AI systems\"}","metadata":{}},{"type":"tool-params-delta","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","delta":"]}","metadata":{}},{"type":"tool-params-end","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","metadata":{}},{"type":"tool-call","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial AI systems","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":843,"outputTokens":149,"totalTokens":992},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":843,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I can see that the sender's email is from \"anthropic.com\" domain. Let me extract and create the organization record for Anthropic.","options":{}},{"type":"tool-call","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial AI systems","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01NJCbPMj9x8iuVCBFTskrhC","name":"graph_writer","result":["dxn:queue:data:BDJXMULPW5FB55UZ7KP5HLDHVTXUTHE2U:01JGFJJZ00G0WKQSJGMAKCNT8B:01JGFJJZ00G0WKQSJGMAKCNT8G"],"options":{}}],"options":{}}]},"response":[{"type":"response-metadata","id":"msg_01DMd8YaRB3nN2g11WrGz6dr","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve successfully extracted and created an organization record for Anthropic base","metadata":{}},{"type":"text-delta","id":"0","delta":"d on the sender's email domain (anthropic.com). The organization has","metadata":{}},{"type":"text-delta","id":"0","delta":" been added to the graph database with the name \"Anthropic\" and their","metadata":{}},{"type":"text-delta","id":"0","delta":" website URL matching the email domain.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1074,"outputTokens":55,"totalTokens":1129},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1074,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_0192boN2evvthKEPqe76SbKE","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I can","metadata":{}},{"type":"text-delta","id":"0","delta":" see that","metadata":{}},{"type":"text-delta","id":"0","delta":" the sender","metadata":{}},{"type":"text-delta","id":"0","delta":"'s email is from the","metadata":{}},{"type":"text-delta","id":"0","delta":" domain \"anthropic.com\".","metadata":{}},{"type":"text-delta","id":"0","delta":" I'll extract and create an","metadata":{}},{"type":"text-delta","id":"0","delta":" organization entry for","metadata":{}},{"type":"text-delta","id":"0","delta":" Anthropic.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"{\"objec","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"ts_dxos_o","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"rg_","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"ty","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"pe_Org","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"ani","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"zat","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"ion","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"\": [{\"id\":\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"an","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"thro","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"pic\",\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"name\":\"Ant","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"hro","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"pic\",\"w","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"ebsite","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"\":\"ht","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"tps","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"://","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"www.an","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"th","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"ropi","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"c.com","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"\",\"descript","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"ion\":\"A","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"I safety","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":" company f","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"oc","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"used on d","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"evel","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"oping safe, ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"beneficial A","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"I ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"syst","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"em","metadata":{}},{"type":"tool-params-delta","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","delta":"s\"}]}","metadata":{}},{"type":"tool-params-end","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","metadata":{}},{"type":"tool-call","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial AI systems","website":"https://www.anthropic.com","id":"anthropic"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":855,"outputTokens":151,"totalTokens":1006},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":855,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I can see that the sender's email is from the domain \"anthropic.com\". I'll extract and create an organization entry for Anthropic.","options":{}},{"type":"tool-call","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial AI systems","website":"https://www.anthropic.com","id":"anthropic"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01QyKbHRjMivLSjgGcxoGL3A","name":"graph_writer","result":["dxn:queue:data:BDJXMULPW5FB55UZ7KP5HLDHVTXUTHE2U:01JGFJJZ00G0WKQSJGMAKCNT8B:01JGFJJZ00G0WKQSJGMAKCNT8G"],"options":{}}],"options":{}}]},"response":[{"type":"response-metadata","id":"msg_01PtBL3f21D89w8sPNpsgo75","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve successfully extracted an","metadata":{}},{"type":"text-delta","id":"0","delta":"d added Anthropic as an organization to the database","metadata":{}},{"type":"text-delta","id":"0","delta":". The organization was identified from John Smith's email address domain","metadata":{}},{"type":"text-delta","id":"0","delta":" \"anthropic.com\" and includes","metadata":{}},{"type":"text-delta","id":"0","delta":" basic information about Anthropic as an AI safety company.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1088,"outputTokens":50,"totalTokens":1138},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1088,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"location":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"items":false},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_01BDLptURcaUUR1FyDEx8Xh6","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I can","metadata":{}},{"type":"text-delta","id":"0","delta":" extract the sender's organization from the","metadata":{}},{"type":"text-delta","id":"0","delta":" email. The","metadata":{}},{"type":"text-delta","id":"0","delta":" sender is John","metadata":{}},{"type":"text-delta","id":"0","delta":" Smith with email \"","metadata":{}},{"type":"text-delta","id":"0","delta":"john.smith@anthropic.com","metadata":{}},{"type":"text-delta","id":"0","delta":"\", so the organization is Anthropic with","metadata":{}},{"type":"text-delta","id":"0","delta":" domain \"anthropic.com\".","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"{\"obje","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"cts_dxos_org","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"_typ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"e_O","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"rganization","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"\": ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"[{\"id\":\"an","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"thropi","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"c\",\"name\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":":\"Anthropi","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"c\",\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"website","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"\":\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"ht","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"tps://a","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"nthro","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","delta":"pic.com\"}]}","metadata":{}},{"type":"tool-params-end","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","metadata":{}},{"type":"tool-call","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":890,"outputTokens":143,"totalTokens":1033},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":890,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"location":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"items":false},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I can extract the sender's organization from the email. The sender is John Smith with email \"john.smith@anthropic.com\", so the organization is Anthropic with domain \"anthropic.com\".","options":{}},{"type":"tool-call","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01Eq6Ze4NEhYHUWdxgN3MPPV","name":"graph_writer","result":["dxn:queue:data:BDJXMULPW5FB55UZ7KP5HLDHVTXUTHE2U:01JGFJJZ00G0WKQSJGMAKCNT8B:01JGFJJZ00G0WKQSJGMAKCNT8G"],"options":{}}],"options":{}}]},"response":[{"type":"response-metadata","id":"msg_01H7rgkDnm4K71YfrmPTqFvX","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve successfully extracted and adde","metadata":{}},{"type":"text-delta","id":"0","delta":"d Anthropic as an organization to the graph database. The organization","metadata":{}},{"type":"text-delta","id":"0","delta":" was identified from the sender's email domain","metadata":{}},{"type":"text-delta","id":"0","delta":" \"anthropic.com\" and includes","metadata":{}},{"type":"text-delta","id":"0","delta":":\n- Name","metadata":{}},{"type":"text-delta","id":"0","delta":": Anthropic\n- Website:","metadata":{}},{"type":"text-delta","id":"0","delta":" https://anthropic.com\n-","metadata":{}},{"type":"text-delta","id":"0","delta":" ID: anthropic","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1117,"outputTokens":62,"totalTokens":1179},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1117,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"location":{"type":"array","prefixItems":[{"title":"Longitude","type":"number"},{"title":"Latitude","type":"number"}],"items":false},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}}]},"response":[{"type":"response-metadata","id":"msg_013SQUycyeKpqLijq6CqdaqG","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I can","metadata":{}},{"type":"text-delta","id":"0","delta":" see that the sender John","metadata":{}},{"type":"text-delta","id":"0","delta":" Smith is from the email domain","metadata":{}},{"type":"text-delta","id":"0","delta":" \"anthropic.com\". I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ll extract Anthropic as","metadata":{}},{"type":"text-delta","id":"0","delta":" the organization and add it to the graph","metadata":{}},{"type":"text-delta","id":"0","delta":" database.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"{\"objec","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"ts_dxos_o","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"rg_type_O","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"rganizat","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"ion\": [","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"{\"id\":\"a","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"nt","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"hropic\",\"na","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"me\":\"Anthrop","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"ic\",\"website","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"\":\"https://","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"anthropic.c","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"om\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":",\"d","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"escription\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":":\"AI","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":" safet","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"y compan","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"y foc","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"used on de","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"velo","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"ping s","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"afe, benef","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"icial arti","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"ficial int","metadata":{}},{"type":"tool-params-delta","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","delta":"elligence\"}]}","metadata":{}},{"type":"tool-params-end","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","metadata":{}},{"type":"tool-call","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial artificial intelligence","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":904,"outputTokens":154,"totalTokens":1058},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":904,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"location":{"type":"array","prefixItems":[{"title":"Longitude","type":"number"},{"title":"Latitude","type":"number"}],"items":false},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"\n Extract the sender's organization from the email. If you are not sure, do nothing.\n The extracted organization URL must match the sender's email domain.\n ","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I can see that the sender John Smith is from the email domain \"anthropic.com\". I'll extract Anthropic as the organization and add it to the graph database.","options":{}},{"type":"tool-call","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial artificial intelligence","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01Xg8Ckm1DXrJY2o6SEjFGqL","name":"graph_writer","result":["dxn:queue:data:BDJXMULPW5FB55UZ7KP5HLDHVTXUTHE2U:01JGFJJZ00G0WKQSJGMAKCNT8B:01JGFJJZ00G0WKQSJGMAKCNT8G"],"options":{}}],"options":{}}]},"response":[{"type":"response-metadata","id":"msg_01SLzsrHESJ3PGmmDu4dZTAH","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve successfully extracted an","metadata":{}},{"type":"text-delta","id":"0","delta":"d added Anthropic as an organization to the graph database base","metadata":{}},{"type":"text-delta","id":"0","delta":"d on the sender's email domain (","metadata":{}},{"type":"text-delta","id":"0","delta":"anthropic.com). The organization has","metadata":{}},{"type":"text-delta","id":"0","delta":" been created with the","metadata":{}},{"type":"text-delta","id":"0","delta":" name \"Anthropic\",","metadata":{}},{"type":"text-delta","id":"0","delta":" a description as an AI safety company, and their","metadata":{}},{"type":"text-delta","id":"0","delta":" website URL.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1140,"outputTokens":58,"totalTokens":1198},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1140,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]}]}
|
|
1
|
+
{"conversations":[{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"Extract the sender's organization from the email. If you are not sure, do nothing.\nThe extracted organization URL must match the sender's email domain.\n,","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01R1zT7R6NEdWg598pnsyNeA","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I can","metadata":{}},{"type":"text-delta","id":"0","delta":" see that","metadata":{}},{"type":"text-delta","id":"0","delta":" the","metadata":{}},{"type":"text-delta","id":"0","delta":" sender","metadata":{}},{"type":"text-delta","id":"0","delta":"'s","metadata":{}},{"type":"text-delta","id":"0","delta":" email","metadata":{}},{"type":"text-delta","id":"0","delta":" is from","metadata":{}},{"type":"text-delta","id":"0","delta":" the","metadata":{}},{"type":"text-delta","id":"0","delta":" domain","metadata":{}},{"type":"text-delta","id":"0","delta":" \"anthropic.com\".","metadata":{}},{"type":"text-delta","id":"0","delta":" I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ll extract and","metadata":{}},{"type":"text-delta","id":"0","delta":" create","metadata":{}},{"type":"text-delta","id":"0","delta":" an","metadata":{}},{"type":"text-delta","id":"0","delta":" organization record","metadata":{}},{"type":"text-delta","id":"0","delta":" for","metadata":{}},{"type":"text-delta","id":"0","delta":" Anthropic based on this","metadata":{}},{"type":"text-delta","id":"0","delta":" email","metadata":{}},{"type":"text-delta","id":"0","delta":" domain","metadata":{}},{"type":"text-delta","id":"0","delta":".","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","name":"graph_writer","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"{\"obje","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"cts_dxos","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"_org_","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"type_Org","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"aniza","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"tion\"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":": ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"[{\"id\":\"an","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"thropic\",","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"\"nam","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"e\":\"Anthropi","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"c\",","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"\"we","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"bsite\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"\"https://a","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"nthrop","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"ic.","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"com\",\"descri","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"ption\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"\"A","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"I sa","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"fet","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"y compan","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"y focuse","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"d on d","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"evelop","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"ing s","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"afe, b","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"eneficia","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"l ","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"AI s","metadata":{}},{"type":"tool-params-delta","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","delta":"ystems\"}]}","metadata":{}},{"type":"tool-params-end","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","metadata":{}},{"type":"tool-call","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"name":"Anthropic","description":"AI safety company focused on developing safe, beneficial AI systems","website":"https://anthropic.com","id":"anthropic"}]},"providerExecuted":false,"metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":853,"outputTokens":154,"totalTokens":1007},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":853,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"Extract the sender's organization from the email. If you are not sure, do nothing.\nThe extracted organization URL must match the sender's email domain.\n,","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I can see that the sender's email is from the domain \"anthropic.com\". I'll extract and create an organization record for Anthropic based on this email domain.","options":{}},{"type":"tool-call","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"id":"anthropic","name":"Anthropic","website":"https://anthropic.com","description":"AI safety company focused on developing safe, beneficial AI systems"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","name":"graph_writer","isFailure":false,"result":["dxn:queue:data:BDJXMULPW5FB55UZ7KP5HLDHVTXUTHE2U:01JGFJJZ00G0WKQSJGMAKCNT8B:01JGFJJZ00G0WKQSJGMAKCNT8G"],"providerExecuted":false,"options":{}}],"options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01EfBN9rt7NxPo6mGTuhB8s2","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I","metadata":{}},{"type":"text-delta","id":"0","delta":"'ve successfully extracted and","metadata":{}},{"type":"text-delta","id":"0","delta":" created an","metadata":{}},{"type":"text-delta","id":"0","delta":" organization record for Anthropic based","metadata":{}},{"type":"text-delta","id":"0","delta":" on the sender's email domain (","metadata":{}},{"type":"text-delta","id":"0","delta":"anthropic.com). The organization has","metadata":{}},{"type":"text-delta","id":"0","delta":" been added","metadata":{}},{"type":"text-delta","id":"0","delta":" to the graph","metadata":{}},{"type":"text-delta","id":"0","delta":" database","metadata":{}},{"type":"text-delta","id":"0","delta":" with the name","metadata":{}},{"type":"text-delta","id":"0","delta":" \"Anthropic\" and their","metadata":{}},{"type":"text-delta","id":"0","delta":" corresponding","metadata":{}},{"type":"text-delta","id":"0","delta":" website.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":6,"outputTokens":51,"totalTokens":57},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":1083,"input_tokens":6,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-sonnet-4-0","stream":true,"tools":[{"name":"graph_writer","description":"Write to the local graph database","inputSchema":{"type":"object","required":[],"properties":{"objects_dxos_org_type_Organization":{"type":"array","items":{"type":"object","required":["id"],"properties":{"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","enum":["prospect","qualified","active","commit","reject"],"title":"Status"},"image":{"type":"string","title":"Image"},"website":{"type":"string","title":"Website"},"id":{"type":"string","description":"The id of this object. Come up with a unique id based on your judgement."}},"additionalProperties":false},"description":"The objects of type: dxos.org/type/Organization. An organization."}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"Extract the sender's organization from the email. If you are not sure, do nothing.\nThe extracted organization URL must match the sender's email domain.\n,","options":{}},{"role":"user","content":"{\"source\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT87\",\"@type\":\"dxn:type:dxos.org/type/Message:0.2.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"blocks\":[{\"_tag\":\"text\",\"text\":\"Hey team, what's up?\"},{\"_tag\":\"text\",\"text\":\"I'm working on a new algorithm today.\"},{\"_tag\":\"text\",\"text\":\"Anything new from the research team?\"}],\"created\":\"2025-01-01T00:00:00.000Z\",\"sender\":{\"email\":\"john.smith@anthropic.com\",\"name\":\"John Smith\"}},\"contact\":{\"id\":\"01JGFJJZ00G0WKQSJGMAKCNT89\",\"@type\":\"dxn:type:dxos.org/type/Person:0.1.0\",\"@meta\":{\"keys\":[],\"tags\":[\"important\"]},\"emails\":[{\"value\":\"john.smith@anthropic.com\"}],\"fullName\":\"John Smith\"}}","options":{}},{"role":"assistant","content":[{"type":"text","text":"I can see that the sender's email is from the domain \"anthropic.com\". I'll extract and create an organization record for Anthropic based on this email domain.","options":{}},{"type":"tool-call","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","name":"graph_writer","params":{"objects_dxos_org_type_Organization":[{"id":"anthropic","name":"Anthropic","website":"https://anthropic.com","description":"AI safety company focused on developing safe, beneficial AI systems"}]},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01BMGcZUghBKE9Zj3zs7b2NL","name":"graph_writer","isFailure":false,"result":["dxn:queue:data:BDJXMULPW5FB55UZ7KP5HLDHVTXUTHE2U:01JGFJJZ00G0WKQSJGMAKCNT8B:01JGFJJZ00G0WKQSJGMAKCNT8J"],"providerExecuted":false,"options":{}}],"options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01YKxed8S5QVEThinBVELkac","modelId":"claude-sonnet-4-20250514","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"I've successfully extracted and","metadata":{}},{"type":"text-delta","id":"0","delta":" created an organization record for Anthropic","metadata":{}},{"type":"text-delta","id":"0","delta":" based","metadata":{}},{"type":"text-delta","id":"0","delta":" on the sender's email domain (","metadata":{}},{"type":"text-delta","id":"0","delta":"anthropic.com). The organization has","metadata":{}},{"type":"text-delta","id":"0","delta":" been added","metadata":{}},{"type":"text-delta","id":"0","delta":" to the database","metadata":{}},{"type":"text-delta","id":"0","delta":" with the name","metadata":{}},{"type":"text-delta","id":"0","delta":" \"Anthropic\" and the corresponding","metadata":{}},{"type":"text-delta","id":"0","delta":" website URL.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":6,"outputTokens":51,"totalTokens":57},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":1083},"cache_creation_input_tokens":1083,"cache_read_input_tokens":0,"input_tokens":6,"output_tokens":5,"server_tool_use":null,"service_tier":"standard"}}}}]}]}
|
|
@@ -4,61 +4,35 @@
|
|
|
4
4
|
|
|
5
5
|
import { describe, expect, it } from '@effect/vitest';
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
|
-
import * as Layer from 'effect/Layer';
|
|
8
7
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { makeToolExecutionServiceFromFunctions, makeToolResolverFromFunctions } from '@dxos/assistant';
|
|
8
|
+
import { MemoizedAiService } from '@dxos/ai/testing';
|
|
9
|
+
import { AssistantTestLayer } from '@dxos/assistant/testing';
|
|
12
10
|
import { Blueprint } from '@dxos/blueprints';
|
|
13
11
|
import { Obj } from '@dxos/echo';
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
FunctionInvocationService,
|
|
20
|
-
TracingService,
|
|
21
|
-
} from '@dxos/functions';
|
|
22
|
-
import { TestDatabaseLayer } from '@dxos/functions/testing';
|
|
23
|
-
import { ObjectId, PublicKey } from '@dxos/keys';
|
|
24
|
-
import { DataType } from '@dxos/schema';
|
|
12
|
+
import { Database } from '@dxos/echo';
|
|
13
|
+
import { TestHelpers } from '@dxos/effect/testing';
|
|
14
|
+
import { FunctionInvocationService } from '@dxos/functions';
|
|
15
|
+
import { ObjectId } from '@dxos/keys';
|
|
16
|
+
import { Message, Organization, Person } from '@dxos/types';
|
|
25
17
|
|
|
26
|
-
import {
|
|
27
|
-
import { ResearchGraph } from '../research';
|
|
18
|
+
import { ResearchGraph } from '../../blueprints';
|
|
28
19
|
|
|
29
20
|
import { default as entityExtraction } from './entity-extraction';
|
|
30
21
|
|
|
31
22
|
ObjectId.dangerouslyDisableRandomness();
|
|
32
23
|
|
|
33
|
-
const TestLayer =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
ComputeEventLogger.layerFromTracing,
|
|
38
|
-
).pipe(
|
|
39
|
-
Layer.provideMerge(FunctionInvocationService.layerTest({ functions: [entityExtraction] })),
|
|
40
|
-
Layer.provideMerge(
|
|
41
|
-
Layer.mergeAll(
|
|
42
|
-
MemoizedAiService.layerTest().pipe(Layer.provide(AiServiceTestingPreset('direct'))),
|
|
43
|
-
TestDatabaseLayer({
|
|
44
|
-
// TODO(dmaretskyi): define the constant space key in the test-builder.
|
|
45
|
-
spaceKey: PublicKey.from('665c420e0dec9aa36c2bedca567afb0778701920e346eaf83ab2bd3403859723'),
|
|
46
|
-
indexing: { vector: true },
|
|
47
|
-
types: [Blueprint.Blueprint, DataType.Message, DataType.Person, DataType.Organization, ResearchGraph],
|
|
48
|
-
}),
|
|
49
|
-
CredentialsService.configuredLayer([]),
|
|
50
|
-
TracingService.layerNoop,
|
|
51
|
-
),
|
|
52
|
-
),
|
|
53
|
-
);
|
|
24
|
+
const TestLayer = AssistantTestLayer({
|
|
25
|
+
functions: [entityExtraction],
|
|
26
|
+
types: [Blueprint.Blueprint, Message.Message, Person.Person, Organization.Organization, ResearchGraph.ResearchGraph],
|
|
27
|
+
});
|
|
54
28
|
|
|
55
|
-
describe
|
|
29
|
+
describe('Entity extraction', () => {
|
|
56
30
|
it.effect(
|
|
57
|
-
'
|
|
31
|
+
'calls a function to generate a research report',
|
|
58
32
|
Effect.fnUntraced(
|
|
59
33
|
function* (_) {
|
|
60
|
-
const email = yield*
|
|
61
|
-
Obj.make(
|
|
34
|
+
const email = yield* Database.add(
|
|
35
|
+
Obj.make(Message.Message, {
|
|
62
36
|
[Obj.Meta]: {
|
|
63
37
|
tags: ['important'],
|
|
64
38
|
},
|
|
@@ -83,7 +57,7 @@ describe.skip('Entity extraction', () => {
|
|
|
83
57
|
],
|
|
84
58
|
}),
|
|
85
59
|
);
|
|
86
|
-
yield*
|
|
60
|
+
yield* Database.flush({ indexes: true });
|
|
87
61
|
const result = yield* FunctionInvocationService.invokeFunction(entityExtraction, {
|
|
88
62
|
source: email,
|
|
89
63
|
});
|