mirror of
https://github.com/humanlayer/humanlayer.git
synced 2025-08-20 19:01:22 +03:00
More cleanup (#23)
* more cleanup * more cleanup / rename, add venv instructions to readme * more name changing
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ WORKDIR /app
|
||||
RUN pip install \
|
||||
python-dotenv \
|
||||
controlflow \
|
||||
functionlayer-ai
|
||||
humanlayer
|
||||
|
||||
COPY . /app
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
controlflow
|
||||
python-dotenv
|
||||
# install functionlayer in editable mode
|
||||
# install humanlayer in editable mode
|
||||
-e ../..
|
||||
|
||||
@@ -7,7 +7,7 @@ RUN pip install \
|
||||
python-dotenv \
|
||||
crewai \
|
||||
crewai-tools \
|
||||
functionlayer-ai
|
||||
humanlayer
|
||||
|
||||
COPY . /app
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -7,7 +7,7 @@ RUN pip install \
|
||||
python-dotenv \
|
||||
langchain \
|
||||
langchain-openai \
|
||||
functionlayer-ai
|
||||
humanlayer
|
||||
|
||||
COPY . /app
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
langchain
|
||||
langchain-openai
|
||||
python-dotenv
|
||||
# install functionlayer in editable mode
|
||||
# install humanlayer in editable mode
|
||||
-e ../..
|
||||
|
||||
@@ -6,7 +6,7 @@ WORKDIR /app
|
||||
RUN pip install \
|
||||
python-dotenv \
|
||||
openai \
|
||||
functionlayer-ai
|
||||
humanlayer
|
||||
|
||||
COPY . /app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user