More cleanup (#23)

* more cleanup

* more cleanup / rename, add venv instructions to readme

* more name changing
This commit is contained in:
Dex
2024-08-14 12:54:32 -05:00
committed by GitHub
parent c5130ec118
commit 6e5c2cea35
9 changed files with 10 additions and 10 deletions

View File

@@ -26,7 +26,7 @@ RUN --mount=type=cache,target=/root/.cache/pypoetry/cache \
# Copy Python code to the Docker image
COPY humanlayer /code/humanlayer
ENTRYPOINT ["functionlayer"]
ENTRYPOINT ["humanlayer"]
FROM prod as dev

View File

@@ -6,7 +6,7 @@ WORKDIR /app
RUN pip install \
python-dotenv \
controlflow \
functionlayer-ai
humanlayer
COPY . /app

View File

@@ -1,4 +1,4 @@
controlflow
python-dotenv
# install functionlayer in editable mode
# install humanlayer in editable mode
-e ../..

View File

@@ -7,7 +7,7 @@ RUN pip install \
python-dotenv \
crewai \
crewai-tools \
functionlayer-ai
humanlayer
COPY . /app

View File

@@ -1,7 +1,7 @@
#
# an example that runs some langchain math operations
# where the multiply function requires approval
# via functionlayer
# via humanlayer
#
from dotenv import load_dotenv
from langchain.agents import AgentType, initialize_agent

View File

@@ -7,7 +7,7 @@ RUN pip install \
python-dotenv \
langchain \
langchain-openai \
functionlayer-ai
humanlayer
COPY . /app

View File

@@ -32,8 +32,8 @@ docker compose run examples 01-math_example.py
## All Examples
- [00-math_no_approvals.py](00-math_no_approvals.py) - A simple math example that does not use functionlayer
- [00a-math_example_cli.py](00a-math_example_cli.py) - A simple math example that uses functionlayer in CLI (offline) mode to enforce approvals
- [00-math_no_approvals.py](00-math_no_approvals.py) - A simple math example that does not use humanlayer
- [00a-math_example_cli.py](00a-math_example_cli.py) - A simple math example that uses humanlayer in CLI (offline) mode to enforce approvals
- [01-math_example.py](01-math_example.py) - A simple math example that uses functionlayer to gate access to the `multiply` function
- [02-math_with_eval.py](02-math_with_eval.py) - A math example that gates access to the `run_python_code(code: str) -> str` function
- [03-human_as_tool.py](03-human_as_tool.py) - A tou example of using functionlayer's `human_as_tool()` function to create a tool that the angent can use to contact a human for input

View File

@@ -1,5 +1,5 @@
langchain
langchain-openai
python-dotenv
# install functionlayer in editable mode
# install humanlayer in editable mode
-e ../..

View File

@@ -6,7 +6,7 @@ WORKDIR /app
RUN pip install \
python-dotenv \
openai \
functionlayer-ai
humanlayer
COPY . /app