Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/content/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ To install the Mirascope v2 alpha, use the following command:
<TabbedSection>
<Tab value="uv">
```bash
uv add "mirascope[all]==2.0.0-alpha.5"
uv add "mirascope[all]==2.0.0-alpha.6"
```
</Tab>
<Tab value="pip">
```bash
pip install "mirascope[all]==2.0.0-alpha.5"
pip install "mirascope[all]==2.0.0-alpha.6"
```
</Tab>
</TabbedSection>
Expand Down
34 changes: 34 additions & 0 deletions python/examples/mcp_with_thinking.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import asyncio

from mirascope import llm


async def main():
async with llm.mcp.streamable_http_client(
"https://gofastmcp.com/mcp"
) as mcp_client:
tools = await mcp_client.list_tools()

@llm.call(
"google/gemini-3-flash-preview",
thinking={"level": "medium", "include_summaries": True},
tools=tools,
)
async def learn_mcp():
return "Use the tools to learn about FastMCP, and write a report on the library."

response = await learn_mcp.stream()
while True: # Loop for tool calls
async for chunk in response.pretty_stream():
print(chunk, flush=True, end="")
print()

if response.tool_calls:
tool_output = await response.execute_tools()
response = await response.resume(tool_output)
else:
break


if __name__ == "__main__":
asyncio.run(main())
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "mirascope"
version = "2.0.0-alpha.5"
version = "2.0.0-alpha.6"
description = "LLM abstractions that aren't obstructions"
readme = "README.md"
license = { file = "LICENSE" }
Expand Down
4 changes: 2 additions & 2 deletions python/tests/ops/_internal/test_closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ def closure_inside_decorator_fn() -> str:
assert closure.dependencies == snapshot(
{
"mirascope": {
"version": "2.0.0a5",
"version": "2.0.0a6",
"extras": ["all"],
}
}
Expand Down Expand Up @@ -793,7 +793,7 @@ def closure_inside_imported_decorator_fn() -> str:
assert closure.dependencies == snapshot(
{
"mirascope": {
"version": "2.0.0a5",
"version": "2.0.0a6",
"extras": ["all"],
}
}
Expand Down
Loading