Skip to content

Commit bf44337

Browse files
authored
Merge pull request #27 from bruce-gene/fix-import-in-docs
update method name and import paths
2 parents 74485da + 4f478c1 commit bf44337

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/for-tool-callers/for-tool-callers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ The `utcp` package provides a ready-to-use client for discovering and calling to
2323

2424
```python
2525
import asyncio
26-
from utcp import UtcpClient
27-
from utcp.models import Provider
26+
from utcp.client.utcp_client import UtcpClient
27+
from utcp.shared.provider import HttpProvider
2828

2929
async def main():
3030
# Create a UTCP client
@@ -163,7 +163,7 @@ When you register a provider with the `UtcpClient`, you are registering a **manu
163163
The UTCP client supports various authentication methods through provider configuration:
164164

165165
```python
166-
from utcp import UtcpClient
166+
from utcp.client.utcp_client import UtcpClient
167167
from utcp.shared.provider import HttpProvider
168168

169169
client = UtcpClient()
@@ -207,7 +207,7 @@ For more complex applications, you can configure the `UtcpClient` using a config
207207
You can initialize the client by passing configuration parameters directly:
208208

209209
```python
210-
from utcp import UtcpClient
210+
from utcp.client.utcp_client import UtcpClient
211211

212212
# Initialize client with configuration parameters
213213
client = await UtcpClient.create(

docs/for-tool-callers/tool-repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class JsonFileToolRepository(ToolRepository):
7373
You can then instruct the `UtcpClient` to use your custom repository during instantiation:
7474

7575
```python
76-
from utcp.client import UtcpClient
76+
from utcp.client.utcp_client import UtcpClient
7777

7878
# Instantiate your custom repository
7979
json_repo = JsonFileToolRepository("my_tools.json")

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ async def main():
108108
)
109109

110110
# Register tools from the manual provider
111-
tools = await client.register_manual_provider(manual_provider)
111+
tools = await client.register_tool_provider(manual_provider)
112112
print(f"Registered {len(tools)} tools from {manual_provider.name}")
113113

114114
# Call a tool by its namespaced name: {provider_name}.{tool_name}

0 commit comments

Comments
 (0)