Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.0.5] - 03-14-2024 Dialectic Agent #38

Merged
merged 77 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
5341ebf
🧪 asyncify tests
hyusap Jan 31, 2024
942137f
✨ asyncify client
hyusap Jan 31, 2024
387fb66
Basic Test for Page based pagination
VVoruganti Feb 6, 2024
410f914
add sync buildstep and client
hyusap Feb 6, 2024
4495fdf
add vscode DX
hyusap Feb 6, 2024
6033f71
Added Testing for generators and updated examples
VVoruganti Feb 6, 2024
2a3d9f7
feat: example updates
vintrocode Feb 7, 2024
1c9ee99
Merge pull request #10 from plastic-labs/vscode
VVoruganti Feb 7, 2024
d59e1ee
readme exists now
vintrocode Feb 7, 2024
4f650d3
Stylistic changes and generic message
VVoruganti Feb 8, 2024
31d895f
Merge pull request #13 from plastic-labs/vineeth/dev-153
VVoruganti Feb 8, 2024
74199c1
Merge branch 'staging' into ayush/dev-153
VVoruganti Feb 8, 2024
785dd36
Merge pull request #8 from plastic-labs/ayush/dev-153
VVoruganti Feb 8, 2024
870995d
Merge pull request #12 from plastic-labs/vince/example-updates
VVoruganti Feb 8, 2024
0438edb
Merge branch 'staging' into vineeth/dev-154
VVoruganti Feb 8, 2024
8a750a6
Merge pull request #11 from plastic-labs/vineeth/dev-154
VVoruganti Feb 8, 2024
3fd1bf9
Metamessages with other refactoring - untested
VVoruganti Feb 8, 2024
3926aaf
Work with unit tests
VVoruganti Feb 8, 2024
ddaa311
Fix Examples
VVoruganti Feb 8, 2024
a7373d1
MEME-78 Update Changelogs
VVoruganti Feb 8, 2024
f99f1e8
Docstrings to client
VVoruganti Feb 8, 2024
061dd83
Merge pull request #14 from plastic-labs/vineeth/dev-181
VVoruganti Feb 8, 2024
716e8ca
🧪 autogenerate sync tests
hyusap Feb 14, 2024
735d780
test one
hyusap Feb 14, 2024
783156f
add db type
hyusap Feb 14, 2024
287db71
sync client
hyusap Feb 14, 2024
811c726
add status badge
hyusap Feb 14, 2024
cb42724
add coverage
hyusap Feb 14, 2024
77f180a
add file
hyusap Feb 14, 2024
f359be4
give perms
hyusap Feb 14, 2024
178b488
properly output coverage
hyusap Feb 14, 2024
18241c9
split test and coverage
hyusap Feb 14, 2024
555c848
rename action
hyusap Feb 14, 2024
fcde94e
🧪 autogenerate sync tests (#16)
hyusap Feb 15, 2024
8421fda
Vector Support (#18)
VVoruganti Feb 15, 2024
e8730df
Merge branch 'main' into staging
VVoruganti Feb 15, 2024
6c4cfe1
Merge branch 'main' into staging
VVoruganti Feb 21, 2024
614242b
Add reverse parameters for paginated routes
VVoruganti Feb 21, 2024
ef636ce
Address dependabot
VVoruganti Feb 21, 2024
10b65b2
Formatting
VVoruganti Feb 21, 2024
f82bd7f
initial commit on honcho dspy personas
vintrocode Feb 20, 2024
53d952f
working, hit token limit and can't test dspy optimization
vintrocode Feb 20, 2024
8c5845f
initial version working, need to test optimization
vintrocode Feb 21, 2024
07651cb
optimizers working, but appending any example
vintrocode Feb 22, 2024
364ba9a
ready for user object (tbomk)
vintrocode Feb 22, 2024
197a658
Merge branch 'actions' into staging
hyusap Feb 22, 2024
ad4cec3
Revert "add test actions and coverage"
hyusap Feb 22, 2024
794a38f
Merge pull request #28 from plastic-labs/revert-17-actions
hyusap Feb 22, 2024
dee6ba7
Refactor to add User and App Tables
VVoruganti Feb 22, 2024
569870c
User Object passing test cases
VVoruganti Feb 22, 2024
0f783c3
Update examples
VVoruganti Feb 22, 2024
9abafa7
DSPy Todo and documentation updates
VVoruganti Feb 22, 2024
c584fad
Add is_active filtering
VVoruganti Feb 22, 2024
67b1601
Add is_active filtering to the generator
VVoruganti Feb 22, 2024
876e8e8
Fix update user metadata
VVoruganti Feb 22, 2024
cf79652
working, but weird compiler error
vintrocode Feb 23, 2024
3a2f5ea
fixed str error in optimizer
vintrocode Feb 23, 2024
21c325b
ship
vintrocode Feb 23, 2024
122d37d
Merge branch 'main' into staging
VVoruganti Feb 26, 2024
b78d502
sentry
VVoruganti Feb 27, 2024
6714d25
Open Telemetry
VVoruganti Feb 28, 2024
da5f555
optional logging with environment variables
VVoruganti Feb 29, 2024
f40ec07
add actions again? (#29)
hyusap Mar 6, 2024
c1c35de
⚙️ chore: update start script in VS Code to include poetry install --…
hyusap Mar 6, 2024
8be7a9e
Refactored code but need to tweak asyncpg
VVoruganti Feb 29, 2024
a46fa2b
Working Async API using Psycopg3
VVoruganti Mar 6, 2024
9be9c1b
Update Workflow Connection URI
VVoruganti Mar 6, 2024
0e6b56a
Update Workflow Connection URI in coverage test as well
VVoruganti Mar 6, 2024
8258933
Skeleton for Dialectic API
VVoruganti Mar 8, 2024
bf6c1a7
Fixes DEV-217 URL Encoding
VVoruganti Mar 12, 2024
b5935ec
Add Built-in Langchain Utility function
VVoruganti Mar 12, 2024
29b9365
Sphinx Docs MVP
VVoruganti Mar 13, 2024
c4b0151
Metadata filtering for all fixes dev-261
VVoruganti Mar 14, 2024
d59ea18
Basic Dialectic Endpoint fixes dev-253
VVoruganti Mar 14, 2024
52233ef
Working Fact Deriver
VVoruganti Mar 14, 2024
37634b5
0.0.5 Docs and README updates
VVoruganti Mar 14, 2024
09b3e31
Cloudflare Sphinx
VVoruganti Mar 14, 2024
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
47 changes: 47 additions & 0 deletions .github/workflows/run_coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Run Coverage
on: [pull_request]
jobs:
test:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install poetry
run: |
pip install poetry
- name: Start Database
run: |
cd api/local
docker compose up --wait
cd ../..
- name: Start Server
run: |
cd api
poetry install --no-root
poetry run uvicorn src.main:app &
sleep 5
cd ..
env:
DATABASE_TYPE: postgres
CONNECTION_URI: postgresql+psycopg://testuser:testpwd@localhost:5432/honcho
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Run Tests
run: |
cd sdk
poetry install
poetry run coverage run -m pytest
poetry run coverage report --format=markdown > coverage.md
cd ..
- name: Add Coverage PR Comment
uses: marocchino/sticky-pull-request-comment@v2
with:
recreate: true
path: sdk/coverage.md
- name: Stop Server
run: |
kill $(jobs -p) || true
46 changes: 46 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Run Tests
on: [push, pull_request]
jobs:
test:
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install poetry
run: |
pip install poetry
- name: Start Database
run: |
cd api/local
docker compose up --wait
cd ../..
- name: Start Server
run: |
cd api
poetry install --no-root
poetry run uvicorn src.main:app &
sleep 5
cd ..
env:
DATABASE_TYPE: postgres
CONNECTION_URI: postgresql+psycopg://testuser:testpwd@localhost:5432/honcho
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
- name: Run Tests
run: |
cd sdk
poetry install
poetry run pytest
cd ..
- name: Stop Database
run: |
cd api/local
docker compose down
cd ../..
- name: Stop Server
run: |
kill $(jobs -p) || true
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ instance/
.scrapy

# Sphinx documentation
docs/_build/
**/docs/_build/

# PyBuilder
.pybuilder/
Expand Down Expand Up @@ -165,3 +165,5 @@ cython_debug/
#.idea/

.DS_Store

supabase/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Honcho
![Static Badge](https://img.shields.io/badge/Version-0.0.4-blue)
![Static Badge](https://img.shields.io/badge/Version-0.0.5-blue)
[![Discord](https://img.shields.io/discord/1016845111637839922?style=flat&logo=discord&logoColor=23ffffff&label=Plastic%20Labs&labelColor=235865F2)](https://discord.gg/plasticlabs)
![GitHub License](https://img.shields.io/github/license/plastic-labs/honcho)
![GitHub Repo stars](https://img.shields.io/github/stars/plastic-labs/honcho)
Expand Down
29 changes: 25 additions & 4 deletions api/.env.template
Original file line number Diff line number Diff line change
@@ -1,7 +1,28 @@
DATABASE_TYPE=sqlite
CONNECTION_URI=sqlite://

DATABASE_TYPE=postgres
CONNECTION_URI=postgresql://testuser:testpwd@localhost:5432/honcho
CONNECTION_URI=postgresql+psycopg://testuser:testpwd@localhost:5432/honcho

OPENAI_API_KEY=

# Logging

OPENTELEMETRY_ENABLED=false # Set to true to enable OpenTelemetry logging and tracing
SENTRY_ENABLED=false # Set to true to enable Sentry logging and tracing

## Sentry
SENTRY_DSN=

## Open Telemetry

OTEL_SERVICE_NAME=honcho
OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true
OTEL_PYTHON_LOG_CORRELATION=true

OTEL_PYTHON_LOG_LEVEL=
OTEL_EXPORTER_OTLP_PROTOCOL=
OTEL_EXPORTER_OTLP_ENDPOINT=
OTEL_EXPORTER_OTLP_HEADERS=
OTEL_RESOURCE_ATTRIBUTES=

DEBUG_LOG_OTEL_TO_PROVIDER=false
DEBUG_LOG_OTEL_TO_CONSOLE=true

5 changes: 3 additions & 2 deletions api/.vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
{
"label": "start",
"type": "shell",
"command": "poetry run uvicorn src.main:app --reload",
"command": "poetry install --no-root && poetry run uvicorn src.main:app --reload",
"group": "none",
"presentation": {
"reveal": "always",
"panel": "shared"
},
"runOptions": {
"runOn": "folderOpen"
}
},
"problemMatcher": []
}
]
}
16 changes: 16 additions & 0 deletions api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.0.5] — 2024-03-14

### Added

* Metadata to all data primitives (Users, Sessions, Messages, etc.)
* Ability to filter paginated GET requests by JSON filter based on metadata
* Optional Sentry error monitoring
* Optional Opentelemetry logging
* Dialectic API to interact with honcho agent and get insights about users
* Automatic Fact Derivation Script for automatically generating simple memory

### Changed

* API Server now uses async methods to make use of benefits of FastAPI


## [0.0.4] — 2024-02-22

### Added
Expand Down
3 changes: 2 additions & 1 deletion api/fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ kill_timeout = "5s"

[processes]
api = "python -m uvicorn src.main:app --host 0.0.0.0 --port 8000"
deriver = "python -m src.harvester"

[http_service]
internal_port = 8000
auto_stop_machines = true
auto_stop_machines = false
auto_start_machines = true
min_machines_running = 1
processes = ["api"]
Expand Down
Loading
Loading