statek 1.2.3__tar.gz → 1.2.4__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 (58) hide show
  1. {statek-1.2.3/statek.egg-info → statek-1.2.4}/PKG-INFO +1 -1
  2. {statek-1.2.3 → statek-1.2.4}/pyproject.toml +1 -1
  3. {statek-1.2.3 → statek-1.2.4}/statek/llm_api.py +10 -9
  4. {statek-1.2.3 → statek-1.2.4/statek.egg-info}/PKG-INFO +1 -1
  5. {statek-1.2.3 → statek-1.2.4}/LICENSE +0 -0
  6. {statek-1.2.3 → statek-1.2.4}/MANIFEST.in +0 -0
  7. {statek-1.2.3 → statek-1.2.4}/NOTICE +0 -0
  8. {statek-1.2.3 → statek-1.2.4}/README.md +0 -0
  9. {statek-1.2.3 → statek-1.2.4}/THIRD_PARTY_NOTICES.md +0 -0
  10. {statek-1.2.3 → statek-1.2.4}/setup.cfg +0 -0
  11. {statek-1.2.3 → statek-1.2.4}/statek/__init__.py +0 -0
  12. {statek-1.2.3 → statek-1.2.4}/statek/agents/__init__.py +0 -0
  13. {statek-1.2.3 → statek-1.2.4}/statek/agents/agent.py +0 -0
  14. {statek-1.2.3 → statek-1.2.4}/statek/agents/coordinator.py +0 -0
  15. {statek-1.2.3 → statek-1.2.4}/statek/agents/dialog_agent.py +0 -0
  16. {statek-1.2.3 → statek-1.2.4}/statek/agents/list_of_documents.py +0 -0
  17. {statek-1.2.3 → statek-1.2.4}/statek/agents/list_of_examples.py +0 -0
  18. {statek-1.2.3 → statek-1.2.4}/statek/agents/message_dispatcher.py +0 -0
  19. {statek-1.2.3 → statek-1.2.4}/statek/agents/researcher.py +0 -0
  20. {statek-1.2.3 → statek-1.2.4}/statek/chat_history.py +0 -0
  21. {statek-1.2.3 → statek-1.2.4}/statek/chat_style.py +0 -0
  22. {statek-1.2.3 → statek-1.2.4}/statek/dbzero_restricted.py +0 -0
  23. {statek-1.2.3 → statek-1.2.4}/statek/docstring.py +0 -0
  24. {statek-1.2.3 → statek-1.2.4}/statek/document.py +0 -0
  25. {statek-1.2.3 → statek-1.2.4}/statek/exceptions.py +0 -0
  26. {statek-1.2.3 → statek-1.2.4}/statek/executors/chat_log_item.py +0 -0
  27. {statek-1.2.3 → statek-1.2.4}/statek/executors/example.py +0 -0
  28. {statek-1.2.3 → statek-1.2.4}/statek/executors/job.py +0 -0
  29. {statek-1.2.3 → statek-1.2.4}/statek/executors/llm_usage.py +0 -0
  30. {statek-1.2.3 → statek-1.2.4}/statek/executors/post_processor.py +0 -0
  31. {statek-1.2.3 → statek-1.2.4}/statek/executors/utils.py +0 -0
  32. {statek-1.2.3 → statek-1.2.4}/statek/future.py +0 -0
  33. {statek-1.2.3 → statek-1.2.4}/statek/llm_harness.py +0 -0
  34. {statek-1.2.3 → statek-1.2.4}/statek/llm_tools_scope.py +0 -0
  35. {statek-1.2.3 → statek-1.2.4}/statek/locale.py +0 -0
  36. {statek-1.2.3 → statek-1.2.4}/statek/model_name.py +0 -0
  37. {statek-1.2.3 → statek-1.2.4}/statek/model_pricing.py +0 -0
  38. {statek-1.2.3 → statek-1.2.4}/statek/multi_source_settings.py +0 -0
  39. {statek-1.2.3 → statek-1.2.4}/statek/prompt_config.py +0 -0
  40. {statek-1.2.3 → statek-1.2.4}/statek/provider_config.py +0 -0
  41. {statek-1.2.3 → statek-1.2.4}/statek/pyenv.py +0 -0
  42. {statek-1.2.3 → statek-1.2.4}/statek/python_response_format.json +0 -0
  43. {statek-1.2.3 → statek-1.2.4}/statek/python_sandbox.py +0 -0
  44. {statek-1.2.3 → statek-1.2.4}/statek/rpc_integration.py +0 -0
  45. {statek-1.2.3 → statek-1.2.4}/statek/runner.py +0 -0
  46. {statek-1.2.3 → statek-1.2.4}/statek/settings.py +0 -0
  47. {statek-1.2.3 → statek-1.2.4}/statek/shared_context.py +0 -0
  48. {statek-1.2.3 → statek-1.2.4}/statek/statek_client_api.py +0 -0
  49. {statek-1.2.3 → statek-1.2.4}/statek/statek_push_queue.py +0 -0
  50. {statek-1.2.3 → statek-1.2.4}/statek/system.py +0 -0
  51. {statek-1.2.3 → statek-1.2.4}/statek/task.py +0 -0
  52. {statek-1.2.3 → statek-1.2.4}/statek/task_difficulty.py +0 -0
  53. {statek-1.2.3 → statek-1.2.4}/statek/testing.py +0 -0
  54. {statek-1.2.3 → statek-1.2.4}/statek/utils.py +0 -0
  55. {statek-1.2.3 → statek-1.2.4}/statek.egg-info/SOURCES.txt +0 -0
  56. {statek-1.2.3 → statek-1.2.4}/statek.egg-info/dependency_links.txt +0 -0
  57. {statek-1.2.3 → statek-1.2.4}/statek.egg-info/requires.txt +0 -0
  58. {statek-1.2.3 → statek-1.2.4}/statek.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statek
3
- Version: 1.2.3
3
+ Version: 1.2.4
4
4
  Summary: Durable Python workspaces for stateful LLM agents
5
5
  Author: Statek authors
6
6
  License-Expression: Apache-2.0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "statek"
7
- version = "1.2.3"
7
+ version = "1.2.4"
8
8
  description = "Durable Python workspaces for stateful LLM agents"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -144,19 +144,20 @@ def _resolve_reasoning_request(
144
144
  raise ValueError("reasoning level must be an integer from 0 through 100") from exc
145
145
  if not 0 <= level <= 100 or str(level) != aliases[0].strip():
146
146
  raise ValueError("reasoning level must be an integer from 0 through 100")
147
- if level > 0:
148
- if provider_config is None:
149
- raise ValueError("positive reasoning level requires a provider configuration")
147
+ if provider_config is not None:
150
148
  payload = provider_config.find_payload(
151
149
  provider, model_name.model_family, model_name.model, reasoning_level=level)
152
- if payload is None:
150
+ if payload is not None:
151
+ ignored_parameters = provider_config.find_ignored_parameters(
152
+ provider,
153
+ model_name.model_family,
154
+ model_name.model,
155
+ ) or []
156
+ elif level > 0:
153
157
  raise ValueError(
154
158
  "positive reasoning level has no matching provider configuration payload")
155
- ignored_parameters = provider_config.find_ignored_parameters(
156
- provider,
157
- model_name.model_family,
158
- model_name.model,
159
- ) or []
159
+ elif level > 0:
160
+ raise ValueError("positive reasoning level requires a provider configuration")
160
161
  upstream_model = (
161
162
  format_model_for_provider(model_name, provider)
162
163
  if provider is not None else (
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: statek
3
- Version: 1.2.3
3
+ Version: 1.2.4
4
4
  Summary: Durable Python workspaces for stateful LLM agents
5
5
  Author: Statek authors
6
6
  License-Expression: Apache-2.0
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes