Skip to content

Commit 29b7d4f

Browse files
CopilotBlackDadd77
andcommitted
Add missing client script entries to pyproject.toml
Co-authored-by: BlackDadd77 <179016248+BlackDadd77@users.noreply.github.com>
1 parent 7145352 commit 29b7d4f

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

examples/snippets/clients/pagination_client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,10 @@ async def list_all_resources() -> None:
3737
print(f"Total resources: {len(all_resources)}")
3838

3939

40-
if __name__ == "__main__":
40+
def main():
41+
"""Entry point for the pagination client."""
4142
asyncio.run(list_all_resources())
43+
44+
45+
if __name__ == "__main__":
46+
main()

examples/snippets/clients/parsing_tool_results.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,10 @@ async def main():
5656
await parse_tool_results()
5757

5858

59-
if __name__ == "__main__":
59+
def run():
60+
"""Entry point for the parsing tool results client."""
6061
asyncio.run(main())
62+
63+
64+
if __name__ == "__main__":
65+
run()

examples/snippets/clients/streamable_basic.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@ async def main():
2525
print(f"Available tools: {[tool.name for tool in tools.tools]}")
2626

2727

28-
if __name__ == "__main__":
28+
def run():
29+
"""Entry point for the streamable basic client."""
2930
asyncio.run(main())
31+
32+
33+
if __name__ == "__main__":
34+
run()

examples/snippets/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,6 @@ completion-client = "clients.completion_client:main"
2121
direct-execution-server = "servers.direct_execution:main"
2222
display-utilities-client = "clients.display_utilities:main"
2323
oauth-client = "clients.oauth_client:run"
24+
pagination-client = "clients.pagination_client:main"
25+
parsing-tool-results-client = "clients.parsing_tool_results:run"
26+
streamable-basic-client = "clients.streamable_basic:run"

0 commit comments

Comments
 (0)