mirror of
https://github.com/humanlayer/humanlayer.git
synced 2025-08-20 19:01:22 +03:00
release: v0.7.8
This commit is contained in:
10
Makefile
10
Makefile
@@ -175,7 +175,7 @@ update-examples-versions:
|
||||
|
||||
.PHONY: update-examples-ts-versions
|
||||
update-examples-ts-versions:
|
||||
find examples/*/package.json -type f -exec sed -i '' 's/"humanlayer": ".*"/"humanlayer": "$(VERSION)"/g' {} +
|
||||
find examples/*/package.json -type f -exec sed -i '' 's/@humanlayer\/sdk": ".*"/@humanlayer\/sdk": "$(VERSION)"/g' {} +
|
||||
|
||||
.PHONY: update-examples-tokens
|
||||
HUMANLAYER_API_KEY?=
|
||||
@@ -280,7 +280,7 @@ release-plan: _release-plan-versions _release-branch-check _staging-env-check
|
||||
@echo
|
||||
@echo "Release steps:"
|
||||
@echo "1. Publish TypeScript alpha:"
|
||||
@echo " - cd humanlayer-ts && npm publish --tag alpha"
|
||||
@echo " - cd humanlayer-ts && npm publish --tag alpha --access public"
|
||||
@echo " - make update-examples-ts-versions VERSION=$(current-ts-version)"
|
||||
@echo " - make smoke-test-examples-ts"
|
||||
@echo
|
||||
@@ -296,7 +296,7 @@ release-plan: _release-plan-versions _release-branch-check _staging-env-check
|
||||
@echo
|
||||
@echo "4. Publish TypeScript:"
|
||||
@echo " - sed -i '' 's/$(current-ts-version)/$(new-version)/' humanlayer-ts/package.json"
|
||||
@echo " - cd humanlayer-ts && npm publish"
|
||||
@echo " - cd humanlayer-ts && npm publish --access public"
|
||||
@echo " - make update-examples-ts-versions VERSION=$(new-version)"
|
||||
@echo " - make smoke-test-examples-ts"
|
||||
@echo
|
||||
@@ -326,7 +326,7 @@ release-alpha: _check-uv-publish-token release-plan
|
||||
: confirming release plan
|
||||
@read -p "Press Enter to continue..."
|
||||
@echo "Releasing..."
|
||||
cd humanlayer-ts && npm run build && npm publish --tag alpha
|
||||
cd humanlayer-ts && npm run build && npm publish --tag alpha --access public
|
||||
:
|
||||
: waiting for ts publish to complete
|
||||
:
|
||||
@@ -356,7 +356,7 @@ release-and-test-prod: _release-plan-versions _release-branch-check _production-
|
||||
sed -i '' 's/$(current-ts-version)/$(new-version)/' humanlayer-ts/package.json
|
||||
cat humanlayer-ts/package.json | grep version
|
||||
@read -p "Press Enter to continue..."
|
||||
cd humanlayer-ts && npm run build && npm publish
|
||||
cd humanlayer-ts && npm run build && npm publish --access public
|
||||
@$(MAKE) update-examples-ts-versions VERSION=$(new-version)
|
||||
:
|
||||
: waiting for ts publish to complete
|
||||
|
||||
@@ -146,7 +146,7 @@ kwargs={"x": 2, "y": 5},
|
||||
````
|
||||
|
||||
```typescript example.ts
|
||||
import { humanlayer } from "humanlayer-sdk";
|
||||
import { humanlayer } from "@humanlayer/sdk";
|
||||
|
||||
const botToken = "...YOUR BOT TOKEN";
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ Classifications enable agents to collect structured data labels from humans. Com
|
||||
## Basic Example
|
||||
|
||||
```typescript
|
||||
import { humanlayer, ResponseOption } from "humanlayer-sdk";
|
||||
import { humanlayer, ResponseOption } from "@humanlayer/sdk";
|
||||
|
||||
// Initialize with descriptive run ID
|
||||
const hl = humanlayer({ runId: "email-classifier" });
|
||||
|
||||
@@ -11,7 +11,7 @@ The [Vercel AI SDK](https://sdk.vercel.ai/docs) enables streaming AI responses i
|
||||
## Installation
|
||||
|
||||
```bash
|
||||
npm install humanlayer-sdk ai
|
||||
npm install @humanlayer/sdk ai
|
||||
```
|
||||
|
||||
## Basic Example
|
||||
@@ -78,7 +78,7 @@ const { text, steps } = await generateText({
|
||||
### API Route (app/api/chat/route.ts)
|
||||
|
||||
```typescript
|
||||
import { humanlayer } from "humanlayer-sdk";
|
||||
import { humanlayer } from "@humanlayer/sdk";
|
||||
import { StreamingTextResponse, LangChainStream } from "ai";
|
||||
import { ChatOpenAI } from "langchain/chat_models/openai";
|
||||
import { AIMessage, HumanMessage, SystemMessage } from "langchain/schema";
|
||||
|
||||
@@ -11,7 +11,7 @@ HumanLayer has [a dedicated client for TypeScript](https://github.com/humanlayer
|
||||
Install the HumanLayer TypeScript SDK:
|
||||
|
||||
```bash
|
||||
npm install humanlayer-sdk
|
||||
npm install @humanlayer/sdk
|
||||
```
|
||||
|
||||
## Basic Example
|
||||
@@ -32,7 +32,7 @@ export HUMANLAYER_API_KEY=your-humanlayer-key
|
||||
This basic example shows how to use HumanLayer as a tool in an OpenAI chat completion loop.
|
||||
|
||||
```typescript
|
||||
import { humanlayer } from "humanlayer-sdk";
|
||||
import { humanlayer } from "@humanlayer/sdk";
|
||||
import OpenAI from "openai";
|
||||
|
||||
// Initialize clients
|
||||
@@ -93,7 +93,11 @@ if (message.tool_calls) {
|
||||
Configure how approvals are requested:
|
||||
|
||||
```typescript
|
||||
import { humanlayer, ContactChannel, SlackContactChannel } from "humanlayer-sdk";
|
||||
import {
|
||||
humanlayer,
|
||||
ContactChannel,
|
||||
SlackContactChannel,
|
||||
} from "@humanlayer/sdk";
|
||||
|
||||
const hl = humanlayer({
|
||||
runId: "quickstart",
|
||||
|
||||
@@ -33,7 +33,7 @@ grpcio==1.70.0
|
||||
h11==0.14.0
|
||||
httpcore==1.0.7
|
||||
httpx==0.28.1
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
idna==3.10
|
||||
importlib_metadata==8.5.0
|
||||
installer==0.7.0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
controlflow
|
||||
# install humanlayer
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
# or if you want an editable version
|
||||
# -e ../../
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
crewai
|
||||
crewai-tools
|
||||
# install humanlayer
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
# or if you want an editable version
|
||||
# -e ../../
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
crewai
|
||||
crewai-tools
|
||||
# install humanlayer
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
# or if you want an editable version
|
||||
# -e ../../
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
fastapi
|
||||
uvicorn
|
||||
python-dotenv
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
marvin
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
fastapi
|
||||
uvicorn
|
||||
python-dotenv
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
fastapi
|
||||
uvicorn
|
||||
python-dotenv
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
|
||||
@@ -2,4 +2,4 @@ flask
|
||||
python-dotenv
|
||||
langchain
|
||||
langchain-openai
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"dependencies": {
|
||||
"@gensx/core": "^0.3.7",
|
||||
"@gensx/openai": "^0.1.19",
|
||||
"humanlayer-sdk": "0.7.7",
|
||||
"@humanlayer/sdk": "0.7.8-alpha.1",
|
||||
"openai": "^4.90.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -2,6 +2,6 @@ griptape[all]
|
||||
python-dotenv
|
||||
schema
|
||||
# install humanlayer
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
# or if you want an editable version
|
||||
#-e ../../
|
||||
|
||||
@@ -2,6 +2,6 @@ langchain
|
||||
langchain-anthropic
|
||||
python-dotenv
|
||||
# install humanlayer
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
# or if you want an editable version
|
||||
# -e ../../
|
||||
|
||||
@@ -2,4 +2,4 @@ langchain
|
||||
langchain-ollama
|
||||
python-dotenv
|
||||
# install humanlayer
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
|
||||
@@ -2,5 +2,5 @@ langchain
|
||||
langchain-openai
|
||||
python-dotenv
|
||||
# install humanlayer
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
# or if you want an editable version
|
||||
|
||||
@@ -2,6 +2,6 @@ openai
|
||||
python-dotenv
|
||||
|
||||
# install humanlayer
|
||||
humanlayer==0.7.7
|
||||
humanlayer==0.7.8
|
||||
# or if you want an editable version
|
||||
# -e ../../
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { config } from "dotenv";
|
||||
import { HumanLayer } from "humanlayer-sdk";
|
||||
import { HumanLayer } from "@humanlayer/sdk";
|
||||
import {
|
||||
ClassifiedEmail,
|
||||
classifyEmail,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { HumanLayer, ResponseOption } from "humanlayer-sdk";
|
||||
import { HumanLayer, ResponseOption } from "@humanlayer/sdk";
|
||||
import { config } from "dotenv";
|
||||
import {
|
||||
Classification,
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
"@types/express": "^5.0.0",
|
||||
"dotenv": "^16.4.7",
|
||||
"express": "^4.21.2",
|
||||
"humanlayer-sdk": "0.7.7",
|
||||
"@humanlayer/sdk": "0.7.8-alpha.1",
|
||||
"openai": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { humanlayer } from "humanlayer-sdk";
|
||||
import { humanlayer } from "@humanlayer/sdk";
|
||||
|
||||
const hlClient = humanlayer({ verbose: true, runId: "spline-reticulator" });
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import { AgentExecutor, createOpenAIFunctionsAgent } from "langchain/agents";
|
||||
import { StructuredTool, Tool } from "@langchain/core/tools";
|
||||
import { output, z } from "zod";
|
||||
import { ZodObjectAny } from "@langchain/core/dist/types/zod";
|
||||
import { humanlayer } from "humanlayer-sdk";
|
||||
import { humanlayer } from "@humanlayer/sdk";
|
||||
|
||||
const hl = humanlayer({
|
||||
verbose: true,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
"author": "HumanLayer Authors",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"humanlayer-sdk": "0.7.7",
|
||||
"@humanlayer/sdk": "0.7.8-alpha.1",
|
||||
"langchain": "^0.2.19",
|
||||
"openai": "^4.0.0"
|
||||
},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { humanlayer } from "humanlayer-sdk";
|
||||
import { humanlayer } from "@humanlayer/sdk";
|
||||
import OpenAI from "openai";
|
||||
import { ChatCompletionTool } from "openai/src/resources/index.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ContactChannel, humanlayer } from "humanlayer-sdk";
|
||||
import { ContactChannel, humanlayer } from "@humanlayer/sdk";
|
||||
import OpenAI from "openai";
|
||||
import { ChatCompletionTool } from "openai/src/resources/index.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { ContactChannel, humanlayer } from "humanlayer-sdk";
|
||||
import { ContactChannel, humanlayer } from "@humanlayer/sdk";
|
||||
import OpenAI from "openai";
|
||||
import { ChatCompletionTool } from "openai/src/resources/index.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { humanlayer } from "humanlayer-sdk";
|
||||
import { humanlayer } from "@humanlayer/sdk";
|
||||
import OpenAI from "openai";
|
||||
import { ChatCompletionTool } from "openai/src/resources/index.js";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { FunctionCall, humanlayer } from "humanlayer-sdk";
|
||||
import { FunctionCall, humanlayer } from "@humanlayer/sdk";
|
||||
|
||||
const hl = humanlayer({ verbose: true, runId: "email-escalation" });
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { EmailContactChannel, FunctionCall, humanlayer } from "humanlayer-sdk";
|
||||
import { EmailContactChannel, FunctionCall, humanlayer } from "@humanlayer/sdk";
|
||||
|
||||
const hl = humanlayer({ verbose: true, runId: "email-multiple" });
|
||||
|
||||
|
||||
14
examples/ts_openai_client/package-lock.json
generated
14
examples/ts_openai_client/package-lock.json
generated
@@ -9,8 +9,8 @@
|
||||
"version": "0.1.0",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@humanlayer/sdk": "0.7.8-alpha.1",
|
||||
"dotenv": "^16.4.7",
|
||||
"humanlayer": "0.7.7",
|
||||
"openai": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -441,6 +441,12 @@
|
||||
"node": ">=18"
|
||||
}
|
||||
},
|
||||
"node_modules/@humanlayer/sdk": {
|
||||
"version": "0.7.8-alpha.1",
|
||||
"resolved": "https://registry.npmjs.org/@humanlayer/sdk/-/sdk-0.7.8-alpha.1.tgz",
|
||||
"integrity": "sha512-UI5ELaQB0Lu26Eq0snoJ/A3ALJkn9TSbpasYHAokXI3EK79uHOGL1lHzjPD1m1UpAgGs23+qYwxam5WD70WzhA==",
|
||||
"license": "Apache-2.0"
|
||||
},
|
||||
"node_modules/@jridgewell/resolve-uri": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
|
||||
@@ -899,12 +905,6 @@
|
||||
"ms": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/humanlayer": {
|
||||
"version": "0.7.7",
|
||||
"resolved": "https://registry.npmjs.org/humanlayer/-/humanlayer-0.7.7.tgz",
|
||||
"integrity": "sha512-6pk+EvyHDPUJwDex5tGwv/11tn1ZeanRUr2hrDIF3F7zRqB6fstRilpRN5Glc4s+WdnzqCvaBsAQOHk9DyLDww==",
|
||||
"license": "Apache-2.0"
|
||||
},
|
||||
"node_modules/make-error": {
|
||||
"version": "1.3.6",
|
||||
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"dotenv": "^16.4.7",
|
||||
"humanlayer-sdk": "0.7.7",
|
||||
"@humanlayer/sdk": "0.7.8-alpha.1",
|
||||
"openai": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
"chalk": "^5.4.1",
|
||||
"commander": "^14.0.0",
|
||||
"dotenv": "^16.5.0",
|
||||
"humanlayer-sdk": "^0.7.7"
|
||||
"@humanlayer/sdk": "^0.7.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^22.15.21",
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
"dependencies": {
|
||||
"@ai-sdk/openai": "^1.0.13",
|
||||
"ai": "^4.0.26",
|
||||
"humanlayer-sdk": "0.7.1-rc1"
|
||||
"@humanlayer/sdk": "0.7.1-rc1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^29.5.14",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "humanlayer-sdk",
|
||||
"version": "0.7.8-alpha.1",
|
||||
"name": "@humanlayer/sdk",
|
||||
"version": "0.7.8",
|
||||
"private": false,
|
||||
"description": "typescript client for humanlayer.dev",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
|
||||
@@ -10,7 +10,7 @@ dependencies = [
|
||||
"aiohttp>=3.11.10,<4.0.0",
|
||||
]
|
||||
name = "humanlayer"
|
||||
version = "0.7.8-alpha.1"
|
||||
version = "0.7.8"
|
||||
description = "humanlayer"
|
||||
readme = "README.md"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user