summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk/python/examples/basic_usage.py
blob: 0d834995935c46f9bc739255313cd49881c45cf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Basic usage example (placeholder)
# After generating the client, this should reflect actual client entrypoints.

try:
    from opencode_ai import client  # type: ignore
except Exception:  # pragma: no cover
    client = None


def main() -> None:
    if client is None:
        print("Client not generated yet. Run the generator first:")
        print("    uv run python packages/sdk/python/scripts/generate.py")
        return
    print("Replace this with real example code once the client is generated.")


if __name__ == "__main__":
    main()