Preparing search index...
The search index is not available
Theia TypeDoc
Theia TypeDoc
ai-core
PromptTemplateContribution
Class PromptTemplateContribution
Implements
LanguageGrammarDefinitionContribution
CommandContribution
TabBarToolbarContribution
Index
Constructors
constructor
Properties
config
customization
Service
message
Service
prompt
Service
tool
Providers
Methods
can
Discard
discard
get
Completion
Range
get
Suggestions
is
Prompt
Template
Widget
provide
Function
Completions
register
Commands
register
Textmate
Language
register
Toolbar
Items
show
All
Prompts
Constructors
constructor
new
Prompt
Template
Contribution
(
)
:
PromptTemplateContribution
Returns
PromptTemplateContribution
Properties
Readonly
config
config
:
LanguageConfiguration
= ...
Protected
Readonly
customization
Service
customization
Service
:
PromptCustomizationService
Private
Readonly
message
Service
message
Service
:
MessageService
Private
Readonly
prompt
Service
prompt
Service
:
PromptService
Private
tool
Providers
tool
Providers
:
ContributionProvider
<
ToolProvider
>
Methods
Protected
can
Discard
can
Discard
(
widget
)
:
boolean
Parameters
widget
:
EditorWidget
Returns
boolean
Protected
discard
discard
(
widget
)
:
Promise
<
void
>
Parameters
widget
:
EditorWidget
Returns
Promise
<
void
>
get
Completion
Range
get
Completion
Range
(
model
,
position
,
triggerCharacters
)
:
undefined
|
Range
Parameters
model
:
ITextModel
position
:
Position
triggerCharacters
:
string
Returns
undefined
|
Range
Private
get
Suggestions
get
Suggestions
<
T
>
(
model
,
position
,
triggerChars
,
items
,
kind
,
getId
,
getName
,
getDescription
)
:
ProviderResult
<
CompletionList
>
Type Parameters
T
Parameters
model
:
ITextModel
position
:
Position
triggerChars
:
string
items
:
T
[]
kind
:
CompletionItemKind
getId
:
(
(
item
)
=>
string
)
(
item
)
:
string
Parameters
item
:
T
Returns
string
getName
:
(
(
item
)
=>
string
)
(
item
)
:
string
Parameters
item
:
T
Returns
string
getDescription
:
(
(
item
)
=>
string
)
(
item
)
:
string
Parameters
item
:
T
Returns
string
Returns
ProviderResult
<
CompletionList
>
Protected
is
Prompt
Template
Widget
is
Prompt
Template
Widget
(
widget
)
:
boolean
Parameters
widget
:
Widget
Returns
boolean
provide
Function
Completions
provide
Function
Completions
(
model
,
position
)
:
ProviderResult
<
CompletionList
>
Parameters
model
:
ITextModel
position
:
Position
Returns
ProviderResult
<
CompletionList
>
register
Commands
register
Commands
(
commands
)
:
void
Parameters
commands
:
CommandRegistry
Returns
void
register
Textmate
Language
register
Textmate
Language
(
registry
)
:
void
Parameters
registry
:
TextmateRegistry
Returns
void
register
Toolbar
Items
register
Toolbar
Items
(
registry
)
:
void
Parameters
registry
:
TabBarToolbarRegistry
Returns
void
Private
show
All
Prompts
show
All
Prompts
(
)
:
void
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
constructor
config
customization
Service
message
Service
prompt
Service
tool
Providers
can
Discard
discard
get
Completion
Range
get
Suggestions
is
Prompt
Template
Widget
provide
Function
Completions
register
Commands
register
Textmate
Language
register
Toolbar
Items
show
All
Prompts
Theia TypeDoc
Loading...