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

dev -> main #967

Merged
merged 186 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
fe6aca3
refactor(agents-api,integrations): Switch to uv from poetry
creatorrr Nov 30, 2024
fb35a98
feat(.github): Fix workflows to use uv instead of poetry
creatorrr Nov 30, 2024
c5de254
Merge pull request #916 from julep-ai/r/switch-to-uv
creatorrr Nov 30, 2024
1d839ca
Fix socialify link in README.md
creatorrr Dec 1, 2024
7430007
feat: Add Sentry support to integration service
whiterabbit1983 Dec 2, 2024
1a5e37e
chore: Remove merging artifacts
whiterabbit1983 Dec 2, 2024
814ce05
chore: Add Sentry env name
whiterabbit1983 Dec 2, 2024
8fd4d6a
chore: Add env var to example file
whiterabbit1983 Dec 2, 2024
0758d1f
chore: Migrate to uv
whiterabbit1983 Dec 2, 2024
1e96a7d
Merge pull request #918 from julep-ai/f/integrations-sentry
whiterabbit1983 Dec 2, 2024
1a65d5f
feat(monitoring): add portainer to monitor memory consumption
Ahmad-mtos Dec 2, 2024
5221f22
feat(integrations): updaye spider api call to support async + removed…
Vedantsahai18 Dec 2, 2024
6398539
fix: removed duplicate code in chat.py
Vedantsahai18 Dec 2, 2024
550d27c
readme update
Vedantsahai18 Dec 2, 2024
e547478
fix: test-agent github action fix
Vedantsahai18 Dec 3, 2024
94debcb
fix: github actions fix for lint, typecheck and typespec
Vedantsahai18 Dec 3, 2024
0bb7101
refactor: Lint agents-api (CI)
Vedantsahai18 Dec 3, 2024
abd11cd
fix: revert the typespec action
Vedantsahai18 Dec 3, 2024
4d89323
fix(agents-api): add sentry dsn env var to docker compose
Ahmad-mtos Dec 3, 2024
c4db9dc
feat: Add temporal metrics and setup prometheus and grafana correspon…
whiterabbit1983 Dec 3, 2024
82d7aa1
Merge pull request #923 from julep-ai/x/add-sentry-dsn
Ahmad-mtos Dec 3, 2024
2852d08
Merge pull request #924 from julep-ai/f/metrics-and-timeouts
whiterabbit1983 Dec 3, 2024
a256a69
Merge branch 'dev' into f/spider
Vedantsahai18 Dec 3, 2024
0c55e12
feat(integrations): spider tool refractored + readme/typespec updates
Vedantsahai18 Dec 3, 2024
26c4500
refactor: Lint agents-api (CI)
Vedantsahai18 Dec 3, 2024
7d449aa
fix(integration): optimized the spider execution
Vedantsahai18 Dec 3, 2024
8956aa9
feat(agents-api): made gather message search params configurable thou…
Vedantsahai18 Dec 4, 2024
317bf0b
chore: Update default heartbeat timeout
whiterabbit1983 Dec 4, 2024
fcb2e5f
Merge pull request #925 from julep-ai/f/metrics-and-timeouts
whiterabbit1983 Dec 4, 2024
c273166
Merge branch 'dev' into f/spider
Vedantsahai18 Dec 4, 2024
4c86922
fix: spider integration bug fix
Vedantsahai18 Dec 4, 2024
cc5e909
chore: Update default heartbeat timeout in docker compose
whiterabbit1983 Dec 4, 2024
ee5370e
Merge pull request #926 from julep-ai/f/metrics-and-timeouts
whiterabbit1983 Dec 4, 2024
c02914c
Merge branch 'dev' into f/spider
Vedantsahai18 Dec 4, 2024
baad605
Merge pull request #920 from julep-ai/f/add-portainer
creatorrr Dec 4, 2024
e268d43
fix: Do not retry if cozo is offline
whiterabbit1983 Dec 4, 2024
2224d87
Merge pull request #927 from julep-ai/x/cozo-retry
whiterabbit1983 Dec 4, 2024
1e83c43
Merge branch 'dev' into f/spider
Vedantsahai18 Dec 4, 2024
1c650da
refactor: Lint agents-api (CI)
Vedantsahai18 Dec 4, 2024
855867c
feat: Make activity wait for some time after being retried
whiterabbit1983 Dec 4, 2024
1c860ce
feat: Make timeout configurable and apply formatting
whiterabbit1983 Dec 4, 2024
8613b6d
feat(agents-api): add spacy chunking in evaluate step + update websit…
Vedantsahai18 Dec 4, 2024
9e4a6f0
refactor: Lint agents-api (CI)
Vedantsahai18 Dec 4, 2024
ff3e40f
feat(memory-store): integrate the new cozo rocksdb
Ahmad-mtos Dec 4, 2024
8ec12e3
wip: Fix workflow handle logic
creatorrr Dec 5, 2024
e73ee34
fix(agents-api): fixed the nlp call + cozo bump
Vedantsahai18 Dec 5, 2024
27fb954
fix(agetns-api): fixed the chunk_doc util
Vedantsahai18 Dec 5, 2024
a63eb5e
refactor: Lint agents-api (CI)
Vedantsahai18 Dec 5, 2024
d6aecf9
fix: Emit a signal only in case of 429 status code
whiterabbit1983 Dec 5, 2024
b9a467c
wip: Add sentinel tokens for decode/encode
creatorrr Dec 5, 2024
72d6edd
fix: Create a new exception type in order to avoid decode error
whiterabbit1983 Dec 5, 2024
2958fd8
wip: Add fixture for async cozo client
creatorrr Dec 5, 2024
c173600
cookbooks: readme + iypnb img update
Vedantsahai18 Dec 6, 2024
b80e126
Handle `embed_instruction` in `litellm.aembedding`
HamadaSalhab Dec 6, 2024
2f7d767
Add default `embed_instruction` to `create_doc`
HamadaSalhab Dec 6, 2024
6115dee
Add default query `embed_instruction` for chat vector search
HamadaSalhab Dec 6, 2024
d394dc9
refactor: Lint agents-api (CI)
HamadaSalhab Dec 6, 2024
e67c9b8
Minor fix
HamadaSalhab Dec 6, 2024
b622d15
fix: Make a new fixture to return both sync and async cozo clients in…
whiterabbit1983 Dec 6, 2024
4536360
Merge pull request #930 from julep-ai/f/rps-limit
whiterabbit1983 Dec 6, 2024
8f50f86
Merge pull request #933 from julep-ai/c/refactor-embed-instruction
creatorrr Dec 6, 2024
b733417
fix(memory-store): bump cozo-ce-bin version + tune options file
Ahmad-mtos Dec 6, 2024
4313424
feat(agents-api): Run embedding and text queries concurrently
creatorrr Dec 6, 2024
9d51937
Merge branch 'dev' into f/cozo-new-rocksdb
creatorrr Dec 6, 2024
704fdf9
Merge pull request #929 from julep-ai/f/cozo-new-rocksdb
creatorrr Dec 6, 2024
17c9608
feat(memory-store): integrate the new cozo rocksdb
creatorrr Dec 6, 2024
6ba7c83
fix(memory-store): bump cozo-ce-bin version + tune options file
Ahmad-mtos Dec 6, 2024
a944bec
feat: Make activity wait for some time after being retried
whiterabbit1983 Dec 4, 2024
bc1d653
feat: Make timeout configurable and apply formatting
creatorrr Dec 6, 2024
221269d
wip: Fix workflow handle logic
creatorrr Dec 6, 2024
19cf6d3
fix: Emit a signal only in case of 429 status code
whiterabbit1983 Dec 5, 2024
72de1f2
wip: Add sentinel tokens for decode/encode
creatorrr Dec 5, 2024
0be6c44
fix: Create a new exception type in order to avoid decode error
whiterabbit1983 Dec 5, 2024
85a24d4
wip: Add fixture for async cozo client
creatorrr Dec 5, 2024
946af79
fix: Make a new fixture to return both sync and async cozo clients in…
whiterabbit1983 Dec 6, 2024
011683a
feat(agents-api): Add recall_options to sessions
creatorrr Dec 6, 2024
27d4e1d
feat(agents-api): Add support for recall_options in session.chat
creatorrr Dec 6, 2024
ddbde08
feat(agents-api): Turn off LSH in search_docs_by_text
creatorrr Dec 6, 2024
51d723b
Merge branch 'dev' into f/spider
creatorrr Dec 6, 2024
aa4b527
fix(agents-api): unpacking fixed in embed_docs
Vedantsahai18 Dec 6, 2024
526e41f
refactor: Lint agents-api (CI)
Vedantsahai18 Dec 6, 2024
c0666e7
fix: unittests except for execute workflow + poe check bug fixes
Vedantsahai18 Dec 7, 2024
71c9b15
refactor: Lint agents-api (CI)
Vedantsahai18 Dec 7, 2024
6a5f4de
chore: Send all traces
whiterabbit1983 Dec 7, 2024
9c8c290
feat: Add more parameters for workers fine tuning
whiterabbit1983 Dec 7, 2024
68ef02e
Merge pull request #934 from julep-ai/f/workers-fine-tuning
whiterabbit1983 Dec 7, 2024
971fb06
chore: Update example env
whiterabbit1983 Dec 7, 2024
277a24d
Merge pull request #935 from julep-ai/f/workers-fine-tuning
whiterabbit1983 Dec 7, 2024
f728532
feat(agents-api): Add in-memory rate limiter to transition activity
creatorrr Dec 7, 2024
e23e80c
Merge branch 'dev' into f/spider
creatorrr Dec 7, 2024
04c6465
chore(memory-store): Bump cozo-ce-bin version
Ahmad-mtos Dec 7, 2024
fa8c171
configure some options
Ahmad-mtos Dec 7, 2024
78d45b6
Merge branch 'dev' into c/bump-cozo-ce-version
Ahmad-mtos Dec 7, 2024
1ae7ab0
Merge pull request #937 from julep-ai/c/bump-cozo-ce-version
Ahmad-mtos Dec 7, 2024
7b91ef3
Merge branch 'dev' into f/spider
Vedantsahai18 Dec 7, 2024
fcc02f1
Merge pull request #921 from julep-ai/f/spider
creatorrr Dec 7, 2024
fc2f443
Merge branch 'dev' into f/rate-limit-transition
creatorrr Dec 7, 2024
8d130fe
Merge pull request #936 from julep-ai/f/rate-limit-transition
creatorrr Dec 7, 2024
d20817a
chore(readme): translate README.md
creatorrr Dec 7, 2024
17e0795
chore: Set default worker settings
whiterabbit1983 Dec 7, 2024
9217bd0
Merge pull request #938 from julep-ai/translate-readme
Vedantsahai18 Dec 7, 2024
8f38603
feat(agents-api): added mmr search + configurable doc search params i…
Vedantsahai18 Dec 8, 2024
7ac8738
Merge branch 'dev' into c/set-default-worker-settings
creatorrr Dec 9, 2024
825dc82
fix: Fix typo
whiterabbit1983 Dec 9, 2024
35b25f4
Merge pull request #939 from julep-ai/c/set-default-worker-settings
creatorrr Dec 9, 2024
0b819b0
chore: bump cozo version
Ahmad-mtos Dec 9, 2024
be22660
refactor: Lint agents-api (CI)
Ahmad-mtos Dec 9, 2024
98bc8c2
Merge pull request #941 from julep-ai/x/fix-memory-leaks
Ahmad-mtos Dec 9, 2024
60acd39
Merge branch 'dev' into f/chat-mmr
Vedantsahai18 Dec 9, 2024
10b2d86
doc(agents-api): Add updated cozo schema
creatorrr Dec 10, 2024
3181d8d
feat: Add indices migration
whiterabbit1983 Dec 9, 2024
6d78d27
refactor: Lint agents-api (CI)
whiterabbit1983 Dec 9, 2024
3bd0668
feat: Reduce the number of indices and apply them to queries
whiterabbit1983 Dec 10, 2024
74595f1
feat: Add metadata index
whiterabbit1983 Dec 10, 2024
d8df038
fix: Remove debugging
whiterabbit1983 Dec 10, 2024
e8f1d87
fix: Fix index field
whiterabbit1983 Dec 10, 2024
098b448
feat: Add more indices
whiterabbit1983 Dec 10, 2024
2406d7a
chore: Refactor create execution transition queries
whiterabbit1983 Dec 10, 2024
7d1d09e
chore: Add one more index
whiterabbit1983 Dec 10, 2024
f10f1ba
feat: Make queries use indices
whiterabbit1983 Dec 10, 2024
629cbf8
fix: Add task_id constraint
whiterabbit1983 Dec 10, 2024
2dc7b45
fix: Fix timeseries name
whiterabbit1983 Dec 10, 2024
2faf224
fix: Fix migration queries
whiterabbit1983 Dec 10, 2024
2f88b8c
fix: Remove indices as they cause no field error
whiterabbit1983 Dec 10, 2024
875943c
Merge pull request #942 from julep-ai/f/cozo-indices
whiterabbit1983 Dec 10, 2024
ba39f2a
fix: Remove indices which are not defined for a given set of fields
whiterabbit1983 Dec 10, 2024
83487c3
Merge pull request #944 from julep-ai/f/cozo-indices
whiterabbit1983 Dec 10, 2024
b7099c5
Merge branch 'dev' into f/chat-mmr
Vedantsahai18 Dec 10, 2024
e2ea7f3
feat(agents-api): added get history system call as tool
Vedantsahai18 Dec 10, 2024
5ce27f5
refactor: Lint agents-api (CI)
Vedantsahai18 Dec 10, 2024
a5f3f7d
fix: Fix Grafana dashboards and set temporal metrics port statically
whiterabbit1983 Dec 11, 2024
bf48324
Merge pull request #945 from julep-ai/x/grafana-dashboard
whiterabbit1983 Dec 11, 2024
13155ab
build: changelog ci pipeline using julep tasks
Vedantsahai18 Dec 11, 2024
11a98f9
build: changelog ci pipeline using julep tasks
Vedantsahai18 Dec 11, 2024
5829b6e
chore: changed CI changelog name
Vedantsahai18 Dec 12, 2024
84a1a95
fix: minor fix for changelog workflow
Vedantsahai18 Dec 12, 2024
d43cc8b
chore: minor fixes
Vedantsahai18 Dec 12, 2024
0462369
feat(agents-api): Add missing columns to indices
creatorrr Dec 12, 2024
24e9afb
refactor: Lint agents-api (CI)
creatorrr Dec 12, 2024
ce3e3fc
Merge pull request #948 from julep-ai/f/add-columns-to-indices
whiterabbit1983 Dec 12, 2024
3ec0a21
feat: Add prometheus summary for cozo queries
whiterabbit1983 Dec 12, 2024
9258698
Merge pull request #949 from julep-ai/f/cozo-metrics-historgram
whiterabbit1983 Dec 12, 2024
f47cb92
fix: Fix and refactor metrics
whiterabbit1983 Dec 12, 2024
682da5a
Merge pull request #950 from julep-ai/f/cozo-metrics-historgram
whiterabbit1983 Dec 12, 2024
b14f82e
Merge branch 'dev' into f/chat-mmr
creatorrr Dec 12, 2024
537a134
Merge pull request #940 from julep-ai/f/chat-mmr
creatorrr Dec 12, 2024
4ba5a7e
fix: bug fixs for github action generate changelog
Vedantsahai18 Dec 12, 2024
6b3aa25
Merge pull request #951 from julep-ai/x/github-action
Vedantsahai18 Dec 12, 2024
8dd1f17
chore(changelog): update CHANGELOG.md
Vedantsahai18 Dec 12, 2024
b981669
Merge pull request #952 from julep-ai/update-changelog
Vedantsahai18 Dec 12, 2024
3c33939
x/memory-store: revert docker cozo
Vedantsahai18 Dec 12, 2024
7ebeb6e
Merge pull request #953 from julep-ai/x/docker-cozo
Vedantsahai18 Dec 12, 2024
02cd9f3
Remove `None` values from `passed_settings`
HamadaSalhab Dec 13, 2024
7f5610d
Merge pull request #955 from julep-ai/x/prompt-step-model-settings
creatorrr Dec 13, 2024
988036e
Add `finish_branch` to valid transitions after `finish_branch`
HamadaSalhab Dec 13, 2024
6e5de98
Merge pull request #957 from julep-ai/x/consecutive-finish-branch-tra…
HamadaSalhab Dec 13, 2024
dec7eb7
Remove spider response default values
HamadaSalhab Dec 13, 2024
f4b5e32
Make `SpiderResponse`'s `content` accept a list
HamadaSalhab Dec 13, 2024
baf8f2d
Filter docs with empty embedding in `gather_messages`
HamadaSalhab Dec 13, 2024
756a547
Add missing `recall_options` to some sessions cozo queries
HamadaSalhab Dec 13, 2024
caa0b27
Merge pull request #958 from julep-ai/x/misc-fixes
Vedantsahai18 Dec 14, 2024
0f1bef0
docs: updated hooks
Vedantsahai18 Dec 14, 2024
a28de2f
Merge pull request #960 from julep-ai/d/hooks_cookbook_fix
Vedantsahai18 Dec 14, 2024
7d58f46
fix: Remove unimplemented session.delete system tool
HamadaSalhab Dec 17, 2024
6a92829
Add todos
HamadaSalhab Dec 17, 2024
c5fa199
fix: Add missing `session.update` system tool implementation
HamadaSalhab Dec 17, 2024
05a78e3
fix: Reraise `cozo_query` exceptions
HamadaSalhab Dec 17, 2024
589d4cf
fix: Add default values for `recall_options` in `create_session`
HamadaSalhab Dec 17, 2024
c61f26c
fix: Convert `updated_at` field to avoid datetime validation errors
HamadaSalhab Dec 17, 2024
4e17ca8
refactor: Lint agents-api (CI)
HamadaSalhab Dec 17, 2024
75abf54
Merge pull request #969 from julep-ai/x/sessions-fixes
creatorrr Dec 18, 2024
3c5726a
fix: Add user details to session environment variables
HamadaSalhab Dec 18, 2024
7cb92dc
Add comments & Fixme
HamadaSalhab Dec 18, 2024
8b7de57
fix: `user.update` system tool
HamadaSalhab Dec 18, 2024
669f3a8
refactor: Lint agents-api (CI)
HamadaSalhab Dec 18, 2024
1d4b2c8
Merge pull request #972 from julep-ai/x/miscellaneous-fixes
HamadaSalhab Dec 18, 2024
62fb581
chore(agents-api): Add `/healthz` endpoint
HamadaSalhab Dec 19, 2024
da9dd5b
refactor: Lint agents-api (CI)
HamadaSalhab Dec 19, 2024
f6a49ec
Fix code scanning alert no. 4: Information exposure through an exception
creatorrr Dec 19, 2024
54b8ff6
refactor: Lint agents-api (CI)
creatorrr Dec 19, 2024
3c6c86e
Merge pull request #975 from julep-ai/c/healthz-endpoint
creatorrr Dec 19, 2024
8b10cb7
Update README.md
AAG-RF Dec 20, 2024
ad8dd18
hotfix(agents-api): Session APIs throw Internal Server Error
creatorrr Dec 31, 2024
a166d86
Merge pull request #980 from AAG-RF/patch-1
creatorrr Dec 31, 2024
37779a4
docs(.env.example): Update example env vars
HamadaSalhab Jan 4, 2025
d054806
Merge branch 'main' into dev
HamadaSalhab Jan 4, 2025
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
118 changes: 69 additions & 49 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ TAG=dev
JWT_SHARED_KEY=<your_jwt_shared_key>
AGENTS_API_KEY=<your_agents_api_key>
COZO_AUTH_TOKEN=<your_cozo_auth_token>
TEMPORAL_POSTGRES_PASSWORD=<your_temporal_postgres_password>
LITELLM_POSTGRES_PASSWORD=<your_litellm_postgres_password>
LITELLM_MASTER_KEY=<your_litellm_master_key>
LITELLM_SALT_KEY=<your_litellm_salt_key>
LITELLM_REDIS_PASSWORD=<your_litellm_redis_password>
GPU_MEMORY_UTILIZATION=0.80
MAX_FREE_SESSIONS=50
MAX_FREE_EXECUTIONS=50

Expand All @@ -30,19 +26,19 @@ MAX_FREE_EXECUTIONS=50

### Recommended LLM Providers

# OPENAI_API_KEY=<your_openai_api_key>
# VOYAGE_API_KEY=<your_voyage_api_key>
OPENAI_API_KEY=<your_openai_api_key>
VOYAGE_API_KEY=<your_voyage_api_key>

# HUGGING_FACE_HUB_TOKEN=<your_hugging_face_hub_token>
# ANTHROPIC_API_KEY=<your_anthropic_api_key>
# OPENROUTER_API_KEY=<your_openrouter_api_key>
# GROQ_API_KEY=<your_groq_api_key>
# GEMINI_API_KEY=<your_gemini_api_key>
# CLOUDFLARE_API_KEY=<your_cloudflare_api_key>
# CLOUDFLARE_ACCOUNT_ID=<your_cloudflare_account_id>
# NVIDIA_NIM_API_KEY=<your_nvidia_nim_api_key>
# GITHUB_API_KEY=<your_github_api_key>
# GOOGLE_APPLICATION_CREDENTIALS=.keys/julep-vertexai-svc.json
HUGGING_FACE_HUB_TOKEN=<your_hugging_face_hub_token>
ANTHROPIC_API_KEY=<your_anthropic_api_key>
OPENROUTER_API_KEY=<your_openrouter_api_key>
GROQ_API_KEY=<your_groq_api_key>
GEMINI_API_KEY=<your_gemini_api_key>
CLOUDFLARE_API_KEY=<your_cloudflare_api_key>
CLOUDFLARE_ACCOUNT_ID=<your_cloudflare_account_id>
NVIDIA_NIM_API_KEY=<your_nvidia_nim_api_key>
GITHUB_API_KEY=<your_github_api_key>
GOOGLE_APPLICATION_CREDENTIALS=.keys/julep-vertexai-svc.json

# Agents API
# ---------
Expand All @@ -51,21 +47,24 @@ MAX_FREE_EXECUTIONS=50
### > Set to either "voyage/voyage-3" or "Alibaba-NLP/gte-large-en-v1.5"
### > Use Alibaba-NLP/gte-large-en-v1.5 with local embedding server

# EMBEDDING_MODEL_ID=voyage/voyage-3
# EMBEDDING_MODEL_ID=Alibaba-NLP/gte-large-en-v1.5

# AGENTS_API_HOSTNAME=localhost
# AGENTS_API_PROTOCOL=http
# AGENTS_API_KEY_HEADER_NAME=Authorization
# AGENTS_API_URL=http://agents-api:8080
# TRUNCATE_EMBED_TEXT=true
# WORKER_URL=temporal:7233
# AGENTS_API_DEBUG=false
# NUM_GPUS=1
# INTEGRATION_SERVICE_URL=http://integrations:8000
# USE_BLOB_STORE_FOR_TEMPORAL=false
# BLOB_STORE_CUTOFF_KB=1024
# BLOB_STORE_BUCKET=agents-api
EMBEDDING_MODEL_ID=voyage/voyage-3
EMBEDDING_MODEL_ID=Alibaba-NLP/gte-large-en-v1.5

AGENTS_API_HOSTNAME=localhost
AGENTS_API_PROTOCOL=http
AGENTS_API_KEY_HEADER_NAME=Authorization
AGENTS_API_URL=http://agents-api:8080
TRUNCATE_EMBED_TEXT=true
WORKER_URL=temporal:7233
AGENTS_API_DEBUG=false
NUM_GPUS=1
INTEGRATION_SERVICE_URL=http://integrations:8000
USE_BLOB_STORE_FOR_TEMPORAL=false
BLOB_STORE_CUTOFF_KB=1024
BLOB_STORE_BUCKET=agents-api
MNT_DIR=/data
SKIP_CHECK_DEVELOPER_HEADERS=true


# Memory Store
# -----------
Expand All @@ -79,36 +78,57 @@ MAX_FREE_EXECUTIONS=50
# Gateway
# ------

# GATEWAY_PORT=80
# TRAEFIK_LOG_LEVEL=INFO
GATEWAY_PORT=80
TRAEFIK_LOG_LEVEL=INFO

# Temporal
# --------

# TEMPORAL_ENDPOINT=temporal:7233
# TEMPORAL_NAMESPACE=default
# TEMPORAL_WORKER_URL=temporal:7233
# TEMPORAL_POSTGRES_DB=temporal
# TEMPORAL_POSTGRES_USER=temporal
# TEMPORAL_SCHEDULE_TO_CLOSE_TIMEOUT=3600
TEMPORAL_ENDPOINT=temporal:7233
TEMPORAL_NAMESPACE=default
TEMPORAL_WORKER_URL=temporal:7233
TEMPORAL_POSTGRES_DB=temporal
TEMPORAL_POSTGRES_USER=temporal
TEMPORAL_POSTGRES_PASSWORD=<your_temporal_postgres_password>
TEMPORAL_SCHEDULE_TO_CLOSE_TIMEOUT=3600

# LiteLLM
# -------

# LITELLM_URL=http://litellm:4000
# LITELLM_POSTGRES_DB=litellm
# LITELLM_POSTGRES_USER=llmproxy
# LITELLM_REDIS_HOST=litellm-redis
# LITELLM_REDIS_PORT=6379
LITELLM_URL=http://litellm:4000
LITELLM_POSTGRES_DB=litellm
LITELLM_POSTGRES_USER=llmproxy
LITELLM_REDIS_HOST=litellm-redis
LITELLM_REDIS_PORT=6379
LITELLM_POSTGRES_PASSWORD=<your_litellm_postgres_password>
LITELLM_MASTER_KEY=<your_litellm_master_key>
LITELLM_SALT_KEY=<your_litellm_salt_key>
LITELLM_REDIS_PASSWORD=<your_litellm_redis_password>
REDIS_ARGS="--requirepass ${LITELLM_REDIS_PASSWORD}"

# Grafana
# ------

GRAFANA_ADMIN_USER=<your_grafana_admin_user>
GRAFANA_ADMIN_PASSWORD=<your_grafana_admin_password>


# Blob Store
# -----------

# S3_ENDPOINT=http://seaweedfs:8333
# S3_ACCESS_KEY=<your_s3_access_key>
# S3_SECRET_KEY=<your_s3_secret_key>
S3_ENDPOINT=http://seaweedfs:8333
S3_ACCESS_KEY=<your_s3_access_key>
S3_SECRET_KEY=<your_s3_secret_key>

# Integrations Service
# ------------

# INTEGRATIONS_SERVICE_PORT=8000
INTEGRATIONS_SERVICE_PORT=8000
INTEGRATIONS_SENTRY_DSN=<sentry_dsn>

# Temporal fine tuning

# TEMPORAL_MAX_CONCURRENT_WORKFLOW_TASKS=
# TEMPORAL_MAX_CONCURRENT_ACTIVITIES=100
# TEMPORAL_MAX_ACTIVITIES_PER_SECOND=
# TEMPORAL_MAX_TASK_QUEUE_ACTIVITIES_PER_SECOND=
83 changes: 83 additions & 0 deletions .github/workflows/generate-changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Julep Changelog Generation
run-name: ${{ github.actor }} is generating changelog for the last two weeks using Julep

on:
workflow_dispatch:

jobs:
changelog_generation:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: dev

- name: Setup GitHub CLI
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token

- name: Collect merged PRs from the last two weeks
id: collect_prs
run: |
if [[ "$OSTYPE" == "darwin"* ]]; then
date_threshold=$(date -v-14d +"%Y-%m-%d")
else
date_threshold=$(date -d '-14 days' +"%Y-%m-%d")
fi

echo "Fetching merged PRs since $date_threshold..."

merged_prs=$(
gh pr list --state merged --json number,title,body,author \
--search "merged:>=$date_threshold" \
--jq 'map({number, title, body, author: .author.login})'
)

if [ -z "$merged_prs" ] || [ "$merged_prs" = "null" ]; then
echo "No merged PRs found in the last two weeks."
echo "pr_data=[]" >> $GITHUB_ENV
echo '{"pr_data": []}' > pr_data.json
exit 0
fi

echo "pr_data=$merged_prs" >> $GITHUB_ENV
echo "$merged_prs" > pr_data.json

- name: Setup Python v3.10.12
uses: actions/setup-python@v5
with:
python-version: "3.10.12"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install PyYAML julep

- name: Send PR data to Python script
if: steps.collect_prs.outputs.pr_data != '[]'
id: generate_changelog
run: |
if ! python scripts/generate_changelog.py; then
echo "Error: Failed to generate changelog"
exit 1
fi
env:
JULEP_API_KEY: ${{ secrets.JULEP_API_KEY }}
TASK_UUID: ${{ secrets.TASK_UUID }}
AGENT_UUID: ${{ secrets.AGENT_UUID }}

- name: Create Pull Request
if: success() && steps.collect_prs.outputs.pr_data != '[]'
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore(changelog): update CHANGELOG.md"
title: "Update CHANGELOG.md"
body: "This PR updates the changelog with PRs from the last 2 weeks."
branch: "update-changelog"
delete-branch: true
add-paths: |
CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
pull_request:
paths:
- 'typespec/**'
push:
push:
paths:
- 'typespec/**'

Expand All @@ -16,39 +16,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- uses: actions/setup-node@v4
with:
node-version: 'latest'
cache: npm
cache-dependency-path: 'typespec/package-lock.json'

- name: Install libboost
run: sudo apt-get install -y libboost-all-dev

- name: Install and configure Poetry
uses: snok/install-poetry@v1

- name: Configure Poetry to use .venv
run: |
cd agents-api
poetry config virtualenvs.in-project true

- name: Cache Poetry virtualenv
uses: actions/cache@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
path: agents-api/.venv
key: ${{ runner.os }}-agents-api-poetry-${{ hashFiles('agents-api/poetry.lock') }}
restore-keys: |
${{ runner.os }}-agents-api-poetry-
enable-cache: true

- name: Install dependencies
run: |
cd agents-api
poetry install
- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Generate openapi code
run: |
Expand Down
30 changes: 8 additions & 22 deletions .github/workflows/lint-agents-api-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,25 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install libboost
run: sudo apt-get install -y libboost-all-dev

- name: Install and configure Poetry
uses: snok/install-poetry@v1

- name: Configure Poetry to use .venv
run: |
cd agents-api
poetry config virtualenvs.in-project true

- name: Cache Poetry virtualenv
uses: actions/cache@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
path: agents-api/.venv
key: ${{ runner.os }}-agents-api-poetry-${{ hashFiles('agents-api/poetry.lock') }}
restore-keys: |
${{ runner.os }}-agents-api-poetry-
enable-cache: true

- name: Install dependencies
- name: Set up python and install dependencies
run: |
cd agents-api
poetry install
uv python install
uv sync --all-extras --dev

- name: Lint and format
run: |
cd agents-api
poetry run poe format
poetry run poe lint
uv run poe format
uv run poe lint

- uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down
Loading
Loading