Skip to content

Commit 4c76e65

Browse files
feat: add director agent
1 parent 4c02339 commit 4c76e65

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

automation_management_microservice.jcm

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,5 @@
77
*/
88

99
mas automation_management_microservice {
10-
agent bob: sample_agent.asl
11-
12-
// workspace w {
13-
// artifact config: config.ConfigurationArtifact()
14-
// }
15-
10+
agent director
1611
}

src/agt/director.asl

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Copyright (c) 2023. Smart Operating Block
3+
*
4+
* Use of this source code is governed by an MIT-style
5+
* license that can be found in the LICENSE file or at
6+
* https://opensource.org/licenses/MIT.
7+
*/
8+
9+
/*
10+
* This agent loads the configuration using the ConfigurationArtifact
11+
* and inform the right agents inside the workspace of the work to do.
12+
*/
13+
14+
!loadConfig.
15+
16+
+!loadConfig
17+
<- makeArtifact(configuration, "config.ConfigurationArtifact", [], ConfigurationId);
18+
focus(ConfigurationId);
19+
load.
20+
21+
+config(X)
22+
<- println(X).
23+
// todo: inform agents
24+
25+
{ include("$jacamoJar/templates/common-cartago.asl") }
26+
{ include("$jacamoJar/templates/common-moise.asl") }

0 commit comments

Comments
 (0)