ap-client 0.7.0.dev8__tar.gz → 0.7.0.dev11__tar.gz

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.
Files changed (28) hide show
  1. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/PKG-INFO +1 -1
  2. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/cli.py +27 -43
  3. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/pyproject.toml +1 -1
  4. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/__init__.py +0 -0
  5. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/akpool_commands.py +0 -0
  6. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/api.py +0 -0
  7. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/config.py +0 -0
  8. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/dataset_commands.py +0 -0
  9. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/dataset_name.py +0 -0
  10. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/dataset_register.py +0 -0
  11. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/dfs_commands.py +0 -0
  12. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/exporter.py +0 -0
  13. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/fs_commands.py +0 -0
  14. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/fs_storage.py +0 -0
  15. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/fs_transfer.py +0 -0
  16. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/instance_commands.py +0 -0
  17. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/instance_options.py +0 -0
  18. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/irepo_sdk.py +0 -0
  19. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/managed_ak.py +0 -0
  20. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/manifest_view.py +0 -0
  21. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/ossutil_hash.py +0 -0
  22. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/ossutil_io.py +0 -0
  23. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/profile_commands.py +0 -0
  24. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/repo_read_guard.py +0 -0
  25. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/share_api.py +0 -0
  26. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/split_publish.py +0 -0
  27. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/tbb.py +0 -0
  28. {ap_client-0.7.0.dev8 → ap_client-0.7.0.dev11}/ap_client/waiter.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: ap-client
3
- Version: 0.7.0.dev8
3
+ Version: 0.7.0.dev11
4
4
  Summary: Agent Platform API Client & CLI
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: irepo-artifact==0.2.4
@@ -3238,54 +3238,38 @@ def job_create(
3238
3238
 
3239
3239
  For agents:
3240
3240
  \b
3241
- Before submitting, you must check all five metadata fields against current catalogs
3242
- and task metadata: benchmark, target model, job purpose, training stage, and teacher direction.
3243
- Optional flags do not mean these checks may be skipped.
3244
- Verify applicable Profile and Group values: ap profile get ID --format json
3245
- (check the version); ap group get ID --format json.
3246
- Job tags do not overwrite existing Group metadata.
3247
- Free-form tags and system defaults do not establish a verified value.
3248
- For Benchmark, prefer the registered source_id; retain valid inherited values.
3249
- Do not infer target model from serving/Judge models or training stage from evaluation.
3250
- After checking, pass reliably resolved values; leave only unresolved fields unset.
3251
- Do not guess or ask the user just to fill labels.
3252
- In the submission summary, list each of the five fields with its value and source,
3253
- or why it remains unresolved.
3254
- All five options remain optional; existing validation still applies.
3241
+ Before submitting, you MUST ensure these five parameters are explicitly specified:
3242
+ benchmark, meta-model, meta-job-type, meta-train-stage, meta-teacher-direction.
3243
+ Keep specified values. Fill missing parameters using available Job, Group,
3244
+ Profile, Dataset, Template, or other relevant information.
3245
+ If a missing value cannot be inferred, use default for benchmark
3246
+ or Others for the corresponding meta parameter.
3247
+ Do not ask the user for these values.
3255
3248
 
3256
3249
  Model configuration:
3257
3250
  Supply template parameters through --params/-p; select a managed credential with --ak-id.
3258
3251
 
3259
3252
  Examples:
3260
- # Single job - full parameters
3261
- ap job create claw-eval-task -p '{"task_id":"T02_email_triage","model":"qwen-max"}'
3262
-
3263
- # Single job - instance_id + shared params
3264
- ap job create claw-eval-task -i T02_email_triage -p '{"model":"qwen-max"}'
3265
-
3266
- # Batch jobs - multiple instance_ids + shared params
3267
- ap job create claw-eval-task -i T02_email_triage,T03zh_calendar_scheduling,T04_calendar_scheduling -p '{"model":"qwen-max"}'
3268
-
3269
- # Batch jobs - dataset + shared params
3270
- ap job create claw-eval-task --dataset claw-eval/claw-eval/v1@0 -p '{"model":"qwen-max"}'
3271
-
3272
- # Batch jobs - dataset subset with exclusions
3273
- ap job create claw-eval-task --dataset claw-eval/claw-eval/v1@0 --range 0,10,2 --exclude-instance-ids T03zh_calendar_scheduling
3274
-
3275
- # Batch jobs from a params list(inline JSON) with shared base params (-p merged into each item)
3276
- ap job create claw-eval-task --params-list '[{"task_id":"T02_email_triage"},{"task_id":"T03zh_calendar_scheduling"}]' -p '{"model":"qwen-max"}'
3277
-
3278
- # Batch jobs from a params list file (also supports -p for shared base params)
3279
- ap job create claw-eval-task --params-list params.json -p '{"model":"qwen-max"}'
3280
-
3281
- # Debug mode - keep pod alive for interactive debugging (Pod Login)
3282
- ap job create stress-test -p '{"duration":60}' --debug
3283
-
3284
- # Debug mode with custom keep-alive duration
3285
- ap job create stress-test -p '{"duration":60}' --debug --debug-keep-alive-seconds 7200
3286
-
3287
- # Apply per-instance resource settings from a Resource Profile
3288
- ap job create claw-eval-task --dataset claw-eval/v1 --resource-profile rp-123
3253
+ Use catalog/context-selected values for the metadata variables below.
3254
+
3255
+ \b
3256
+ # Profile submission (PROFILE_REF is ID:vN)
3257
+ ap job create --profile "$PROFILE_REF" -i "$INSTANCE_ID" \\
3258
+ --benchmark "$BENCHMARK_ID" \\
3259
+ --meta-model "$META_MODEL" \\
3260
+ --meta-job-type "$META_JOB_TYPE" \\
3261
+ --meta-train-stage "$META_TRAIN_STAGE" \\
3262
+ --meta-teacher-direction "$META_TEACHER_DIRECTION"
3263
+
3264
+ \b
3265
+ # Batch jobs from a Dataset (first 3 instances)
3266
+ ap job create claw-eval-task --dataset "$DATASET_PATH" --range 0,3 \\
3267
+ -p '{"model":"qwen-max"}' \\
3268
+ --benchmark "$BENCHMARK_ID" \\
3269
+ --meta-model "$META_MODEL" \\
3270
+ --meta-job-type "$META_JOB_TYPE" \\
3271
+ --meta-train-stage "$META_TRAIN_STAGE" \\
3272
+ --meta-teacher-direction "$META_TEACHER_DIRECTION"
3289
3273
 
3290
3274
  """
3291
3275
  if transparency is not None and transparency not in {"whitebox", "blackbox"}:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "ap-client"
7
- version = "0.7.0.dev8"
7
+ version = "0.7.0.dev11"
8
8
  description = "Agent Platform API Client & CLI"
9
9
  readme = { text = "A lightweight Python SDK and command line interface for Agent Platform. It provides helpers for configuring API access and managing templates, datasets, jobs, and groups.", content-type = "text/markdown" }
10
10
  requires-python = ">=3.10"