remove boiler plate prompt
This commit is contained in:
@@ -31,18 +31,6 @@ from cht.agent.base import (
|
|||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
SYSTEM_PROMPT = """You are an assistant integrated into CHT, a screen recording and analysis tool.
|
|
||||||
You help the user understand what happened during their recording session.
|
|
||||||
|
|
||||||
You have access to frame screenshots extracted from the recording. When frames are mentioned,
|
|
||||||
use the Read tool to view them. Frame timestamps are in seconds from the start of the recording.
|
|
||||||
|
|
||||||
You can use any available tools including WebFetch and WebSearch when the user asks you to
|
|
||||||
look something up. Use them freely — all tools are pre-authorized.
|
|
||||||
|
|
||||||
Your primary role is description and analysis, not code generation. Be concise and specific.
|
|
||||||
Focus on what's visible in the frames and what's in the transcript."""
|
|
||||||
|
|
||||||
MODELS = [
|
MODELS = [
|
||||||
"claude-sonnet-4-6",
|
"claude-sonnet-4-6",
|
||||||
"claude-opus-4-6",
|
"claude-opus-4-6",
|
||||||
@@ -144,7 +132,6 @@ class ClaudeSDKConnection:
|
|||||||
options=ClaudeAgentOptions(
|
options=ClaudeAgentOptions(
|
||||||
model=self._model,
|
model=self._model,
|
||||||
cwd=cwd or ".",
|
cwd=cwd or ".",
|
||||||
system_prompt=SYSTEM_PROMPT,
|
|
||||||
max_turns=self._max_turns,
|
max_turns=self._max_turns,
|
||||||
permission_mode=self._permission_mode,
|
permission_mode=self._permission_mode,
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -31,10 +31,6 @@ from cht.agent.base import (
|
|||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
SYSTEM_PROMPT = """You are an assistant integrated into CHT, a screen recording and analysis tool.
|
|
||||||
You help the user understand what happened during their recording session.
|
|
||||||
Be concise and specific. Focus on what's visible in the provided frames."""
|
|
||||||
|
|
||||||
_PROVIDER_CONFIGS = {
|
_PROVIDER_CONFIGS = {
|
||||||
"groq": (
|
"groq": (
|
||||||
"https://api.groq.com/openai/v1",
|
"https://api.groq.com/openai/v1",
|
||||||
@@ -76,7 +72,7 @@ def _frame_to_base64(path) -> str | None:
|
|||||||
|
|
||||||
def _messages_to_openai(messages: list[Message]) -> list[dict]:
|
def _messages_to_openai(messages: list[Message]) -> list[dict]:
|
||||||
"""Convert structured messages to OpenAI chat format."""
|
"""Convert structured messages to OpenAI chat format."""
|
||||||
result = [{"role": "system", "content": SYSTEM_PROMPT}]
|
result: list[dict] = []
|
||||||
|
|
||||||
for msg in messages:
|
for msg in messages:
|
||||||
if isinstance(msg, UserMessage):
|
if isinstance(msg, UserMessage):
|
||||||
|
|||||||
Reference in New Issue
Block a user