pub enum LocalAgents {
Allowed,
Off,
}Expand description
TEAMCRAFT_LOCAL_AGENTS: may users connect their own local AI agents
(the desktop app’s Agent view, an ACP client for Claude Code, Gemini
CLI …) to TeamCraft’s tools?
Off turns POST /api/v1/mcp off for every token (the built-in assistant
calls the tools in-process, so it is not affected) and is reported to
clients (GET /api/v1/me → capabilities.local_agents and mcp), so the
desktop app’s Agent view runs on the server-side assistant (or shows that
AI is off without one). LOCAL_AGENT_HEADER, which the desktop
adds to the MCP connection it hands to an agent, only picks the refusal
message. The REST API stays open to a user’s own token – limiting that
needs scoped tokens.
Variants§
Allowed
The default: the desktop app’s Agent view may run a local agent.
Off
Only the server-side assistant (Ask TeamCraft; in the desktop app the Agent view’s company AI).
Implementations§
Trait Implementations§
Source§impl Clone for LocalAgents
impl Clone for LocalAgents
impl Copy for LocalAgents
Source§impl Debug for LocalAgents
impl Debug for LocalAgents
Source§impl Default for LocalAgents
impl Default for LocalAgents
impl Eq for LocalAgents
Source§impl PartialEq for LocalAgents
impl PartialEq for LocalAgents
impl StructuralPartialEq for LocalAgents
Auto Trait Implementations§
impl Freeze for LocalAgents
impl RefUnwindSafe for LocalAgents
impl Send for LocalAgents
impl Sync for LocalAgents
impl Unpin for LocalAgents
impl UnsafeUnpin for LocalAgents
impl UnwindSafe for LocalAgents
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.