Skip to content

Commit 0f09213

Browse files
authored
Merge pull request #6 from miruml/release-please--branches--main--changes--next
release: 0.2.0
2 parents b5df75d + c81c843 commit 0f09213

20 files changed

+131
-80
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0"
2+
".": "0.2.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 4
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-agent-af21bada443337b0476b9c56f6c078c77a252474878f1c33c1d2fb1ded036000.yml
3-
openapi_spec_hash: 7b81990375e10d6e3e696f58eddc4afc
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-agent-d2a734ee7df8f6d5557e579a712316d224331ac3f4ca56f5c737f245e4e7d5b9.yml
3+
openapi_spec_hash: 3b21ce013e0686deddeb65da29fefdd8
44
config_hash: a36330a3b27b8375298d0677e6ac4aa9

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Changelog
22

3+
## 0.2.0 (2025-09-21)
4+
5+
Full Changelog: [v0.1.0...v0.2.0](https://github.com/miruml/python-agent-sdk/compare/v0.1.0...v0.2.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([bdf6b7b](https://github.com/miruml/python-agent-sdk/commit/bdf6b7ba4e4ba8e8223f44a57c7abc7218a212a3))
10+
11+
12+
### Chores
13+
14+
* do not install brew dependencies in ./scripts/bootstrap by default ([c2827c1](https://github.com/miruml/python-agent-sdk/commit/c2827c13c5dfb741e0e867f0be50f65f36f1b28a))
15+
* **internal:** update pydantic dependency ([bba9fec](https://github.com/miruml/python-agent-sdk/commit/bba9fec5673b0114012905c80dc80f9591bf66c8))
16+
* **types:** change optional parameter type from NotGiven to Omit ([4b8814d](https://github.com/miruml/python-agent-sdk/commit/4b8814d6ff030d908dfe217ad1b5ceee502ad76e))
17+
318
## 0.1.0 (2025-09-07)
419

520
Full Changelog: [v0.0.3...v0.1.0](https://github.com/miruml/python-agent-sdk/compare/v0.0.3...v0.1.0)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "miru_agent_sdk"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
description = "The official Python library for the miru API"
55
dynamic = ["readme"]
66
license = "MIT"

requirements-dev.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ pluggy==1.5.0
8888
propcache==0.3.1
8989
# via aiohttp
9090
# via yarl
91-
pydantic==2.10.3
91+
pydantic==2.11.9
9292
# via miru-agent-sdk
93-
pydantic-core==2.27.1
93+
pydantic-core==2.33.2
9494
# via pydantic
9595
pygments==2.18.0
9696
# via rich
@@ -126,6 +126,9 @@ typing-extensions==4.12.2
126126
# via pydantic
127127
# via pydantic-core
128128
# via pyright
129+
# via typing-inspection
130+
typing-inspection==0.4.1
131+
# via pydantic
129132
virtualenv==20.24.5
130133
# via nox
131134
yarl==1.20.0

requirements.lock

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ multidict==6.4.4
5555
propcache==0.3.1
5656
# via aiohttp
5757
# via yarl
58-
pydantic==2.10.3
58+
pydantic==2.11.9
5959
# via miru-agent-sdk
60-
pydantic-core==2.27.1
60+
pydantic-core==2.33.2
6161
# via pydantic
6262
sniffio==1.3.0
6363
# via anyio
@@ -68,5 +68,8 @@ typing-extensions==4.12.2
6868
# via multidict
6969
# via pydantic
7070
# via pydantic-core
71+
# via typing-inspection
72+
typing-inspection==0.4.1
73+
# via pydantic
7174
yarl==1.20.0
7275
# via aiohttp

scripts/bootstrap

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,18 @@ set -e
44

55
cd "$(dirname "$0")/.."
66

7-
if ! command -v rye >/dev/null 2>&1 && [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ]; then
7+
if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "$SKIP_BREW" != "1" ] && [ -t 0 ]; then
88
brew bundle check >/dev/null 2>&1 || {
9-
echo "==> Installing Homebrew dependencies…"
10-
brew bundle
9+
echo -n "==> Install Homebrew dependencies? (y/N): "
10+
read -r response
11+
case "$response" in
12+
[yY][eE][sS]|[yY])
13+
brew bundle
14+
;;
15+
*)
16+
;;
17+
esac
18+
echo
1119
}
1220
fi
1321

src/miru_agent_sdk/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import typing as _t
44

55
from . import types
6-
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
6+
from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
77
from ._utils import file_from_path
88
from ._client import Miru, Client, Stream, Timeout, AsyncMiru, Transport, AsyncClient, AsyncStream, RequestOptions
99
from ._models import BaseModel
@@ -38,7 +38,9 @@
3838
"ProxiesTypes",
3939
"NotGiven",
4040
"NOT_GIVEN",
41+
"not_given",
4142
"Omit",
43+
"omit",
4244
"MiruError",
4345
"APIError",
4446
"APIStatusError",

src/miru_agent_sdk/_base_client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
from ._qs import Querystring
4343
from ._files import to_httpx_files, async_to_httpx_files
4444
from ._types import (
45-
NOT_GIVEN,
4645
Body,
4746
Omit,
4847
Query,
@@ -57,6 +56,7 @@
5756
RequestOptions,
5857
HttpxRequestFiles,
5958
ModelBuilderProtocol,
59+
not_given,
6060
)
6161
from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
6262
from ._compat import PYDANTIC_V1, model_copy, model_dump
@@ -145,9 +145,9 @@ def __init__(
145145
def __init__(
146146
self,
147147
*,
148-
url: URL | NotGiven = NOT_GIVEN,
149-
json: Body | NotGiven = NOT_GIVEN,
150-
params: Query | NotGiven = NOT_GIVEN,
148+
url: URL | NotGiven = not_given,
149+
json: Body | NotGiven = not_given,
150+
params: Query | NotGiven = not_given,
151151
) -> None:
152152
self.url = url
153153
self.json = json
@@ -595,7 +595,7 @@ def _maybe_override_cast_to(self, cast_to: type[ResponseT], options: FinalReques
595595
# we internally support defining a temporary header to override the
596596
# default `cast_to` type for use with `.with_raw_response` and `.with_streaming_response`
597597
# see _response.py for implementation details
598-
override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, NOT_GIVEN)
598+
override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, not_given)
599599
if is_given(override_cast_to):
600600
options.headers = headers
601601
return cast(Type[ResponseT], override_cast_to)
@@ -826,7 +826,7 @@ def __init__(
826826
socket_path: str,
827827
base_url: str | URL,
828828
max_retries: int = DEFAULT_MAX_RETRIES,
829-
timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
829+
timeout: float | Timeout | None | NotGiven = not_given,
830830
http_client: httpx.Client | None = None,
831831
custom_headers: Mapping[str, str] | None = None,
832832
custom_query: Mapping[str, object] | None = None,
@@ -1359,7 +1359,7 @@ def __init__(
13591359
base_url: str | URL,
13601360
_strict_response_validation: bool,
13611361
max_retries: int = DEFAULT_MAX_RETRIES,
1362-
timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
1362+
timeout: float | Timeout | None | NotGiven = not_given,
13631363
http_client: httpx.AsyncClient | None = None,
13641364
custom_headers: Mapping[str, str] | None = None,
13651365
custom_query: Mapping[str, object] | None = None,
@@ -1822,8 +1822,8 @@ def make_request_options(
18221822
extra_query: Query | None = None,
18231823
extra_body: Body | None = None,
18241824
idempotency_key: str | None = None,
1825-
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1826-
post_parser: PostParser | NotGiven = NOT_GIVEN,
1825+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
1826+
post_parser: PostParser | NotGiven = not_given,
18271827
) -> RequestOptions:
18281828
"""Create a dict of type RequestOptions without keys of NotGiven values."""
18291829
options: RequestOptions = {}

src/miru_agent_sdk/_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
from __future__ import annotations
44

55
import os
6-
from typing import Any, Union, Mapping
6+
from typing import Any, Mapping
77
from typing_extensions import Self, override
88

99
import httpx
1010

1111
from . import _exceptions
1212
from ._qs import Querystring
1313
from ._types import (
14-
NOT_GIVEN,
1514
Omit,
1615
Timeout,
1716
NotGiven,
1817
Transport,
1918
ProxiesTypes,
2019
RequestOptions,
20+
not_given,
2121
)
2222
from ._utils import is_given, get_async_library
2323
from ._version import __version__
@@ -47,7 +47,7 @@ def __init__(
4747
*,
4848
socket_path: str | None = None,
4949
base_url: str | httpx.URL | None = None,
50-
timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
50+
timeout: float | Timeout | None | NotGiven = not_given,
5151
max_retries: int = DEFAULT_MAX_RETRIES,
5252
default_headers: Mapping[str, str] | None = None,
5353
default_query: Mapping[str, object] | None = None,
@@ -114,9 +114,9 @@ def copy(
114114
*,
115115
socket_path: str | None = None,
116116
base_url: str | httpx.URL | None = None,
117-
timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
117+
timeout: float | Timeout | None | NotGiven = not_given,
118118
http_client: httpx.Client | None = None,
119-
max_retries: int | NotGiven = NOT_GIVEN,
119+
max_retries: int | NotGiven = not_given,
120120
default_headers: Mapping[str, str] | None = None,
121121
set_default_headers: Mapping[str, str] | None = None,
122122
default_query: Mapping[str, object] | None = None,
@@ -208,7 +208,7 @@ def __init__(
208208
*,
209209
socket_path: str | None = None,
210210
base_url: str | httpx.URL | None = None,
211-
timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
211+
timeout: float | Timeout | None | NotGiven = not_given,
212212
max_retries: int = DEFAULT_MAX_RETRIES,
213213
default_headers: Mapping[str, str] | None = None,
214214
default_query: Mapping[str, object] | None = None,
@@ -275,9 +275,9 @@ def copy(
275275
*,
276276
socket_path: str | None = None,
277277
base_url: str | httpx.URL | None = None,
278-
timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
278+
timeout: float | Timeout | None | NotGiven = not_given,
279279
http_client: httpx.AsyncClient | None = None,
280-
max_retries: int | NotGiven = NOT_GIVEN,
280+
max_retries: int | NotGiven = not_given,
281281
default_headers: Mapping[str, str] | None = None,
282282
set_default_headers: Mapping[str, str] | None = None,
283283
default_query: Mapping[str, object] | None = None,

0 commit comments

Comments
 (0)