chore: move context window estimate to agent_manager for full async (#2354)
This commit is contained in:
@@ -1618,14 +1618,6 @@ class SyncServer(Server):
|
||||
def add_embedding_model(self, request: EmbeddingConfig) -> EmbeddingConfig:
|
||||
"""Add a new embedding model"""
|
||||
|
||||
def get_agent_context_window(self, agent_id: str, actor: User) -> ContextWindowOverview:
|
||||
letta_agent = self.load_agent(agent_id=agent_id, actor=actor)
|
||||
return letta_agent.get_context_window()
|
||||
|
||||
async def get_agent_context_window_async(self, agent_id: str, actor: User) -> ContextWindowOverview:
|
||||
letta_agent = self.load_agent(agent_id=agent_id, actor=actor)
|
||||
return await letta_agent.get_context_window_async()
|
||||
|
||||
def run_tool_from_source(
|
||||
self,
|
||||
actor: User,
|
||||
|
||||
Reference in New Issue
Block a user