friday-framework 0.1.0a0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,452 @@
1
+ Metadata-Version: 2.4
2
+ Name: friday-framework
3
+ Version: 0.1.0a0
4
+ Summary: Friday Agentic Framework Workspace
5
+ Project-URL: Homepage, https://github.com/CIChuck/agent-framework
6
+ Project-URL: Repository, https://github.com/CIChuck/agent-framework
7
+ Project-URL: Issues, https://github.com/CIChuck/agent-framework/issues
8
+ Project-URL: Documentation, https://github.com/CIChuck/agent-framework/tree/main/docs
9
+ Project-URL: Source, https://github.com/CIChuck/agent-framework
10
+ Author: Friday Team
11
+ License-Expression: MIT
12
+ License-File: LICENSE
13
+ Keywords: agents,ai,llm,memory
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Requires-Python: >=3.10
23
+ Requires-Dist: friday-chat==0.1.0a0
24
+ Requires-Dist: friday-framework-agent==0.1.0a0
25
+ Requires-Dist: friday-framework-cli==0.1.0a0
26
+ Requires-Dist: friday-framework-core==0.1.0a0
27
+ Requires-Dist: friday-framework-llm==0.1.0a0
28
+ Requires-Dist: friday-framework-memory==0.1.0a0
29
+ Requires-Dist: friday-framework-runtime==0.1.0a0
30
+ Requires-Dist: friday-framework-telemetry==0.1.0a0
31
+ Requires-Dist: friday-framework-tools==0.1.0a0
32
+ Requires-Dist: friday-framework-transcript==0.1.0a0
33
+ Provides-Extra: all
34
+ Requires-Dist: friday-chat[finance,moltbook,sandbox,speech]==0.1.0a0; extra == 'all'
35
+ Requires-Dist: friday-framework-finance==0.1.0a0; extra == 'all'
36
+ Requires-Dist: friday-framework-llm[langfuse]==0.1.0a0; extra == 'all'
37
+ Requires-Dist: friday-framework-mcp==0.1.0a0; extra == 'all'
38
+ Requires-Dist: friday-framework-moltbook==0.1.0a0; extra == 'all'
39
+ Requires-Dist: friday-framework-sandbox==0.1.0a0; extra == 'all'
40
+ Requires-Dist: friday-framework-speech[elevenlabs,picovoice]==0.1.0a0; extra == 'all'
41
+ Requires-Dist: friday-framework-tools[all-adapters,all-formats,finance,moltbook,sandbox]==0.1.0a0; extra == 'all'
42
+ Provides-Extra: dev
43
+ Requires-Dist: mypy>=1.10.0; extra == 'dev'
44
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
45
+ Requires-Dist: pytest>=8.0.0; extra == 'dev'
46
+ Requires-Dist: respx>=0.20.0; extra == 'dev'
47
+ Requires-Dist: ruff>=0.4.0; extra == 'dev'
48
+ Requires-Dist: types-pyyaml>=6.0.12; extra == 'dev'
49
+ Provides-Extra: documents
50
+ Requires-Dist: friday-framework-tools[documents]==0.1.0a0; extra == 'documents'
51
+ Provides-Extra: finance
52
+ Requires-Dist: friday-chat[finance]==0.1.0a0; extra == 'finance'
53
+ Requires-Dist: friday-framework-finance==0.1.0a0; extra == 'finance'
54
+ Requires-Dist: friday-framework-tools[finance]==0.1.0a0; extra == 'finance'
55
+ Provides-Extra: langfuse
56
+ Requires-Dist: friday-framework-llm[langfuse]==0.1.0a0; extra == 'langfuse'
57
+ Provides-Extra: mcp
58
+ Requires-Dist: friday-framework-mcp==0.1.0a0; extra == 'mcp'
59
+ Provides-Extra: moltbook
60
+ Requires-Dist: friday-chat[moltbook]==0.1.0a0; extra == 'moltbook'
61
+ Requires-Dist: friday-framework-moltbook==0.1.0a0; extra == 'moltbook'
62
+ Requires-Dist: friday-framework-tools[moltbook]==0.1.0a0; extra == 'moltbook'
63
+ Provides-Extra: sandbox
64
+ Requires-Dist: friday-chat[sandbox]==0.1.0a0; extra == 'sandbox'
65
+ Requires-Dist: friday-framework-sandbox==0.1.0a0; extra == 'sandbox'
66
+ Requires-Dist: friday-framework-tools[sandbox]==0.1.0a0; extra == 'sandbox'
67
+ Provides-Extra: speech
68
+ Requires-Dist: friday-chat[speech]==0.1.0a0; extra == 'speech'
69
+ Requires-Dist: friday-framework-speech[elevenlabs,picovoice]==0.1.0a0; extra == 'speech'
70
+ Provides-Extra: spreadsheets
71
+ Requires-Dist: friday-framework-tools[spreadsheets]==0.1.0a0; extra == 'spreadsheets'
72
+ Description-Content-Type: text/markdown
73
+
74
+ # Friday Agent Framework
75
+
76
+ Friday is a Python framework for building AI agents that can remember, retrieve,
77
+ act, and collaborate across sessions. The project is organized as a `uv`
78
+ workspace of independently useful packages covering memory, LLM access, agent
79
+ orchestration, tools, transcripts, telemetry, sandboxing, MCP integration, and
80
+ runtime assembly.
81
+
82
+ The core idea is simple: an agent should not start from zero every time it is
83
+ called. Friday gives agents a memory loop that records what happened, extracts
84
+ what was learned, retrieves relevant context, and feeds that context back into
85
+ future turns.
86
+
87
+ Status: `v0.1.0`, alpha. The memory, agent, runtime, and tool packages contain
88
+ substantial implementation, but the repository is still under active
89
+ architectural cleanup. Some documentation describes the target system as well as
90
+ the current system.
91
+
92
+ ## What Friday Provides
93
+
94
+ - Three-tier memory:
95
+ - Episodic memory for conversation history and transcripts.
96
+ - Semantic memory for embedding-backed recall.
97
+ - Associative memory for entity and relationship graphs.
98
+ - Context engineering:
99
+ - Retrieval from memory stores.
100
+ - Token-budget-aware prompt assembly.
101
+ - Session priming and lifecycle-aware memory inclusion.
102
+ - Agent orchestration:
103
+ - Interactive ReAct-style agents.
104
+ - Multi-agent routing and delegation.
105
+ - Workflow/task graph execution with human-in-the-loop support.
106
+ - Tooling:
107
+ - Filesystem, shell, web, git, data, text, code, system, finance, and memory
108
+ tools.
109
+ - Tool schemas for LLM function/tool calling.
110
+ - Prompt-injection-aware output handling.
111
+ - Runtime infrastructure:
112
+ - Headless runtime kernel.
113
+ - Dependency injection for memory, LLM, telemetry, transcripts, and tools.
114
+ - CLI-facing presentation components.
115
+ - Observability:
116
+ - Structured logging.
117
+ - Telemetry interfaces and providers.
118
+ - Persistent transcripts and export formats.
119
+ - Extensibility:
120
+ - Protocol-oriented interfaces for memory stores, LLM clients, tools,
121
+ transcripts, telemetry, and runtime services.
122
+ - MCP client/server integration.
123
+ - Optional local/cloud/hybrid model routing through LiteLLM-compatible
124
+ services.
125
+
126
+ ## Repository Layout
127
+
128
+ ```text
129
+ .
130
+ ├── docs/
131
+ │ ├── guides/ # Product and usage documentation
132
+ │ ├── policies/ # Repository engineering policy
133
+ │ └── design/ # Design notes and implementation plans
134
+ ├── experiments/ # Labs and exploratory work
135
+ ├── packages/ # Python workspace packages
136
+ ├── tests/ # Top-level integration/lab/unit suites
137
+ ├── main.py # Minimal smoke entry point
138
+ ├── pyproject.toml # Root workspace project
139
+ └── uv.lock # Locked dependency graph
140
+ ```
141
+
142
+ The root project is a convenience workspace package named `friday`. Most code
143
+ lives under `packages/`.
144
+
145
+ ## Package Map
146
+
147
+ | Package | Purpose | Notes |
148
+ | --- | --- | --- |
149
+ | `friday-core` | Shared interfaces, config, logging, security primitives, exceptions | Intended foundation layer. Some current factory/bridge code still reaches into concrete packages. |
150
+ | `friday-telemetry` | Telemetry records, interfaces, providers, helper models | Includes debug and OpenTelemetry-style provider support. |
151
+ | `friday-llm` | LiteLLM-backed chat and embedding services | Includes resilience, pricing, telemetry helpers, and provider config. |
152
+ | `friday-transcript` | Persistent transcript models, stores, and exporters | SQLite and JSONL-oriented transcript storage/export support. |
153
+ | `friday-memory` | Memory controller, adapters, lifecycle, retrieval, context assembly, ingestion, multi-agent memory | The largest and most central package. |
154
+ | `friday-agent` | Agent base classes, interactive/Copilot agents, registries, orchestration, workflows, built-in agent tools | `CopilotAgent` currently aliases the interactive runtime agent for compatibility. |
155
+ | `friday-runtime` | Headless runtime kernel and dependency injection | Preferred assembly layer for creating full framework services. |
156
+ | `friday-cli` | Terminal display/input/session components and server hooks | The declared `friday` console entry point is still under development in this checkout. |
157
+ | `friday-tools` | General and integration tool catalog | Includes filesystem, shell, web, git, data, document, code, memory, finance, and integration tools. |
158
+ | `friday-sandbox` | Workspace and subprocess/Docker sandbox support | Used by execution-related tools and runtime isolation work. |
159
+ | `friday-mcp` | Model Context Protocol client/server integration | Supports stdio/SSE-oriented MCP components. |
160
+ | `friday-speech` | Speech service interfaces, selection, chunking, playback, adapters | Optional Picovoice and ElevenLabs extras are defined. |
161
+ | `friday-finance` | Financial data provider integration | Includes a `friday-finance-demo` script. |
162
+ | `friday-moltbook` | Moltbook API client and Pydantic models | Used by Moltbook integration tools. |
163
+ | `friday-optimization` | DSPy/lab optimization package | Currently a playground package rather than a core runtime dependency. |
164
+
165
+ ## Architecture Overview
166
+
167
+ Friday separates agent work into two broad areas:
168
+
169
+ ```text
170
+ User input
171
+ |
172
+ v
173
+ RuntimeKernel / DI container
174
+ |
175
+ +--> LLM service
176
+ +--> Tool registry
177
+ +--> Transcript store
178
+ +--> MemoryController
179
+ |
180
+ +--> Episodic store conversation turns
181
+ +--> Vector store semantic memories
182
+ +--> Graph store entities and relationships
183
+ +--> Collection manager lifecycle-aware memory collections
184
+ |
185
+ v
186
+ Agent / Orchestrator / Workflow engine
187
+ |
188
+ +--> Context assembly
189
+ +--> LLM inference
190
+ +--> Tool execution
191
+ +--> Transcript and memory archival
192
+ ```
193
+
194
+ The memory loop is the central design:
195
+
196
+ 1. A user asks a question or gives a task.
197
+ 2. Friday retrieves relevant prior context from memory.
198
+ 3. The agent sends an assembled prompt to an LLM.
199
+ 4. The LLM responds directly or requests tool calls.
200
+ 5. Tool results are sanitized, wrapped, and returned to the model.
201
+ 6. The turn is archived to transcript/episodic memory.
202
+ 7. Extracted insights, entities, and relationships are stored for future turns.
203
+ 8. Lifecycle jobs can promote, decay, compact, or reorganize memories over time.
204
+
205
+ ## Installation
206
+
207
+ Friday uses `uv` for workspace development.
208
+
209
+ ```bash
210
+ uv sync --all-extras
211
+ ```
212
+
213
+ For a lighter development install, the default sync is usually enough:
214
+
215
+ ```bash
216
+ uv sync
217
+ ```
218
+
219
+ Then verify imports:
220
+
221
+ ```bash
222
+ uv run python -c "from friday_runtime import RuntimeKernel; from friday_agent import InteractiveAgent; print('Friday imports OK')"
223
+ ```
224
+
225
+ ## Configuration
226
+
227
+ Start from the example environment file:
228
+
229
+ ```bash
230
+ cp .env.example .env
231
+ ```
232
+
233
+ Minimum useful environment:
234
+
235
+ ```bash
236
+ APP_ENV=development
237
+ LOG_LEVEL=INFO
238
+ OPENAI_API_KEY=sk-proj-...
239
+ ```
240
+
241
+ Common runtime variables include:
242
+
243
+ ```bash
244
+ FRIDAY_LLM_MODEL=gpt-4o-mini
245
+ FRIDAY_CHROMA_PATH=.friday/chroma
246
+ FRIDAY_CHROMA_COLLECTION=friday_memory
247
+ FRIDAY_TELEMETRY_ENABLED=false
248
+ ```
249
+
250
+ Local or enterprise model gateways can be configured through the runtime and LLM
251
+ configuration objects. See [docs/guides/10-configuration.md](docs/guides/10-configuration.md)
252
+ for the full configuration guide.
253
+
254
+ ## Programmatic Usage
255
+
256
+ The headless runtime is the main composition API for applications that want to
257
+ embed Friday without a CLI.
258
+
259
+ ```python
260
+ import asyncio
261
+
262
+ from friday_core.profiles import MemoryProfile
263
+ from friday_runtime import RuntimeConfig, RuntimeKernel
264
+
265
+
266
+ async def main() -> None:
267
+ config = RuntimeConfig.from_env()
268
+ kernel = RuntimeKernel(config=config, memory_profile=MemoryProfile.FULL)
269
+
270
+ await kernel.start()
271
+ try:
272
+ # Agent spawning requires configured agent profiles.
273
+ # See docs/guides/06-agents.md for profile structure.
274
+ agent = kernel.spawn_agent("assistant")
275
+ response = await agent.run("What do you remember about this project?")
276
+ print(response)
277
+ finally:
278
+ await kernel.stop()
279
+
280
+
281
+ if __name__ == "__main__":
282
+ asyncio.run(main())
283
+ ```
284
+
285
+ For lower-level use, individual packages can be imported directly:
286
+
287
+ ```python
288
+ from friday_llm import LiteLLMService
289
+ from friday_memory import ContextAssembler, MemoryController
290
+ from friday_agent import AgentProfile, InteractiveAgent
291
+ from friday_tools import get_default_registry
292
+ ```
293
+
294
+ ## Development Commands
295
+
296
+ Install dependencies:
297
+
298
+ ```bash
299
+ uv sync --all-extras
300
+ ```
301
+
302
+ Run tests:
303
+
304
+ ```bash
305
+ uv run pytest
306
+ ```
307
+
308
+ Run a focused package test suite:
309
+
310
+ ```bash
311
+ uv run pytest packages/friday-memory/tests_memory
312
+ uv run pytest packages/friday-agent/tests_agent
313
+ uv run pytest packages/friday-runtime/tests_runtime
314
+ ```
315
+
316
+ Run linting:
317
+
318
+ ```bash
319
+ uv run ruff check .
320
+ ```
321
+
322
+ Run type checking:
323
+
324
+ ```bash
325
+ uv run mypy packages tests main.py
326
+ ```
327
+
328
+ Run the minimal smoke entry point:
329
+
330
+ ```bash
331
+ uv run python main.py
332
+ ```
333
+
334
+ ## Testing Notes
335
+
336
+ The repository uses:
337
+
338
+ - `pytest`
339
+ - `pytest-asyncio`
340
+ - `ruff`
341
+ - `mypy`
342
+
343
+ Tests are distributed by package, usually under `packages/<package>/tests_*`.
344
+ Top-level integration and lab tests live under `tests/` and `experiments/`.
345
+
346
+ Some tests and integrations require provider credentials, local model services,
347
+ network access, Docker, or pre-existing local state. Prefer focused package tests
348
+ while developing a narrow change.
349
+
350
+ ## Security Model
351
+
352
+ Friday treats tool outputs and external content as untrusted. The security
353
+ subsystem is designed around:
354
+
355
+ - Normalizing tool output before scanning.
356
+ - Detecting prompt-injection patterns.
357
+ - Wrapping tool output with provenance markers.
358
+ - Quarantining, redacting, warning, or blocking risky content.
359
+ - Avoiding persistence of raw malicious tool output into memory stores.
360
+
361
+ See [docs/guides/security-configuration-guidelines.md](docs/guides/security-configuration-guidelines.md)
362
+ for configuration details and the tool onboarding checklist.
363
+
364
+ ## Documentation
365
+
366
+ Primary product guides:
367
+
368
+ - [Executive summary](docs/guides/01-executive-summary.md)
369
+ - [Getting started](docs/guides/02-getting-started.md)
370
+ - [Core concepts and architecture](docs/guides/03-core-concepts.md)
371
+ - [Adaptive memory](docs/guides/04-adaptive-memory.md)
372
+ - [Tools](docs/guides/05-tools.md)
373
+ - [Agents](docs/guides/06-agents.md)
374
+ - [Multi-agent orchestration](docs/guides/07-multi-agent.md)
375
+ - [Workflows](docs/guides/08-workflows.md)
376
+ - [CLI reference](docs/guides/09-cli-reference.md)
377
+ - [Configuration](docs/guides/10-configuration.md)
378
+ - [Advanced topics](docs/guides/11-advanced-topics.md)
379
+ - [Use cases](docs/guides/12-use-cases.md)
380
+ - [Troubleshooting](docs/guides/13-troubleshooting.md)
381
+ - [Appendices](docs/guides/14-appendices.md)
382
+ - [Contributing](docs/guides/15-contributing.md)
383
+
384
+ Repository policy:
385
+
386
+ - [Repository engineering policy](docs/reference/policies/repository-engineering-policy.md)
387
+
388
+ Important note: the guides are extensive and useful, but some package-layout and
389
+ CLI details are ahead of or behind the current code. When making code changes,
390
+ prefer the repository policy and current package metadata as the source of truth.
391
+
392
+ ## Engineering Policy
393
+
394
+ The canonical engineering policy is
395
+ [docs/reference/policies/repository-engineering-policy.md](docs/reference/policies/repository-engineering-policy.md).
396
+ Key rules:
397
+
398
+ - Do not add file-level `# mypy: ignore-errors` under `packages/*/src` without
399
+ an explicit waiver.
400
+ - Do not rely on `assert` as the sole enforcement for essential runtime
401
+ invariants.
402
+ - Prefer typed models, declared interfaces, and explicit contracts at package
403
+ boundaries.
404
+ - Prefer interface fixes over repeated `cast(...)`.
405
+ - Keep runtime credentials and local state out of the repository.
406
+
407
+ ## Local State and Secrets
408
+
409
+ Do not commit:
410
+
411
+ - `.env`
412
+ - `.friday/`
413
+ - `chroma_db/`
414
+ - provider API keys
415
+ - local transcript/vector/graph stores
416
+ - generated caches such as `__pycache__`, `.pytest_cache`, and `.ruff_cache`
417
+
418
+ ## Current Development Caveats
419
+
420
+ This repository is actively evolving. A few areas are especially worth knowing
421
+ before building on it:
422
+
423
+ - The package architecture has grown beyond older documentation that describes
424
+ an eight-package workspace.
425
+ - The root `main.py` is only a minimal smoke script.
426
+ - The `friday-cli` package contains useful terminal components, but the declared
427
+ console application entry point is not yet a complete CLI in this checkout.
428
+ - `friday-optimization` is currently lab-oriented.
429
+ - Some integration and backup code under `tests/` is legacy or experimental and
430
+ may not represent stable public API usage.
431
+
432
+ ## Contributing
433
+
434
+ Before changing code:
435
+
436
+ 1. Read [docs/reference/policies/repository-engineering-policy.md](docs/reference/policies/repository-engineering-policy.md).
437
+ 2. Identify the package boundary affected by the change.
438
+ 3. Prefer narrow, typed contracts over incidental cross-package imports.
439
+ 4. Add focused regression tests for behavior changes.
440
+ 5. Run the narrowest meaningful tests, then broader validation when practical.
441
+
442
+ Pull requests should include:
443
+
444
+ - What changed.
445
+ - Why it changed.
446
+ - How to validate it.
447
+ - Package or configuration implications.
448
+ - Any migration notes for public contracts or persisted data.
449
+
450
+ ## License
451
+
452
+ The root project metadata declares the project as MIT licensed.
@@ -0,0 +1,4 @@
1
+ friday_framework-0.1.0a0.dist-info/METADATA,sha256=i8_9MnlE7XW06oGl3Jww7kkcu98SBWRsNJAPSDjBe1o,16887
2
+ friday_framework-0.1.0a0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
3
+ friday_framework-0.1.0a0.dist-info/licenses/LICENSE,sha256=RIF6KZ9STdAcoZ4v9vlGIZn02PTsskXO0fXlbWl0KEc,1068
4
+ friday_framework-0.1.0a0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Friday Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.