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 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 result = await ctx.tools.execute({
144
- tool: 'test_company_search',
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 = result.value;
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.result };
161
+ return { company: company.toolOutput.raw };
165
162
  });
166
163
 
167
164
  const detail = await myPlay.get();
168
- const result = await myPlay.runSync({ domain: 'example.com' });
165
+ const playResult = await myPlay.runSync({ domain: 'example.com' });
169
166
  ```
170
167
 
171
168
  ## Testing