@1mancompany/onemancompany 0.7.67 → 0.7.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -958,6 +958,17 @@ class BaseAgentRunner:
|
|
|
958
958
|
now = datetime.now()
|
|
959
959
|
parts.append(f"- Current time: {now.strftime('%Y-%m-%d %H:%M')}")
|
|
960
960
|
|
|
961
|
+
# Runtime model identity. This helps model-agnostic providers answer
|
|
962
|
+
# direct CEO questions about their configured runtime without guessing.
|
|
963
|
+
cfg = employee_configs.get(self.employee_id)
|
|
964
|
+
provider = (cfg.api_provider if cfg and cfg.api_provider else _cfg.settings.default_api_provider) or "unknown"
|
|
965
|
+
model = (cfg.llm_model if cfg and cfg.llm_model else _cfg.settings.default_llm_model) or "unknown"
|
|
966
|
+
parts.append(f"- Runtime LLM: provider={provider}, model={model}")
|
|
967
|
+
parts.append(
|
|
968
|
+
"- If the CEO asks what model/provider you are, answer using Runtime LLM above. "
|
|
969
|
+
"Do not infer or claim a different vendor from your role, tools, or framework."
|
|
970
|
+
)
|
|
971
|
+
|
|
961
972
|
# Team roster summary (compact)
|
|
962
973
|
from onemancompany.core.store import load_all_employees
|
|
963
974
|
all_emps = load_all_employees()
|
|
@@ -1243,4 +1254,3 @@ class EmployeeAgent(BaseAgentRunner):
|
|
|
1243
1254
|
self._set_status(STATUS_IDLE)
|
|
1244
1255
|
await self._publish("agent_done", {"role": self.role, "summary": final[:MAX_SUMMARY_LEN]})
|
|
1245
1256
|
return final
|
|
1246
|
-
|
|
@@ -102,10 +102,18 @@ def _build_conversation_prompt(
|
|
|
102
102
|
conversation: Conversation, messages: list[Message], new_message: Message,
|
|
103
103
|
) -> str:
|
|
104
104
|
"""Build a prompt with conversation history for the executor."""
|
|
105
|
-
from onemancompany.core.config import get_workspace_dir
|
|
105
|
+
from onemancompany.core.config import employee_configs, get_workspace_dir, settings
|
|
106
106
|
|
|
107
107
|
lines = []
|
|
108
108
|
lines.append("You are in a conversation with the CEO.")
|
|
109
|
+
cfg = employee_configs.get(conversation.employee_id)
|
|
110
|
+
provider = (cfg.api_provider if cfg and cfg.api_provider else settings.default_api_provider) or "unknown"
|
|
111
|
+
model = (cfg.llm_model if cfg and cfg.llm_model else settings.default_llm_model) or "unknown"
|
|
112
|
+
lines.append(f"Runtime LLM: provider={provider}, model={model}.")
|
|
113
|
+
lines.append(
|
|
114
|
+
"If the CEO asks what model/provider you are, answer from Runtime LLM above. "
|
|
115
|
+
"Do not infer or claim a different vendor from your role, tools, or framework."
|
|
116
|
+
)
|
|
109
117
|
if conversation.type == ConversationType.ONE_ON_ONE:
|
|
110
118
|
lines.append("This is a 1-on-1 meeting. Be direct and professional.")
|
|
111
119
|
workspace_dir = get_workspace_dir(conversation.employee_id).resolve()
|