Skip to content

Commit

Permalink
Add views for gemstone [feenkcom/gtoolkit#4322]
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Mar 7, 2025
1 parent 26c66e8 commit 36a88b3
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Gt4Llm-Gemstone/GtLlmChatMessage.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,24 @@ Extension { #name : 'GtLlmChatMessage' }
GtLlmChatMessage class >> isAbstract [
^ self name = #GtLlmChatMessage
]

{ #category : '*Gt4Llm-Gemstone' }
GtLlmChatMessage >> gtContentFor: aView [
<gtView>
<gtLlmMessageView>
^ aView textEditor
title: 'Content';
priority: 5;
text: [ self contentText ]
]

{ #category : '*Gt4Llm-Gemstone' }
GtLlmChatMessage >> gtJsonFor: aView [
<gtView>
<gtLlmMessageView>
[ self contentJson ] on: Error do: [ ^ aView empty ].

^ (self contentJson gtItemsFor: aView)
title: 'JSON data';
priority: 4.5
]

0 comments on commit 36a88b3

Please sign in to comment.