toggle menu
Embabel Agent Documentation
JVM
switch theme
search in API
Embabel Agent Documentation
/
com.embabel.agent.api.dsl.support
Package-level
declarations
Functions
Functions
prompt
Transformer
Link copied to clipboard
@
ApiStatus.Internal
fun
<
I
,
O
:
Any
>
promptTransformer
(
name
:
String
,
description
:
String
=
name
,
pre
:
List
<
Condition
>
=
emptyList()
,
post
:
List
<
Condition
>
=
emptyList()
,
inputVarName
:
String
=
IoBinding.DEFAULT_BINDING
,
outputVarName
:
String
=
IoBinding.DEFAULT_BINDING
,
inputClass
:
Class
<
I
>
,
outputClass
:
Class
<
O
>
,
cost
:
CostComputation
=
{ 0.0 }
,
toolGroups
:
Set
<
ToolGroupRequirement
>
=
emptySet()
,
qos
:
ActionQos
=
ActionQos()
,
referencedInputProperties
:
Set
<
String
>
?
=
null
,
llm
:
<Error class: unknown class>
=
LlmOptions()
,
promptContributors
:
List
<
<Error class: unknown class>
>
=
emptyList()
,
canRerun
:
Boolean
=
false
,
tools
:
Collection
<
Tool
>
=
emptyList()
,
prompt
:
(
actionContext
:
TransformationActionContext
<
I
,
O
>
)
->
String
)
:
TransformationAction
<
I
,
O
>
Supports AgentBuilder. Not for direct use in user code.