codeer-cli 0.1.12__py3-none-any.whl → 0.1.13__py3-none-any.whl
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.
- codeer_cli/agents.py +6 -0
- codeer_cli/commands/agent.py +15 -1
- {codeer_cli-0.1.12.dist-info → codeer_cli-0.1.13.dist-info}/METADATA +2 -2
- {codeer_cli-0.1.12.dist-info → codeer_cli-0.1.13.dist-info}/RECORD +6 -6
- {codeer_cli-0.1.12.dist-info → codeer_cli-0.1.13.dist-info}/WHEEL +1 -1
- {codeer_cli-0.1.12.dist-info → codeer_cli-0.1.13.dist-info}/entry_points.txt +0 -0
codeer_cli/agents.py
CHANGED
|
@@ -20,6 +20,7 @@ def create(
|
|
|
20
20
|
unified_tools: Optional[List[dict]] = None,
|
|
21
21
|
use_search: bool = False,
|
|
22
22
|
llm_model: Optional[str] = None,
|
|
23
|
+
llm_model_settings: Optional[dict[str, dict[str, Any]]] = None,
|
|
23
24
|
description: Optional[str] = None,
|
|
24
25
|
suggested_questions: Optional[List[str]] = None,
|
|
25
26
|
primary_object_ids: Optional[List[int]] = None,
|
|
@@ -41,6 +42,8 @@ def create(
|
|
|
41
42
|
body["description"] = description
|
|
42
43
|
if llm_model is not None:
|
|
43
44
|
body["llm_model"] = llm_model
|
|
45
|
+
if llm_model_settings is not None:
|
|
46
|
+
body["llm_model_settings"] = llm_model_settings
|
|
44
47
|
if validated_handoff is not None:
|
|
45
48
|
body["human_handoff"] = validated_handoff
|
|
46
49
|
return client.post("/external/agents", json=body)
|
|
@@ -57,6 +60,7 @@ def update(
|
|
|
57
60
|
version_note: str = "",
|
|
58
61
|
description: Optional[str] = None,
|
|
59
62
|
llm_model: Optional[str] = None,
|
|
63
|
+
llm_model_settings: Optional[dict[str, dict[str, Any]]] = None,
|
|
60
64
|
suggested_questions: Optional[List[str]] = None,
|
|
61
65
|
primary_object_ids: Optional[List[int]] = None,
|
|
62
66
|
attachment_ids: Optional[List[str]] = None,
|
|
@@ -79,6 +83,8 @@ def update(
|
|
|
79
83
|
body["description"] = description
|
|
80
84
|
if llm_model is not None:
|
|
81
85
|
body["llm_model"] = llm_model
|
|
86
|
+
if llm_model_settings is not None:
|
|
87
|
+
body["llm_model_settings"] = llm_model_settings
|
|
82
88
|
if validated_handoff is not None:
|
|
83
89
|
body["human_handoff"] = validated_handoff
|
|
84
90
|
return client.patch(f"/external/agents/{agent_id}", json=body)
|
codeer_cli/commands/agent.py
CHANGED
|
@@ -89,7 +89,9 @@ def register(subparsers):
|
|
|
89
89
|
def _tool_summary(tools: list[dict] | None) -> list[dict]:
|
|
90
90
|
out = []
|
|
91
91
|
for t in tools or []:
|
|
92
|
-
form = t.get("custom_form_schema")
|
|
92
|
+
form = t.get("custom_form_schema")
|
|
93
|
+
if not isinstance(form, dict):
|
|
94
|
+
form = {}
|
|
93
95
|
out.append({
|
|
94
96
|
"id": t.get("id"),
|
|
95
97
|
"type": t.get("type"),
|
|
@@ -169,6 +171,8 @@ def run_apply(args, client) -> int:
|
|
|
169
171
|
log(f"error: invalid agent payload: {exc}")
|
|
170
172
|
return 2
|
|
171
173
|
|
|
174
|
+
llm_model_settings_provided = "llm_model_settings" in body
|
|
175
|
+
|
|
172
176
|
if args.dry_run:
|
|
173
177
|
operation = "update" if args.agent_id else "create"
|
|
174
178
|
result = {
|
|
@@ -181,6 +185,8 @@ def run_apply(args, client) -> int:
|
|
|
181
185
|
"tool_count": len(validated_tools),
|
|
182
186
|
"use_search": body.get("use_search", False),
|
|
183
187
|
"llm_model": body.get("llm_model"),
|
|
188
|
+
"llm_model_settings_provided": llm_model_settings_provided,
|
|
189
|
+
"llm_model_settings": body.get("llm_model_settings"),
|
|
184
190
|
"human_handoff": {
|
|
185
191
|
"enabled": bool((validated_handoff or {}).get("enabled")),
|
|
186
192
|
"idle_timeout_minutes": (validated_handoff or {}).get("idle_timeout_minutes"),
|
|
@@ -193,6 +199,12 @@ def run_apply(args, client) -> int:
|
|
|
193
199
|
print_json(result)
|
|
194
200
|
return 0
|
|
195
201
|
|
|
202
|
+
model_settings_kwargs = (
|
|
203
|
+
{"llm_model_settings": body["llm_model_settings"]}
|
|
204
|
+
if llm_model_settings_provided
|
|
205
|
+
else {}
|
|
206
|
+
)
|
|
207
|
+
|
|
196
208
|
if args.agent_id:
|
|
197
209
|
body.pop("workspace_id", None)
|
|
198
210
|
agents_mod.update(
|
|
@@ -208,6 +220,7 @@ def run_apply(args, client) -> int:
|
|
|
208
220
|
primary_object_ids=body.get("primary_object_ids") or [],
|
|
209
221
|
attachment_ids=body.get("attachment_ids") or [],
|
|
210
222
|
human_handoff=validated_handoff,
|
|
223
|
+
**model_settings_kwargs,
|
|
211
224
|
)
|
|
212
225
|
agent_id = args.agent_id
|
|
213
226
|
log(f"PUT /agents/{agent_id} ok")
|
|
@@ -227,6 +240,7 @@ def run_apply(args, client) -> int:
|
|
|
227
240
|
primary_object_ids=body.get("primary_object_ids") or [],
|
|
228
241
|
attachment_ids=body.get("attachment_ids") or [],
|
|
229
242
|
human_handoff=validated_handoff,
|
|
243
|
+
**model_settings_kwargs,
|
|
230
244
|
)
|
|
231
245
|
agent_id = agent["id"]
|
|
232
246
|
log(f"POST /agents ok, id={agent_id}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
codeer_cli/__init__.py,sha256=z3rkUdVCt11c8QE3-YFkG5cFObM6QhPe2yKugA8k3aA,1915
|
|
2
2
|
codeer_cli/_validate.py,sha256=lqMwkhsBy1g0o5CINBp1HdBCjMawgUaEsZygjJaAPL0,6943
|
|
3
|
-
codeer_cli/agents.py,sha256=
|
|
3
|
+
codeer_cli/agents.py,sha256=Yt_Rw4c9omsTnXsTe5n_9mD4TpDcx_1WuUkhtKmFY0g,6371
|
|
4
4
|
codeer_cli/chats.py,sha256=Vg1DIu8fT6mPyPpfqLpExKvXhdZEWCyJGPvalQy3BXg,7989
|
|
5
5
|
codeer_cli/cli.py,sha256=ghZMn7LUxDDvb3f82mDYW5hIFLk7dtlrCrGGP40Gygw,4637
|
|
6
6
|
codeer_cli/client.py,sha256=apUycjK-OvHEquAj58FqOy8FHmHjA6K9dScaYQ4M-VU,13175
|
|
@@ -12,14 +12,14 @@ codeer_cli/models.py,sha256=Ama9fx8hyRMdysiUNA3Ty0sYIYwzFDkOcAZg-id3-vQ,362
|
|
|
12
12
|
codeer_cli/parse.py,sha256=-txMtIxPfeg_i4McEskVKxo8p4438gKS-sFTI38RoBs,21772
|
|
13
13
|
codeer_cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
codeer_cli/commands/_util.py,sha256=X9-9cYgnBYz94hVG4Pe9SsI97DHNv3HE5_7GlPMn93I,1708
|
|
15
|
-
codeer_cli/commands/agent.py,sha256=
|
|
15
|
+
codeer_cli/commands/agent.py,sha256=BjctOF0tflt8yVGzdc6320sWXVUAYrF39tNIiTxtQx4,16319
|
|
16
16
|
codeer_cli/commands/check.py,sha256=lTxolx1mIJ8jldPhJ5FXqie9nbCLVOO-sDPOHTSy1-w,3817
|
|
17
17
|
codeer_cli/commands/eval_cmd.py,sha256=Zlt_YIA3D5-Y8WL1HZ6PxZgL-TcwFTDoXvO2gv7yfOM,71989
|
|
18
18
|
codeer_cli/commands/history.py,sha256=2p9VuPwyexr7Q2FFIBSuv9hNzn7VdIMa-AtvtP-8LvI,17253
|
|
19
19
|
codeer_cli/commands/kb.py,sha256=kVEinBVM6NN8_0djOqIQErh46dLmArwFngXMNzvGeAI,28345
|
|
20
20
|
codeer_cli/commands/model.py,sha256=91LDo_YeHi3POZV7KTCkoCcgtK5p87LwrHX1lZgfCps,1698
|
|
21
21
|
codeer_cli/commands/profile.py,sha256=IdlXC_6cqobsfN3JRrAnt-1OgBUsIFneS9QtR4Un6Kc,6521
|
|
22
|
-
codeer_cli-0.1.
|
|
23
|
-
codeer_cli-0.1.
|
|
24
|
-
codeer_cli-0.1.
|
|
25
|
-
codeer_cli-0.1.
|
|
22
|
+
codeer_cli-0.1.13.dist-info/METADATA,sha256=zslhdIB39lnbLxfGOM9sv8zrZdzDNzi6xjZWCDLrPQU,7885
|
|
23
|
+
codeer_cli-0.1.13.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
|
|
24
|
+
codeer_cli-0.1.13.dist-info/entry_points.txt,sha256=-nXIrlm5SR5r7gg3y8AS0tN66MwmvNHsrlwLNQNGD50,47
|
|
25
|
+
codeer_cli-0.1.13.dist-info/RECORD,,
|
|
File without changes
|