quick question around implementing a new Runtime. ...
# general
m
quick question around implementing a new Runtime. can someone talk about
Runtime
vs
ActionExecutionClient
I see some runtimes implement
Runtime
while others implement
ActionExecutionClient
. is there a guidance on which one is the correct one to implement to add a custom runtime?
w
tl;dr, this code is a mess and will be thankfully going away 😄
but to answer your question: ActionExecutionClient implents Runtime, so all Runtimes transitively implement the abstract base Runtime implementation
ActionExecutionClient specifically expects an ActionExecutionServer running somewhere to handle bash operations, file edits, etc
m
thanks @wooden-umbrella-84098 for the quick response. > tl;dr, this code is a mess and will be thankfully going away mind elaborating 🙂 perfect, yeah that's what I thought. but I am not sure I am able to figure out where the bash command execution etc is happening. If I look at modalruntime then I am not sure how commands are getting executed in modal. in e2b I think I can see that the runtime has a sandbox connected to it and sandbox has an execute function that I am assming runtiime delegates to > ActionExecutionClient specifically expects an ActionExecutionServer running somewhere to handle bash operations, file edits, etc is there an example where it shows in modal or e2b how they are running this server?
I am trying to figure out what is a good reference implementation to look at to extend, and not sure if I should look at the e2b as a good reference or modal. for example in e2b runtime, I would expect it to implement
run
but it doesn't and the e2b sandbox has
execute
that I can't seem to find any references for
and also any place we can track the latest architecture changes and contribute