pub struct ProxyExecutor { /* private fields */ }Expand description
代理工具执行器
包装 ProxyToolExecutor 为 NodeExecutor,让 workflow 可以调用代理工具。
Implementations§
Source§impl ProxyExecutor
impl ProxyExecutor
Sourcepub fn new(
executor: Arc<dyn ProxyToolExecutor>,
tool_defs: Vec<ProxyToolDef>,
) -> Self
pub fn new( executor: Arc<dyn ProxyToolExecutor>, tool_defs: Vec<ProxyToolDef>, ) -> Self
创建新的代理执行器
Sourcepub fn get_timeout(&self, name: &str) -> u64
pub fn get_timeout(&self, name: &str) -> u64
获取工具超时时间
Trait Implementations§
Source§impl NodeExecutor for ProxyExecutor
impl NodeExecutor for ProxyExecutor
Auto Trait Implementations§
impl Freeze for ProxyExecutor
impl !RefUnwindSafe for ProxyExecutor
impl Send for ProxyExecutor
impl Sync for ProxyExecutor
impl Unpin for ProxyExecutor
impl UnsafeUnpin for ProxyExecutor
impl !UnwindSafe for ProxyExecutor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more