mycode-sdk 0.11.0__tar.gz → 0.11.2__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 (23) hide show
  1. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/PKG-INFO +1 -1
  2. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/pyproject.toml +1 -1
  3. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/agent.py +4 -0
  4. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/models_catalog.json +367 -225
  5. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/providers/__init__.py +9 -1
  6. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/providers/anthropic_like.py +11 -5
  7. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/providers/gemini.py +1 -1
  8. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/providers/openai_chat.py +25 -2
  9. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/.gitignore +0 -0
  10. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/LICENSE +0 -0
  11. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/README.md +0 -0
  12. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/__init__.py +0 -0
  13. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/attachments.py +0 -0
  14. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/compact.py +0 -0
  15. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/hooks.py +0 -0
  16. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/messages.py +0 -0
  17. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/models.py +0 -0
  18. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/providers/base.py +0 -0
  19. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/providers/openai_responses.py +0 -0
  20. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/py.typed +0 -0
  21. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/session.py +0 -0
  22. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/tools.py +0 -0
  23. {mycode_sdk-0.11.0 → mycode_sdk-0.11.2}/src/mycode/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mycode-sdk
3
- Version: 0.11.0
3
+ Version: 0.11.2
4
4
  Summary: Lightweight Python SDK for building AI agents.
5
5
  Project-URL: Homepage, https://github.com/legibet/mycode
6
6
  Project-URL: Repository, https://github.com/legibet/mycode
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "mycode-sdk"
7
- version = "0.11.0"
7
+ version = "0.11.2"
8
8
  description = "Lightweight Python SDK for building AI agents."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12"
@@ -87,6 +87,7 @@ class Agent:
87
87
  compact_threshold: float | None = None,
88
88
  reasoning_effort: str | None = None,
89
89
  supports_reasoning: bool | None = None,
90
+ supports_reasoning_effort: bool = False,
90
91
  supports_image_input: bool | None = None,
91
92
  supports_pdf_input: bool | None = None,
92
93
  system: str = "",
@@ -127,6 +128,9 @@ class Agent:
127
128
  self.temperature = float(temperature)
128
129
  self.compact_threshold = compact_threshold if compact_threshold is not None else DEFAULT_COMPACT_THRESHOLD
129
130
  self.reasoning_effort = reasoning_effort
131
+ # Whether the endpoint accepts the effort knob. Comes from provider
132
+ # config, not the catalog, so it stays out of refresh_capabilities.
133
+ self.supports_reasoning_effort = supports_reasoning_effort
130
134
 
131
135
  self.system = system
132
136
  self.hooks = hooks or Hooks()