basic_usage.py 549 B

12345678910111213141516171819
  1. # Basic usage example (placeholder)
  2. # After generating the client, this should reflect actual client entrypoints.
  3. try:
  4. from opencode_ai import client # type: ignore
  5. except Exception: # pragma: no cover
  6. client = None
  7. def main() -> None:
  8. if client is None:
  9. print("Client not generated yet. Run the generator first:")
  10. print(" uv run python packages/sdk/python/scripts/generate.py")
  11. return
  12. print("Replace this with real example code once the client is generated.")
  13. if __name__ == "__main__":
  14. main()