Skip to content

Commit a9b0671

Browse files
authored
Merge pull request #2 from RadCod3/feat/langchain-py
Feat/langchain py
2 parents c520514 + e96b10c commit a9b0671

File tree

4 files changed

+23
-26
lines changed

4 files changed

+23
-26
lines changed

langchain-interpreter/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1: Builder
2-
FROM python:3.11-slim-bookworm AS builder
2+
FROM python:3.13-alpine AS builder
33

44
# Install uv for fast dependency management
55
COPY --from=ghcr.io/astral-sh/uv:0.10.0 /uv /uvx /bin/
@@ -26,7 +26,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2626
uv sync --locked --no-editable
2727

2828
# Stage 2: Final image
29-
FROM python:3.11-slim-bookworm
29+
FROM python:3.13-alpine
3030

3131
# Set working directory
3232
WORKDIR /app

langchain-interpreter/README.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,16 @@ A LangChain-based reference implementation of an interpreter for [Agent-Flavored
1616

1717
- [Python](https://www.python.org/) 3.12 or later.
1818
- [uv](https://docs.astral.sh/uv/) for dependency management.
19-
20-
## Installation
21-
22-
### Using pipx (Recommended)
23-
24-
To run `afm` as a standalone command-line tool:
25-
26-
```bash
27-
pipx install afm-cli
28-
```
29-
30-
### Using pip
31-
32-
```bash
33-
pip install afm-cli
34-
```
19+
- [Docker](https://www.docker.com/) (optional, for running via containers).
3520

3621
## Quick Start
3722

3823
```bash
3924
# Set your API Key
4025
export OPENAI_API_KEY="your-api-key-here"
4126

42-
# Run with an AFM file
43-
afm path/to/agent.afm.md
27+
# Run with an AFM file using uv
28+
uv run afm path/to/agent.afm.md
4429
```
4530

4631
## Configuration

langchain-interpreter/pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,9 @@ dev = [
4949
"ty>=0.0.15",
5050
"asgi-lifespan>=2.1.0",
5151
]
52+
53+
[tool.uv]
54+
constraint-dependencies = [
55+
"wheel>=0.46.0",
56+
"jaraco-context>=6.0.0",
57+
]

langchain-interpreter/uv.lock

Lines changed: 12 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)