Usage¶
ChatGPT/Codex Login¶
For notebooks and Python scripts, run the browser login once:
1 | |
or start the same flow from Jupyter:
1 2 3 | |
GeoAgent saves the refresh token in your user config directory, exports
OPENAI_CODEX_ACCESS_TOKEN for the current process, and refreshes the stored
login automatically when provider="openai-codex" is used later.
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
For token-by-token output, use the async streaming sibling:
1 2 3 4 5 6 7 8 | |
Use fast=True with GeoAgent(..., fast=True) or for_leafmap(m, fast=True) for a smaller prompt and fewer tools.
Access the underlying Strands agent as agent.strands_agent.