Open
Conversation
Migrate authentication from username/password to OAuth client credentials flow with token caching. Add new CDS mode for appointment preparation with FHIR patient data integration, agent creation UI, markdown rendering, and dedicated CDS pipeline/state management. Include vitest setup and initial tests.
- Add patientId to buildCdsMessage so it's included in the first message - Wire patientId through useCdsPipeline into the message builder - Replace manual OAuth token cache in agent.ts with SDK-native authProvider.getToken() to eliminate the redundant /v2/auth/token call - Update tests to cover patientId in message construction
Add ToolCall/TraceData types, session trace fetching APIs (fetchSessionTraces, fetchAllChatMessages), SET_TRACES reducer action, CDS-specific chat components with trace display (AgentTrace, CdsChatBubble, CdsChatMessages), and a standalone debug window accessible from the CDS view header.
0d4e6e1 to
4b1606b
Compare
- Auto-trigger appointment summary when agent is selected with a patient - Extract processStream helper to deduplicate stream handling logic - Add effect cleanup to abort auto-summary on unmount - Add loading and error-during-loading UI states with retry - Add SuggestedPrompts component with CDS-specific prompts - Move prompt constants to cdsPrompt.ts - Only prepend system prompt on first message (isFirstMessage flag) - Remove cdsAgentPrompt from config and settings UI - Remove debug console.log/warn statements from agent.ts and fhir.ts
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.
https://www.tella.tv/video/introducing-appointment-prep-feature-1z8d
Add CDS example with agent chat