flatagents 2.4.2__tar.gz → 2.4.4__tar.gz
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.
- {flatagents-2.4.2 → flatagents-2.4.4}/.gitignore +1 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/PKG-INFO +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/__init__.py +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagent.d.ts +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagent.slim.d.ts +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagents-runtime.d.ts +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagents-runtime.schema.json +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagents-runtime.slim.d.ts +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatmachine.d.ts +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatmachine.slim.d.ts +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/profiles.d.ts +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/profiles.slim.d.ts +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/monitoring.py +5 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/pyproject.toml +1 -1
- {flatagents-2.4.2 → flatagents-2.4.4}/MACHINES.md +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/README.md +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/README.md +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/__init__.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagent.schema.json +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatmachine.schema.json +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/profiles.schema.json +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/baseagent.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/flatagent.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/profiles.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/__init__.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/anthropic.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/cerebras.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/openai.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/openai_codex_auth.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/openai_codex_client.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/openai_codex_login.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/openai_codex_types.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/tool_loop.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/tools.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/utils.py +0 -0
- {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/validation.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: flatagents
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.4
|
|
4
4
|
Summary: A lightweight framework for building LLM-powered agents.
|
|
5
5
|
Project-URL: Homepage, https://github.com/memgrafter/flatagents
|
|
6
6
|
Project-URL: Repository, https://github.com/memgrafter/flatagents
|
|
@@ -252,7 +252,7 @@ export interface BackendConfig {
|
|
|
252
252
|
dynamodb_table?: string;
|
|
253
253
|
aws_region?: string;
|
|
254
254
|
}
|
|
255
|
-
export const SPEC_VERSION = "2.4.
|
|
255
|
+
export const SPEC_VERSION = "2.4.4";
|
|
256
256
|
export interface SDKRuntimeWrapper {
|
|
257
257
|
spec: "flatagents-runtime";
|
|
258
258
|
spec_version: typeof SPEC_VERSION;
|
|
@@ -480,7 +480,11 @@ class AgentMonitor:
|
|
|
480
480
|
if "input_tokens" in self.metrics or "output_tokens" in self.metrics:
|
|
481
481
|
in_tok = self.metrics.get("input_tokens", 0)
|
|
482
482
|
out_tok = self.metrics.get("output_tokens", 0)
|
|
483
|
-
|
|
483
|
+
tok_str = f"tokens: {in_tok}→{out_tok}"
|
|
484
|
+
cached = self.metrics.get("cache_read_tokens", 0)
|
|
485
|
+
if cached:
|
|
486
|
+
tok_str += f" (cached: {cached})"
|
|
487
|
+
log_parts.append(tok_str)
|
|
484
488
|
|
|
485
489
|
# Add rate limit info if available
|
|
486
490
|
if "ratelimit_remaining_requests" in self.metrics:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|