Skip to content

Commit 862f83f

Browse files
feat: add integration header (#6)
1 parent 0f2ebc8 commit 862f83f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ npm install @decodo/langchain-ts
1919

2020
## Quick Start
2121

22+
To use the tools in this project, you will need a [Decodo Advanced Web Scraping API](https://help.decodo.com/docs/web-scraping-api-core-and-advanced-plans) subscription. Free trials are available on the [dashboard](https://dashboard.decodo.com/).
23+
24+
Once you have a plan activated, take a note of your generated username and password:
25+
26+
![Decodo dashboard](img/auth.png 'Decodo dashboard')
27+
28+
A simple agentic example:
29+
2230
```typescript
2331
import { DecodoUniversalTool } from '@decodo/langchain-ts';
2432

src/tools/decodo-base-tool.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ export class DecodoBaseTool extends StructuredTool<InputSchemaZodType> {
4141

4242
const response = await this.client.request<ScraperApiResponse>({
4343
method: 'POST',
44+
headers: {
45+
'x-integration': 'langchain',
46+
},
4447
data: {
4548
...(target && { target }),
4649
...(url && { url }),

0 commit comments

Comments
 (0)