Skip to content

Sync data connector instructions with sample implementation#6

Open
Wheatley-Labs wants to merge 2 commits intomainfrom
codex/review-and-update-data-connector-instructions
Open

Sync data connector instructions with sample implementation#6
Wheatley-Labs wants to merge 2 commits intomainfrom
codex/review-and-update-data-connector-instructions

Conversation

@Wheatley-Labs
Copy link
Contributor

Motivation

  • Align the written data connector guide with the actual sample connector code so readers can follow the documentation against the repository code without confusion.
  • Clarify behaviors and artifacts that the sample connector produces (additional node types, message parsing, aliasing, and endpoint calls) that were missing or inconsistent in the original instructions.

Description

  • Updated data-connector/INSTRUCTIONS.md to reference the correct project name (TechnicalSupport.DataConnector.csproj) and to document the additional node types SupportCaseMessage and SupportChatContext present in Schema.cs and used by the sample.
  • Added the Status property to the SupportCase schema and documented the creation of HasMessage/MessageOf edges and the HasStatus handling (including the sample call to graph.UnlinkExcept before linking the Status node).
  • Made ingestion examples match the sample code by switching the deserialization note to Newtonsoft.Json, showing graph.AddAlias calls for devices, switching Node.Key usages to Node.FromKey, and showing how support-case transcripts are parsed into SupportCaseMessage nodes.
  • Clarified run-time requirements by calling out that the sample calls example endpoints after ingestion (so a valid endpoints token is required) and explaining that TestEndpointsAsync can be commented out if endpoint calls are not desired, and updated shell query examples to use explicit type/field/edge names (strings) that align with the sample.

Testing

  • Automated tests were not run because this is a documentation-only change and no code logic was modified.

Codex Task

### Motivation
- Align the written data connector guide with the actual sample connector code so readers can follow the documentation against the repository code without confusion.
- Clarify behaviors and artifacts that the sample connector produces (additional node types, message parsing, aliasing, and endpoint calls) that were missing or inconsistent in the original instructions.

### Description
- Updated `data-connector/INSTRUCTIONS.md` to reference the correct project name (`TechnicalSupport.DataConnector.csproj`) and to document the additional node types `SupportCaseMessage` and `SupportChatContext` present in `Schema.cs` and used by the sample.
- Added the `Status` property to the `SupportCase` schema and documented the creation of `HasMessage`/`MessageOf` edges and the `HasStatus` handling (including the sample call to `graph.UnlinkExcept` before linking the `Status` node).
- Made ingestion examples match the sample code by switching the deserialization note to `Newtonsoft.Json`, showing `graph.AddAlias` calls for devices, switching `Node.Key` usages to `Node.FromKey`, and showing how support-case transcripts are parsed into `SupportCaseMessage` nodes.
- Clarified run-time requirements by calling out that the sample calls example endpoints after ingestion (so a valid endpoints token is required) and explaining that `TestEndpointsAsync` can be commented out if endpoint calls are not desired, and updated shell query examples to use explicit type/field/edge names (strings) that align with the sample.

### Testing
- Automated tests were not run because this is a documentation-only change and no code logic was modified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant