MCPcopy Create free account
hub / github.com/algorithmicsuperintelligence/optillm / run

Function run

optillm/plugins/spl_plugin.py:22–37  ·  view source on GitHub ↗

Plugin entry point for System Prompt Learning. Args: system_prompt: The system prompt initial_query: The user's query client: The LLM client model: The model identifier request_config: Optional request configuration Can include

(system_prompt: str, initial_query: str, client, model: str, request_config: dict = None)

Source from the content-addressed store, hash-verified

20SLUG = "spl"
21
22def run(system_prompt: str, initial_query: str, client, model: str, request_config: dict = None) -> Tuple[str, int]:
23 """
24 Plugin entry point for System Prompt Learning.
25
26 Args:
27 system_prompt: The system prompt
28 initial_query: The user's query
29 client: The LLM client
30 model: The model identifier
31 request_config: Optional request configuration
32 Can include {'spl_learning': True} to enable learning mode
33
34 Returns:
35 Tuple[str, int]: The LLM response and token count
36 """
37 return run_spl(system_prompt, initial_query, client, model, request_config)

Callers

nothing calls this directly

Calls 1

run_splFunction · 0.90

Tested by

no test coverage detected