feat(web-api): cover documents.classic, guided CRUD, and agentic v2 o… - #31
Merged
Merged
Conversation
…n 5.0.0-rc / 0.11.0-rc Classic interaction-scoped documents moved under documents.classic. Add /documents/guided and /agentic example routes so the new SDK surfaces are callable from the web-api examples.
…ample Keep a single /documents/generate route instead of a separate guided CRUD endpoint.
Natalia Markitantova (markitosha)
marked this pull request as ready for review
August 19, 2026 07:54
Copilot started reviewing on behalf of
Natalia Markitantova (markitosha)
August 19, 2026 07:55
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the SDK example applications to align with the new SDK surface areas (TypeScript @corti/sdk 5.0.0-rc and .NET Corti.Sdk 0.11.0-rc), including the split of classic interaction-scoped documents under documents.classic, and adds new example routes for guided documents and Agentic v2.
Changes:
- Pin TypeScript and .NET examples to the new RC SDK versions.
- Update classic document calls to use
documents.classicand expand guided document demo to include list/get. - Add new
/agenticexample endpoints (Express + ASP.NET) and update docs/Postman accordingly.
Reviewed changes
Copilot reviewed 18 out of 20 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| sdk/typescript/README.md | Updates TypeScript examples list to mention agentic v2 + classic/guided documents. |
| sdk/typescript/next-auth-examples/package.json | Pins @corti/sdk to 5.0.0-rc. |
| sdk/typescript/next-auth-examples/package-lock.json | Updates lockfile to @corti/sdk@5.0.0-rc. |
| sdk/typescript/express-web-api/src/routes/index.ts | Registers new Agentic route handler. |
| sdk/typescript/express-web-api/src/routes/guidedDocuments.ts | Guided docs demo now lists/gets persisted guided documents and returns sections. |
| sdk/typescript/express-web-api/src/routes/documents.ts | Migrates classic document CRUD to client.documents.classic.*. |
| sdk/typescript/express-web-api/src/routes/ambientAsyncEndToEnd.ts | Uses client.documents.classic.create for ambient end-to-end document creation. |
| sdk/typescript/express-web-api/src/routes/agentic.ts | Adds Express /agentic route exercising Agentic v2 SDK calls. |
| sdk/typescript/express-web-api/README.md | Updates endpoint documentation for agentic v2 and classic/guided documents routes. |
| sdk/typescript/express-web-api/package.json | Pins @corti/sdk to 5.0.0-rc. |
| sdk/typescript/express-web-api/package-lock.json | Updates lockfile to @corti/sdk@5.0.0-rc. |
| sdk/postman/WebApi.postman_collection.json | Updates Postman collection to include /agentic and align with new routes. |
| sdk/postman/README.md | Updates Postman docs to include agentic and classic/guided documents coverage. |
| sdk/dotnet/web-api/README.md | Updates .NET Web API docs for agentic v2 and classic/guided documents routes. |
| sdk/dotnet/web-api/Program.cs | Registers the new Agentic endpoint. |
| sdk/dotnet/web-api/Endpoints/GuidedDocumentsEndpoint.cs | Guided docs demo now lists/gets persisted guided documents and returns Sections. |
| sdk/dotnet/web-api/Endpoints/DocumentsEndpoint.cs | Migrates classic document CRUD to client.Documents.Classic.* and updates using directives. |
| sdk/dotnet/web-api/Endpoints/AmbientAsyncEndToEndEndpoint.cs | Uses client.Documents.Classic.CreateAsync for ambient end-to-end document creation. |
| sdk/dotnet/web-api/Endpoints/AgenticEndpoint.cs | Adds ASP.NET /agentic endpoint exercising Agentic v2 SDK calls. |
| sdk/dotnet/web-api/Corti.Sdk.Examples.Api.csproj | Pins Corti.Sdk NuGet reference to 0.11.0-rc. |
Files not reviewed (2)
- sdk/typescript/express-web-api/package-lock.json: Generated file
- sdk/typescript/next-auth-examples/package-lock.json: Generated file
Suppressed comments (2)
sdk/typescript/express-web-api/src/routes/agentic.ts:38
registryPage.datais assumed to be an array, butregistryConnectors.lengthwill throw ifdatais missing/undefined. Consider defaulting to an empty array (consistent with other list-handling in this repo).
const registryPage = await client.agentic.registry.connectors.list({ pageSize: 10 });
const registryConnectors = registryPage.data;
sdk/typescript/express-web-api/src/routes/agentic.ts:51
contextsPage.datais assumed to be an array, butcontexts.lengthwill throw ifdatais missing/undefined. Defaulting to[]avoids a runtime error and matches the defensive patterns used elsewhere in the examples.
const contextsPage = await client.agentic.contexts.list({
agentId: createdAgent.id,
pageSize: 10,
});
const contexts = contextsPage.data;
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Maksim Filipenka (mfilipenka)
previously approved these changes
Aug 19, 2026
Replace the RC pins now that the stable packages are on npm and NuGet.
Natalia Markitantova (markitosha)
enabled auto-merge (squash)
August 19, 2026 08:16
Maksim Filipenka (mfilipenka)
approved these changes
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…n 5.0.0-rc / 0.11.0-rc
Classic interaction-scoped documents moved under documents.classic. Add /documents/guided and /agentic example routes so the new SDK surfaces are callable from the web-api examples.