Skip to content

Commit 5e52dbf

Browse files
fix: removed ./src
1 parent aaeb613 commit 5e52dbf

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

auth4genai/snippets/get-started/langchain-next-js/async-auth.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ In your langgraph.json, add the path to your auth file:
153153
}
154154
```
155155
Then, in your auth.ts file, add your auth logic:
156-
```typescript ./src/lib/auth.ts wrap lines
156+
```typescript src/lib/auth.ts wrap lines
157157
import { createRemoteJWKSet, jwtVerify } from "jose";
158158

159159
const { Auth, HTTPException } = require("@langchain/langgraph-sdk/auth");
@@ -319,9 +319,9 @@ SHOP_API_AUDIENCE=sample-shop-api
319319

320320
### Require async authorization for your tool
321321

322-
Call the tool from your AI app to make purchases. Update the `./src/lib/agent.ts` file with the following code:
322+
Call the tool from your AI app to make purchases. Update the `src/lib/agent.ts` file with the following code:
323323

324-
```ts ./src/lib/agent.ts wrap lines highlight={2,3,9}
324+
```ts src/lib/agent.ts wrap lines highlight={2,3,9}
325325
//...
326326
import { withAsyncAuthorization } from "./auth0-ai";
327327
import { shopOnlineTool } from "./tools/shop-online";

auth4genai/snippets/get-started/langchain-next-js/auth-for-rag.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ In your langgraph.json, add the path to your auth file:
198198
}
199199
```
200200
Then, in your auth.ts file, add your auth logic:
201-
```typescript ./src/lib/auth.ts wrap lines
201+
```typescript src/lib/auth.ts wrap lines
202202
import { createRemoteJWKSet, jwtVerify } from "jose";
203203

204204
const { Auth, HTTPException } = require("@langchain/langgraph-sdk/auth");
@@ -284,9 +284,9 @@ auth.authenticate(async (request: Request) => {
284284
export { auth as authHandler };
285285
```
286286

287-
Now, update the `./src/lib/agent.ts` file with the following code to add the tool to your agent:
287+
Now, update the `src/lib/agent.ts` file with the following code to add the tool to your agent:
288288

289-
```ts ./src/lib/agent.ts wrap lines highlight={1,7}
289+
```ts src/lib/agent.ts wrap lines highlight={1,7}
290290
import { getContextDocumentsTool } from "./tools/context-docs";
291291

292292
//... existing code

auth4genai/snippets/get-started/langchain-next-js/call-others-api.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ In your langgraph.json, add the path to your auth file:
227227
}
228228
```
229229
Then, in your auth.ts file, add your auth logic:
230-
```typescript ./src/lib/auth.ts wrap lines
230+
```typescript src/lib/auth.ts wrap lines
231231
import { createRemoteJWKSet, jwtVerify } from "jose";
232232

233233
const { Auth, HTTPException } = require("@langchain/langgraph-sdk/auth");
@@ -337,7 +337,7 @@ export const gmailSearchTool = withGmailSearch(
337337
338338
Update your tool call to request an access token, as shown in the following example:
339339
340-
```ts ./src/lib/agent.ts wrap lines highlight={2,10-13}
340+
```ts src/lib/agent.ts wrap lines highlight={2,10-13}
341341
//...
342342
import { gmailSearchTool } from './tools/gmail-search';
343343

auth4genai/snippets/get-started/langchain-next-js/call-your-api.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ In your langgraph.json, add the path to your auth file:
9292
}
9393
```
9494
Then, in your auth.ts file, add your auth logic:
95-
```typescript ./src/lib/auth.ts wrap lines
95+
```typescript src/lib/auth.ts wrap lines
9696
import { createRemoteJWKSet, jwtVerify } from "jose";
9797

9898
const { Auth, HTTPException } = require("@langchain/langgraph-sdk/auth");
@@ -219,9 +219,9 @@ export const getUserInfoTool = tool(
219219
220220
### Add the tool to the AI agent
221221
222-
The AI agent processes and runs the user's request through the AI pipeline, including the tool call. Update the `./src/lib/agent.ts` file to add the tool to the agent.
222+
The AI agent processes and runs the user's request through the AI pipeline, including the tool call. Update the `src/lib/agent.ts` file to add the tool to the agent.
223223
224-
```ts ./src/lib/agent.ts wrap lines highlight={2,8}
224+
```ts src/lib/agent.ts wrap lines highlight={2,8}
225225
//...
226226
import { getUserInfoTool } from "./tools/user-info";
227227

auth4genai/snippets/how-tos/github/langgraph.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export const listRepositories = withGitHub(
8484

8585
Now that the tool is protected, you can pass it your LangGraph agent as part of a `ToolNode`. The agent will automatically request the access token when the tool is called.
8686

87-
```typescript ./src/lib/agent.ts wrap lines highlight={7,10,33,39}
87+
```typescript src/lib/agent.ts wrap lines highlight={7,10,33,39}
8888
import { AIMessage } from "@langchain/core/messages";
8989
import { RunnableLike } from "@langchain/core/runnables";
9090
import { END, InMemoryStore, MemorySaver, MessagesAnnotation, START, StateGraph } from "@langchain/langgraph";
@@ -207,7 +207,7 @@ In your langgraph.json, add the path to your auth file:
207207
}
208208
```
209209
Then, in your auth.ts file, add your auth logic:
210-
```typescript ./src/lib/auth.ts wrap lines
210+
```typescript src/lib/auth.ts wrap lines
211211
import { createRemoteJWKSet, jwtVerify } from "jose";
212212

213213
const { Auth, HTTPException } = require("@langchain/langgraph-sdk/auth");

auth4genai/snippets/how-tos/google-calendar/langgraph.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export const checkUsersCalendar = withGoogleCalendar(
9999

100100
Now that the tool is protected, you can pass it your LangGraph agent as part of a `ToolNode`. The agent will automatically request the access token when the tool is called.
101101

102-
```typescript ./src/lib/agent.ts wrap lines highlight={7,10,33,39}
102+
```typescript src/lib/agent.ts wrap lines highlight={7,10,33,39}
103103
import { AIMessage } from "@langchain/core/messages";
104104
import { RunnableLike } from "@langchain/core/runnables";
105105
import { END, InMemoryStore, MemorySaver, MessagesAnnotation, START, StateGraph } from "@langchain/langgraph";
@@ -222,7 +222,7 @@ In your langgraph.json, add the path to your auth file:
222222
}
223223
```
224224
Then, in your auth.ts file, add your auth logic:
225-
```typescript ./src/lib/auth.ts wrap lines
225+
```typescript src/lib/auth.ts wrap lines
226226
import { createRemoteJWKSet, jwtVerify } from "jose";
227227

228228
const { Auth, HTTPException } = require("@langchain/langgraph-sdk/auth");

auth4genai/snippets/how-tos/slack/langgraph.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const listChannels = withSlack(
8686

8787
Now that the tool is protected, you can pass it your LangGraph agent as part of a `ToolNode`. The agent will automatically request the access token when the tool is called.
8888

89-
```typescript ./src/lib/agent.ts wrap lines highlight={7,10,33,39}
89+
```typescript src/lib/agent.ts wrap lines highlight={7,10,33,39}
9090
import { AIMessage } from "@langchain/core/messages";
9191
import { RunnableLike } from "@langchain/core/runnables";
9292
import { END, InMemoryStore, MemorySaver, MessagesAnnotation, START, StateGraph } from "@langchain/langgraph";
@@ -209,7 +209,7 @@ In your langgraph.json, add the path to your auth file:
209209
}
210210
```
211211
Then, in your auth.ts file, add your auth logic:
212-
```typescript ./src/lib/auth.ts wrap lines
212+
```typescript src/lib/auth.ts wrap lines
213213
import { createRemoteJWKSet, jwtVerify } from "jose";
214214

215215
const { Auth, HTTPException } = require("@langchain/langgraph-sdk/auth");

0 commit comments

Comments
 (0)