Skip to content

Commit

Permalink
Move class action of embedding registry [feenkcom/gtoolkit#4322]
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Mar 4, 2025
1 parent bd72e6b commit f75a659
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 10 additions & 0 deletions src/Gt4Llm-GToolkit/GtLlmEmbeddingRegistry.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@ GtLlmEmbeddingRegistry >> gtEmbeddingsFor: aView [
width: 80;
send: #value
]

{ #category : #'*Gt4Llm-GToolkit' }
GtLlmEmbeddingRegistry class >> gtInstanceButtonFor: anAction [
<gtClassAction>
^ anAction button
tooltip: 'Inspect unique instance';
priority: 10;
icon: BrGlamorousVectorIcons playinspect;
action: [ :aButton | aButton phlow spawnObject: self uniqueInstance]
]
10 changes: 0 additions & 10 deletions src/Gt4Llm/GtLlmEmbeddingRegistry.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ GtLlmEmbeddingRegistry class >> default [
^ self uniqueInstance
]

{ #category : #'as yet unclassified' }
GtLlmEmbeddingRegistry class >> gtInstanceButtonFor: anAction [
<gtClassAction>
^ anAction button
tooltip: 'Inspect unique instance';
priority: 10;
icon: BrGlamorousVectorIcons playinspect;
action: [ :aButton | aButton phlow spawnObject: self uniqueInstance]
]

{ #category : #'as yet unclassified' }
GtLlmEmbeddingRegistry class >> hasUniqueInstance [

Expand Down

0 comments on commit f75a659

Please sign in to comment.