MCPcopy Create free account
hub / github.com/SkyworkAI/DeepResearchAgent / optimize

Method optimize

src/optimizer/types.py:426–441  ·  view source on GitHub ↗

Execute the optimization routine (abstract; subclasses must implement). Args: task: Task description. files: Optional list of attachment paths. ctx: Session context.

(
        self,
        task: str,
        files: Optional[List[str]] = None,
        ctx: "SessionContext" = None,
        **kwargs
    )

Source from the content-addressed store, hash-verified

424 raise NotImplementedError(f"``set_trainable_variables`` function for {type(self).__name__} is not implemented!")
425
426 async def optimize(
427 self,
428 task: str,
429 files: Optional[List[str]] = None,
430 ctx: "SessionContext" = None,
431 **kwargs
432 ):
433 """
434 Execute the optimization routine (abstract; subclasses must implement).
435
436 Args:
437 task: Task description.
438 files: Optional list of attachment paths.
439 ctx: Session context.
440 """
441 raise NotImplementedError(f"``optimize`` function for {type(self).__name__} is not implemented!")
442
443 def close(self):
444 """Close the optimizer and release resources."""

Callers 3

process_single_taskFunction · 0.45
process_single_taskFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected