Crate swiftide_docker_executor

Source
Expand description

A library for executing swiftide agent tools in a docker container

§Example


let executor = DockerExecutor::default()
    .with_context_path(".")
    .with_image_name("test")
    .with_dockerfile("Dockerfile.overwritten")
    .to_owned()
    .start().await.unwrap();

let context = DefaultContext::from_executor(executor);
let agent = Agent::builder().context(context);

Modules§

codegen
file_loader

Structs§

ContextBuilder
DockerExecutor
Build a docker image with bollard and start it up
RunningDockerExecutor

Enums§

ClientError
ContainerStartError
ContextError
DockerExecutorError
DockerfileError
ImageBuildError
MangleError

Traits§

ToolExecutor
A ToolExecutor provides an interface for agents to interact with a system in an isolated context.