Skip to content

Commit

Permalink
Add new methods for chat and provider [feenkcom/gtoolkit#4322]
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Mar 4, 2025
1 parent 5269a59 commit bd72e6b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
5 changes: 5 additions & 0 deletions src/Gt4Llm/GtLlmChat.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Class {
#category : #Gt4Llm
}

{ #category : #'as yet unclassified' }
GtLlmChat class >> new [
^ self basicNew initialize
]

{ #category : #accessing }
GtLlmChat >> addMessage: aMessage [
self updateLastUpdate.
Expand Down
15 changes: 1 addition & 14 deletions src/Gt4Llm/GtLlmNullProvider.class.st
Original file line number Diff line number Diff line change
@@ -1,22 +1,9 @@
Class {
#name : #GtLlmNullProvider,
#superclass : #Object,
#instVars : [
'chat'
],
#superclass : #GtLlmProvider,
#category : #Gt4Llm
}

{ #category : #accessing }
GtLlmNullProvider >> chat [
^ chat
]

{ #category : #accessing }
GtLlmNullProvider >> chat: anObject [
chat := anObject
]

{ #category : #'as yet unclassified' }
GtLlmNullProvider >> format: aFormat [
]
Expand Down
5 changes: 5 additions & 0 deletions src/Gt4Llm/GtLlmProvider.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ Class {
#category : #Gt4Llm
}

{ #category : #'as yet unclassified' }
GtLlmProvider class >> new [
^ self basicNew initialize
]

{ #category : #accessing }
GtLlmProvider >> assistantMessageClass [
^ assistantMessageClass
Expand Down

0 comments on commit bd72e6b

Please sign in to comment.