File size: 364 Bytes
7858a1a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@0xbf5147e1a2a3a3b1;

interface Agent {
  ping @0 (message :Text) -> (response :Text);
  act  @1 (obs :Observation) -> (action :Tensor);
  reset @2 ();
}

struct Tensor {
  data  @0 :Data;
  shape @1 :List(Int32);
  dtype @2 :Text;
}

struct ObservationEntry {
  key @0 :Text;
  tensor @1 :Tensor;
}

struct Observation {
  entries @0 :List(ObservationEntry);
}