When building a Chain containing independent Skills, we can leverage the Parallel implementation of the Runners abstraction to actually run the skills in parallel and enhance throughput.


Here is a simple example showing how to instantiate a chain with skills running in parallel.

from council.chains import Chain
from council.runners import Parallel
from council.mocks import MockSkill

chain = Chain(name="name", description="parallel", runners=[Parallel(MockSkill(), MockSkill())])