some changes
This commit is contained in:
@@ -19,12 +19,10 @@ from cht.agent.base import AgentProvider, FrameRef, SessionContext
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
# Predefined actions sent as messages with a fixed prompt
|
||||
# Predefined actions — label → verb prefix (frame ref appended by UI)
|
||||
ACTIONS: dict[str, str] = {
|
||||
"Summarize": "Summarize what happened in this recording so far. Look at the captured frames and describe the key content and any changes you notice.",
|
||||
"What changed": "Compare the captured frames in order and describe what changed between them. Focus on meaningful transitions.",
|
||||
"Key moments": "Identify the most important moments in the recording based on the frames. List them with timestamps.",
|
||||
"Describe now": "Look at the most recent frame and describe exactly what is currently on screen.",
|
||||
"Describe": "describe",
|
||||
"Answer": "answer",
|
||||
}
|
||||
|
||||
|
||||
@@ -106,6 +104,24 @@ class AgentRunner:
|
||||
except Exception:
|
||||
return "unknown"
|
||||
|
||||
@property
|
||||
def available_models(self) -> list[str]:
|
||||
try:
|
||||
return self._get_provider().available_models
|
||||
except Exception:
|
||||
return []
|
||||
|
||||
@property
|
||||
def model(self) -> str:
|
||||
try:
|
||||
return self._get_provider().model
|
||||
except Exception:
|
||||
return ""
|
||||
|
||||
@model.setter
|
||||
def model(self, value: str):
|
||||
self._get_provider().model = value
|
||||
|
||||
def send(
|
||||
self,
|
||||
message: str,
|
||||
|
||||
Reference in New Issue
Block a user