kinitro-submission / agent.capnp
syeam-alt's picture
init
fb83720
Raw History Blame Contribute Delete
362 Bytes
@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);
}