Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
task: 'tests'
- name: 'Run Ruff'
task: 'lint'
- name: 'Build docs'
task: 'build-docs'
name: ${{ matrix.variant.name }}
runs-on: ubuntu-latest
steps:
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Deploy Documentation
on:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install Task
uses: arduino/setup-task@v2
- name: Deploy Documentation
run: task deploy-docs
3 changes: 3 additions & 0 deletions docs/reference/agents.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Agents module

::: redpanda.agents
3 changes: 0 additions & 3 deletions docs/reference/index.md

This file was deleted.

3 changes: 3 additions & 0 deletions docs/reference/runtime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Runtime module

::: redpanda.runtime
5 changes: 3 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ plugins:
- mkdocstrings:
handlers:
python:
paths: ["src/agents"]
paths:
- "src/redpanda"
options:
docstring_style: google
# Shows links to other members in signatures
Expand Down Expand Up @@ -69,4 +70,4 @@ validation:
anchors: warn

watch:
- "src/agents"
- "src/redpanda"
8 changes: 8 additions & 0 deletions src/redpanda/runtime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@


async def serve(agent: Agent) -> None:
"""
Serve an agent as a Redpanda Connect processor plugin.

This method runs for the entire lifetime of the server.

Args:
agent: The agent to serve.
"""
addr = os.getenv("REDPANDA_CONNECT_AGENT_RUNTIME_MCP_SERVER")
if addr:
agent.mcp.append(SSEMCPEndpoint(addr))
Expand Down