Theia API Documentation v1.65.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/ai-core
common/prompt-variable-contribution
PromptVariableContribution
Class PromptVariableContribution
Implements
AIVariableContribution
AIVariableResolverWithVariableDependencies
Index
Constructors
constructor
Properties
command
Service
logger
prompt
Service
Methods
can
Resolve
provide
Argument
Completion
Items
register
Variables
resolve
trigger
Argument
Picker
Constructors
constructor
new
PromptVariableContribution
()
:
PromptVariableContribution
Returns
PromptVariableContribution
Properties
Protected
Readonly
command
Service
commandService
:
CommandService
Protected
logger
logger
:
ILogger
Protected
Readonly
prompt
Service
promptService
:
PromptService
Methods
can
Resolve
canResolve
(
request
:
AIVariableResolutionRequest
,
context
:
AIVariableContext
,
)
:
number
Parameters
request
:
AIVariableResolutionRequest
context
:
AIVariableContext
Returns
number
Protected
provide
Argument
Completion
Items
provideArgumentCompletionItems
(
model
:
ITextModel
,
position
:
Position
,
)
:
Promise
<
undefined
|
CompletionItem
[]
>
Parameters
model
:
ITextModel
position
:
Position
Returns
Promise
<
undefined
|
CompletionItem
[]
>
register
Variables
registerVariables
(
service
:
AIVariableService
)
:
void
Parameters
service
:
AIVariableService
Returns
void
resolve
resolve
(
request
:
AIVariableResolutionRequest
,
context
:
AIVariableContext
,
resolveDependency
?:
(
variable
:
AIVariableArg
,
)
=>
Promise
<
undefined
|
ResolvedAIVariable
>
,
)
:
Promise
<
undefined
|
ResolvedAIVariable
>
Parameters
request
:
AIVariableResolutionRequest
context
:
AIVariableContext
Optional
resolveDependency
:
(
variable
:
AIVariableArg
)
=>
Promise
<
undefined
|
ResolvedAIVariable
>
Returns
Promise
<
undefined
|
ResolvedAIVariable
>
Protected
trigger
Argument
Picker
triggerArgumentPicker
()
:
Promise
<
undefined
|
string
>
Returns
Promise
<
undefined
|
string
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
command
Service
logger
prompt
Service
Methods
can
Resolve
provide
Argument
Completion
Items
register
Variables
resolve
trigger
Argument
Picker
Eclipse Theia Website
GitHub
Theia API Documentation v1.65.0
Loading...