Skip to content

Notebooks

Interactive notebooks you can run in Colab or locally. Each covers a different aspect of the SDK.

Connect, create sessions, send prompts, stream responses, upload files, and clean up.

Open In Colab

Covers: SecGemini client, session.prompt(), session.messages.stream(), session.files.upload(), session management.

Use the SDK alongside BYOT with baseline tools and a custom FastMCP server you define inline.

Open In Colab

Covers: FastMCP custom tools, ByotService, create_baseline_mcp(), combining baseline + custom tools, streaming results.

General overview demo covering the SDK, TUI, and BYOT client.

Open In Colab

Covers: Client setup, sessions, skills listing, prompting, streaming, BYOT overview.

Create, upload, and use skills to guide the agent’s behavior.

Open In Colab

Covers: client.skills.upload(), client.skills.list_uploaded(), using skills in sessions.

Solve CyberGym challenges using specific MCPs.

Open In Colab

Covers: Custom MCP configuration, passing metadata to sessions, solving challenges.

You can also run the notebooks locally:

Terminal window
pip install sec-gemini jupyter
jupyter notebook sdk/python/code_examples/