Skip to content
Open
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: 1 addition & 1 deletion .github/workflows/build-and-push-tutorial-agent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ jobs:
fi

# Build command - add --push only if we should push
BUILD_ARGS="--manifest ${{ matrix.agent_path }}/manifest.yaml --registry ${REGISTRY} --tag ${VERSION_TAG} --platforms linux/amd64 --repository-name ${REPOSITORY_NAME}"
BUILD_ARGS="--manifest ${{ matrix.agent_path }}/manifest.yaml --registry ${REGISTRY} --tag ${VERSION_TAG} --platforms linux/amd64,linux/arm64 --repository-name ${REPOSITORY_NAME}"

if [ "$SHOULD_PUSH" = "true" ]; then
agentex agents build $BUILD_ARGS --push
Expand Down
19 changes: 14 additions & 5 deletions examples/tutorials/00_sync/000_hello_acp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,28 @@ ENV UV_HTTP_TIMEOUT=1000


# Copy pyproject.toml and README.md to install dependencies
COPY 000_hello_acp/pyproject.toml /app/000_hello_acp/pyproject.toml
COPY 000_hello_acp/README.md /app/000_hello_acp/README.md
COPY 00_sync/000_hello_acp/pyproject.toml /app/000_hello_acp/pyproject.toml
COPY 00_sync/000_hello_acp/README.md /app/000_hello_acp/README.md

WORKDIR /app/000_hello_acp

# Copy the project code
COPY 000_hello_acp/project /app/000_hello_acp/project
COPY 00_sync/000_hello_acp/project /app/000_hello_acp/project

# Install the required Python packages from pyproject.toml
RUN uv pip install --system .
# Copy the test files
COPY 00_sync/000_hello_acp/tests /app/000_hello_acp/tests

# Copy shared test utilities
COPY test_utils /app/test_utils

# Install the required Python packages with dev dependencies (includes pytest)
RUN uv pip install --system .[dev] pytest-asyncio httpx

# Set environment variables
ENV PYTHONPATH=/app

# Set test environment variables
ENV AGENT_NAME=s000-hello-acp

# Run the agent using uvicorn
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
9 changes: 5 additions & 4 deletions examples/tutorials/00_sync/000_hello_acp/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,25 @@
build:
context:
# Root directory for the build context
root: ../ # Keep this as the default root
root: ../../ # Up to tutorials level to include test_utils

# Paths to include in the Docker build context
# Must include:
# - Your agent's directory (your custom agent code)
# These paths are collected and sent to the Docker daemon for building
include_paths:
- 000_hello_acp
- 00_sync/000_hello_acp
- test_utils

# Path to your agent's Dockerfile
# This defines how your agent's image is built from the context
# Relative to the root directory
dockerfile: 000_hello_acp/Dockerfile
dockerfile: 00_sync/000_hello_acp/Dockerfile

# Path to your agent's .dockerignore
# Filters unnecessary files from the build context
# Helps keep build context small and builds fast
dockerignore: 000_hello_acp/.dockerignore
dockerignore: 00_sync/000_hello_acp/.dockerignore

# Local Development Configuration
# -----------------------------
Expand Down
19 changes: 14 additions & 5 deletions examples/tutorials/00_sync/010_multiturn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,29 @@ RUN uv pip install --system --upgrade pip setuptools wheel
ENV UV_HTTP_TIMEOUT=1000

# Copy pyproject.toml and README.md to install dependencies
COPY 010_multiturn/pyproject.toml /app/010_multiturn/pyproject.toml
COPY 010_multiturn/README.md /app/010_multiturn/README.md
COPY 00_sync/010_multiturn/pyproject.toml /app/010_multiturn/pyproject.toml
COPY 00_sync/010_multiturn/README.md /app/010_multiturn/README.md

WORKDIR /app/010_multiturn

# Copy the project code
COPY 010_multiturn/project /app/010_multiturn/project
COPY 00_sync/010_multiturn/project /app/010_multiturn/project

# Install the required Python packages from pyproject.toml
RUN uv pip install --system .
# Copy the test files
COPY 00_sync/010_multiturn/tests /app/010_multiturn/tests

# Copy shared test utilities
COPY test_utils /app/test_utils

# Install the required Python packages with dev dependencies (includes pytest)
RUN uv pip install --system .[dev] pytest-asyncio httpx

WORKDIR /app/010_multiturn
# Set environment variables
ENV PYTHONPATH=/app

# Set test environment variables
ENV AGENT_NAME=s010-multiturn

# Run the agent using uvicorn
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
9 changes: 5 additions & 4 deletions examples/tutorials/00_sync/010_multiturn/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,25 @@
build:
context:
# Root directory for the build context
root: ../ # Keep this as the default root
root: ../../ # Up to tutorials level to include test_utils

# Paths to include in the Docker build context
# Must include:
# - Your agent's directory (your custom agent code)
# These paths are collected and sent to the Docker daemon for building
include_paths:
- 010_multiturn
- 00_sync/010_multiturn
- test_utils

# Path to your agent's Dockerfile
# This defines how your agent's image is built from the context
# Relative to the root directory
dockerfile: 010_multiturn/Dockerfile
dockerfile: 00_sync/010_multiturn/Dockerfile

# Path to your agent's .dockerignore
# Filters unnecessary files from the build context
# Helps keep build context small and builds fast
dockerignore: 010_multiturn/.dockerignore
dockerignore: 00_sync/010_multiturn/.dockerignore


# Local Development Configuration
Expand Down
19 changes: 14 additions & 5 deletions examples/tutorials/00_sync/020_streaming/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,28 @@ RUN uv pip install --system --upgrade pip setuptools wheel
ENV UV_HTTP_TIMEOUT=1000

# Copy pyproject.toml and README.md to install dependencies
COPY 020_streaming/pyproject.toml /app/020_streaming/pyproject.toml
COPY 020_streaming/README.md /app/020_streaming/README.md
COPY 00_sync/020_streaming/pyproject.toml /app/020_streaming/pyproject.toml
COPY 00_sync/020_streaming/README.md /app/020_streaming/README.md

WORKDIR /app/020_streaming

# Copy the project code
COPY 020_streaming/project /app/020_streaming/project
COPY 00_sync/020_streaming/project /app/020_streaming/project

# Install the required Python packages from pyproject.toml
RUN uv pip install --system .
# Copy the test files
COPY 00_sync/020_streaming/tests /app/020_streaming/tests

# Copy shared test utilities
COPY test_utils /app/test_utils

# Install the required Python packages with dev dependencies (includes pytest)
RUN uv pip install --system .[dev] pytest-asyncio httpx

# Set environment variables
ENV PYTHONPATH=/app

# Set test environment variables
ENV AGENT_NAME=s020-streaming

# Run the agent using uvicorn
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
9 changes: 5 additions & 4 deletions examples/tutorials/00_sync/020_streaming/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,26 @@
build:
context:
# Root directory for the build context
root: ../ # Keep this as the default root
root: ../../ # Up to tutorials level to include test_utils

# Paths to include in the Docker build context
# Must include:
# - Your agent's directory (your custom agent code)
# These paths are collected and sent to the Docker daemon for building

include_paths:
- 020_streaming
- 00_sync/020_streaming
- test_utils

# Path to your agent's Dockerfile
# This defines how your agent's image is built from the context
# Relative to the root directory
dockerfile: 020_streaming/Dockerfile
dockerfile: 00_sync/020_streaming/Dockerfile

# Path to your agent's .dockerignore
# Filters unnecessary files from the build context
# Helps keep build context small and builds fast
dockerignore: 020_streaming/.dockerignore
dockerignore: 00_sync/020_streaming/.dockerignore


# Local Development Configuration
Expand Down
19 changes: 14 additions & 5 deletions examples/tutorials/10_agentic/00_base/000_hello_acp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,29 @@ RUN uv pip install --system --upgrade pip setuptools wheel
ENV UV_HTTP_TIMEOUT=1000

# Copy pyproject.toml and README.md to install dependencies
COPY 000_hello_acp/pyproject.toml /app/000_hello_acp/pyproject.toml
COPY 000_hello_acp/README.md /app/000_hello_acp/README.md
COPY 10_agentic/00_base/000_hello_acp/pyproject.toml /app/000_hello_acp/pyproject.toml
COPY 10_agentic/00_base/000_hello_acp/README.md /app/000_hello_acp/README.md

WORKDIR /app/000_hello_acp

# Copy the project code
COPY 000_hello_acp/project /app/000_hello_acp/project
COPY 10_agentic/00_base/000_hello_acp/project /app/000_hello_acp/project

# Install the required Python packages from pyproject.toml
RUN uv pip install --system .
# Copy the test files
COPY 10_agentic/00_base/000_hello_acp/tests /app/000_hello_acp/tests

# Copy shared test utilities
COPY test_utils /app/test_utils

# Install the required Python packages with dev dependencies (includes pytest)
RUN uv pip install --system .[dev] pytest-asyncio httpx

WORKDIR /app/000_hello_acp
# Set environment variables
ENV PYTHONPATH=/app

# Set test environment variables
ENV AGENT_NAME=ab000-hello-acp

# Run the agent using uvicorn
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,25 @@
build:
context:
# Root directory for the build context
root: ../ # Keep this as the default root
root: ../../../ # Up to tutorials level to include test_utils

# Paths to include in the Docker build context
# Must include:
# - Your agent's directory (your custom agent code)
# These paths are collected and sent to the Docker daemon for building
include_paths:
- 000_hello_acp
- 10_agentic/00_base/000_hello_acp
- test_utils

# Path to your agent's Dockerfile
# This defines how your agent's image is built from the context
# Relative to the root directory
dockerfile: 000_hello_acp/Dockerfile
dockerfile: 10_agentic/00_base/000_hello_acp/Dockerfile

# Path to your agent's .dockerignore
# Filters unnecessary files from the build context
# Helps keep build context small and builds fast
dockerignore: 000_hello_acp/.dockerignore
dockerignore: 10_agentic/00_base/000_hello_acp/.dockerignore


# Local Development Configuration
Expand Down
19 changes: 14 additions & 5 deletions examples/tutorials/10_agentic/00_base/010_multiturn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,29 @@ RUN uv pip install --system --upgrade pip setuptools wheel
ENV UV_HTTP_TIMEOUT=1000

# Copy pyproject.toml and README.md to install dependencies
COPY 010_multiturn/pyproject.toml /app/010_multiturn/pyproject.toml
COPY 010_multiturn/README.md /app/010_multiturn/README.md
COPY 10_agentic/00_base/010_multiturn/pyproject.toml /app/010_multiturn/pyproject.toml
COPY 10_agentic/00_base/010_multiturn/README.md /app/010_multiturn/README.md

WORKDIR /app/010_multiturn

COPY 010_multiturn/project /app/010_multiturn/project
COPY 10_agentic/00_base/010_multiturn/project /app/010_multiturn/project

# Install the required Python packages from pyproject.toml
RUN uv pip install --system .
# Copy the test files
COPY 10_agentic/00_base/010_multiturn/tests /app/010_multiturn/tests

# Copy shared test utilities
COPY test_utils /app/test_utils

# Install the required Python packages with dev dependencies (includes pytest)
RUN uv pip install --system .[dev] pytest-asyncio httpx

WORKDIR /app/010_multiturn

# Set environment variables
ENV PYTHONPATH=/app

# Set test environment variables
ENV AGENT_NAME=ab010-multiturn

# Run the agent using uvicorn
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,25 @@
build:
context:
# Root directory for the build context
root: ../ # Keep this as the default root
root: ../../../ # Up to tutorials level to include test_utils

# Paths to include in the Docker build context
# Must include:
# - Your agent's directory (your custom agent code)
# These paths are collected and sent to the Docker daemon for building
include_paths:
- 010_multiturn
- 10_agentic/00_base/010_multiturn
- test_utils

# Path to your agent's Dockerfile
# This defines how your agent's image is built from the context
# Relative to the root directory
dockerfile: 010_multiturn/Dockerfile
dockerfile: 10_agentic/00_base/010_multiturn/Dockerfile

# Path to your agent's .dockerignore
# Filters unnecessary files from the build context
# Helps keep build context small and builds fast
dockerignore: 010_multiturn/.dockerignore
dockerignore: 10_agentic/00_base/010_multiturn/.dockerignore


# Local Development Configuration
Expand Down
20 changes: 15 additions & 5 deletions examples/tutorials/10_agentic/00_base/020_streaming/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,28 @@ RUN uv pip install --system --upgrade pip setuptools wheel
ENV UV_HTTP_TIMEOUT=1000

# Copy pyproject.toml and README.md to install dependencies
COPY 020_streaming/pyproject.toml /app/020_streaming/pyproject.toml
COPY 020_streaming/README.md /app/020_streaming/README.md
COPY 10_agentic/00_base/020_streaming/pyproject.toml /app/020_streaming/pyproject.toml
COPY 10_agentic/00_base/020_streaming/README.md /app/020_streaming/README.md

WORKDIR /app/020_streaming

# Copy the project code
COPY 020_streaming/project /app/020_streaming/project
COPY 10_agentic/00_base/020_streaming/project /app/020_streaming/project

# Copy the test files
COPY 10_agentic/00_base/020_streaming/tests /app/020_streaming/tests

# Copy shared test utilities
COPY test_utils /app/test_utils

# Install the required Python packages with dev dependencies (includes pytest)
RUN uv pip install --system .[dev] pytest-asyncio httpx

# Install the required Python packages from pyproject.toml
RUN uv pip install --system .
# Set environment variables
ENV PYTHONPATH=/app

# Set test environment variables
ENV AGENT_NAME=ab020-streaming

# Run the agent using uvicorn
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,25 @@
build:
context:
# Root directory for the build context
root: ../ # Keep this as the default root
root: ../../../ # Up to tutorials level to include test_utils

# Paths to include in the Docker build context
# Must include:
# - Your agent's directory (your custom agent code)
# These paths are collected and sent to the Docker daemon for building
include_paths:
- 020_streaming
- 10_agentic/00_base/020_streaming
- test_utils

# Path to your agent's Dockerfile
# This defines how your agent's image is built from the context
# Relative to the root directory
dockerfile: 020_streaming/Dockerfile
dockerfile: 10_agentic/00_base/020_streaming/Dockerfile

# Path to your agent's .dockerignore
# Filters unnecessary files from the build context
# Helps keep build context small and builds fast
dockerignore: 020_streaming/.dockerignore
dockerignore: 10_agentic/00_base/020_streaming/.dockerignore


# Local Development Configuration
Expand Down
Loading