deepline 0.1.76 → 0.1.78
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/README.md +5 -8
- package/dist/cli/index.js +534 -350
- package/dist/cli/index.mjs +547 -363
- package/dist/index.d.mts +40 -2
- package/dist/index.d.ts +40 -2
- package/dist/index.js +198 -2
- package/dist/index.mjs +198 -2
- package/dist/repo/sdk/src/client.ts +7 -0
- package/dist/repo/sdk/src/play.ts +1 -1
- package/dist/repo/sdk/src/release.ts +2 -2
- package/dist/repo/sdk/src/types.ts +4 -0
- package/dist/repo/shared_libs/play-runtime/email-status.ts +301 -0
- package/dist/repo/shared_libs/play-runtime/tool-result.ts +58 -1
- package/dist/repo/shared_libs/plays/dataset.ts +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -140,13 +140,10 @@ const ctx = await Deepline.connect();
|
|
|
140
140
|
|
|
141
141
|
// Tools
|
|
142
142
|
const tools = await ctx.tools.list();
|
|
143
|
-
const
|
|
144
|
-
|
|
145
|
-
input: {
|
|
146
|
-
domain: 'stripe.com',
|
|
147
|
-
},
|
|
143
|
+
const toolResult = await ctx.tools.execute('test_company_search', {
|
|
144
|
+
domain: 'stripe.com',
|
|
148
145
|
});
|
|
149
|
-
const company =
|
|
146
|
+
const company = toolResult.toolOutput.raw;
|
|
150
147
|
|
|
151
148
|
// Named play (already live)
|
|
152
149
|
const job = await ctx.play('my-play').run({ domain: 'example.com' });
|
|
@@ -161,11 +158,11 @@ const myPlay = definePlay('my-play', async (ctx, input: { domain: string }) => {
|
|
|
161
158
|
input: { domain: input.domain },
|
|
162
159
|
description: 'Look up company details by domain.',
|
|
163
160
|
});
|
|
164
|
-
return { company: company.
|
|
161
|
+
return { company: company.toolOutput.raw };
|
|
165
162
|
});
|
|
166
163
|
|
|
167
164
|
const detail = await myPlay.get();
|
|
168
|
-
const
|
|
165
|
+
const playResult = await myPlay.runSync({ domain: 'example.com' });
|
|
169
166
|
```
|
|
170
167
|
|
|
171
168
|
## Testing
|