aigentic
0.4.0-SNAPSHOT
common
core
/
community.flock.aigentic.core.agent
/
Agent
Agent
data
class
Agent
<
I
:
Any
,
O
:
Any
>
(
val
platform
:
Platform
?
,
val
customSystemPromptBuilder
:
SystemPromptBuilder
?
,
val
model
:
Model
,
val
task
:
Task
,
val
contexts
:
List
<
Context
>
,
val
tools
:
Map
<
ToolName
,
Tool
>
,
val
responseParameter
:
Parameter
?
=
null
,
val
tags
:
List
<
RunTag
>
)
Members
Members & Extensions
Constructors
Agent
Link copied to clipboard
constructor
(
platform
:
Platform
?
,
customSystemPromptBuilder
:
SystemPromptBuilder
?
,
model
:
Model
,
task
:
Task
,
contexts
:
List
<
Context
>
,
tools
:
Map
<
ToolName
,
Tool
>
,
responseParameter
:
Parameter
?
=
null
,
tags
:
List
<
RunTag
>
)
Properties
contexts
Link copied to clipboard
val
contexts
:
List
<
Context
>
custom
System
Prompt
Builder
Link copied to clipboard
val
customSystemPromptBuilder
:
SystemPromptBuilder
?
model
Link copied to clipboard
val
model
:
Model
platform
Link copied to clipboard
val
platform
:
Platform
?
response
Parameter
Link copied to clipboard
val
responseParameter
:
Parameter
?
=
null
tags
Link copied to clipboard
val
tags
:
List
<
RunTag
>
task
Link copied to clipboard
val
task
:
Task
tools
Link copied to clipboard
val
tools
:
Map
<
ToolName
,
Tool
>
Functions
get
System
Prompt
Message
Link copied to clipboard
fun
getSystemPromptMessage
(
)
:
Message.SystemPrompt
is
Structured
Output
Agent
Link copied to clipboard
fun
<
I
:
Any
,
O
:
Any
>
Agent
<
I
,
O
>
.
isStructuredOutputAgent
(
)
:
Boolean
start
Link copied to clipboard
inline suspend
fun
<
I
:
Any
,
O
:
Any
>
Agent
<
I
,
O
>
.
start
(
vararg
attachments
:
Attachment
)
:
AgentRun
<
O
>
inline suspend
fun
<
I
:
Any
,
O
:
Any
>
Agent
<
I
,
O
>
.
start
(
input
:
I
?
=
null
,
vararg
attachments
:
Attachment
)
:
AgentRun
<
O
>
then
Process
Link copied to clipboard
infix
fun
<
I
:
Any
,
M
:
Any
,
O
:
Any
>
Agent
<
I
,
M
>
.
thenProcess
(
next
:
Agent
<
M
,
O
>
)
:
Workflow2
<
I
,
M
,
O
>