Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

enhance: file write toolkit, workforce sys (#2821)

Wendong-Fan86acb4c9bc45
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index df812e51d..e0f300768 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -26,7 +26,7 @@ body:
attributes:
label: What version of camel are you using?
description: Run command `python3 -c 'print(__import__("camel").__version__)'` in your shell and paste the output here.
- placeholder: E.g., 0.2.71a6
+ placeholder: E.g., 0.2.71a7
validations:
required: true
diff --git a/camel/__init__.py b/camel/__init__.py
index deb3957c4..6136b17e6 100644
--- a/camel/__init__.py
+++ b/camel/__init__.py
@@ -14,7 +14,7 @@
from camel.logger import disable_logging, enable_logging, set_log_level
-__version__ = '0.2.71a6'
+__version__ = '0.2.71a7'
__all__ = [
'__version__',
diff --git a/camel/societies/workforce/single_agent_worker.py b/camel/societies/workforce/single_agent_worker.py
index 188afb459..a7e7a35e9 100644
--- a/camel/societies/workforce/single_agent_worker.py
+++ b/camel/societies/workforce/single_agent_worker.py
@@ -344,6 +344,8 @@ class SingleAgentWorker(Worker):
f"{Fore.RED}Error processing task {task.id}: "
f"{type(e).__name__}: {e}{Fore.RESET}"
)
+ # Store error information in task result
+ task.result = f"{type(e).__name__}: {e!s}"
return TaskState.FAILED
finally:
# Return agent to pool or let it be garbage collected
diff --git a/camel/societies/workforce/worker.py b/camel/societies/workforce/worker.py
index d1e715bcd..5964638df 100644
--- a/camel/societies/workforce/worker.py
+++ b/camel/societies/workforce/worker.py
@@ -103,6 +103,8 @@ class Worker(BaseNode, ABC):
await self._channel.return_task(task.id)
except Exception as e:
logger.error(f"Error processing task {task.id}: {e}")
+ # Store error information in task result
+ task.result = f"{type(e).__name__}: {e!s}"
task.set_state(TaskState.FAILED)
await self._channel.return_task(task.id)
finally:
diff --git a/camel/societies/workforce/workforce.py b/camel/societies/workforce/workforce.py
index ce40513ae..ba145019a 100644
--- a/camel/societies/workforce/workforce.py
+++ b/camel/societies/workforce/workforce.py
@@ -2145,17 +2145,7 @@ class Workforce(BaseNode):
f"Current pending tasks: {len(self._pending_tasks)}, "
f"In-flight tasks: {self._in_flight_tasks}"
)
- logger.warning(error_msg)
-
- if self._pending_tasks and self._assignees:
- for task in self._pending_tasks:
- if task.id in self._assignees:
- # Mark task as failed and decrement counter
- task.set_state(TaskState.FAILED)
- self._decrement_in_flight_tasks(
- task.id, "timeout/error in _get_returned_task"
- )
- return task
+ logger.error(error_msg, exc_info=True)
return None
async def _post_ready_tasks(self) -> None:
@@ -2231,12 +2221,8 @@ class Workforce(BaseNode):
task.failure_count += 1
# Determine detailed failure information
- if is_task_result_insufficient(task):
- failure_reason = "Worker returned unhelpful "
- f"response: {task.result[:100] if task.result else ''}..."
- else:
- failure_reason = "Task marked as failed despite "
- f"having result: {(task.result or '')[:100]}..."
+ # Use the actual error/result stored in task.result
+ failure_reason = task.result or "Unknown error"
# Add context about the worker and task
worker_id = task.assigned_worker_id or "unknown"
diff --git a/camel/toolkits/file_write_toolkit.py b/camel/toolkits/file_write_toolkit.py
index 049550dae..afd67cb9b 100644
--- a/camel/toolkits/file_write_toolkit.py
+++ b/camel/toolkits/file_write_toolkit.py
@@ -14,10 +14,7 @@
import re
from datetime import datetime
from pathlib import Path
-from typing import TYPE_CHECKING, List, Optional, Tuple, Union
-
-if TYPE_CHECKING:
- from reportlab.platypus import Table
+from typing import List, Optional, Tuple, Union
from camel.logger import get_logger
from camel.toolkits.base import BaseToolkit
@@ -26,9 +23,6 @@ from camel.utils import MCPServer, dependencies_required
logger = get_logger(__name__)
-# Default format when no extension is provided
-DEFAULT_FORMAT = '.md'
-
@MCPServer()
class FileWriteToolkit(BaseToolkit):
@@ -92,6 +86,22 @@ class FileWriteToolkit(BaseToolkit):
path_obj = path_obj.parent / sanitized_filename
return path_obj.resolve()
+ def _sanitize_filename(self, filename: str) -> str:
+ r"""Sanitize a filename by replacing any character that is not
+ alphanumeric, a dot (.), hyphen (-), or underscore (_) with an
+ underscore (_).
+
+ Args:
+ filename (str): The original filename which may contain spaces or
+ special characters.
+
+ Returns:
+ str: The sanitized filename with disallowed characters replaced by
+ underscores.
+ """
+ safe = re.sub(r'[^\w\-.]', '_', filename)
+ return safe
+
def _write_text_file(
self, file_path: Path, content: str, encoding: str = "utf-8"
) -> None:
@@ -104,7 +114,6 @@ class FileWriteToolkit(BaseToolkit):
"""
with file_path.open("w", encoding=encoding) as f:
f.write(content)
- logger.debug(f"Wrote text to {file_path} with {encoding} encoding")
def _generate_unique_filename(self, file_path: Path) -> Path:
r"""Generate a unique filename if the target file already exists.
@@ -163,7 +172,6 @@ class FileWriteToolkit(BaseToolkit):
para.style = style
document.save(str(file_path))
- logger.debug(f"Wrote DOCX to {file_path} with default formatting")
@dependencies_required('reportlab')
def _write_pdf_file(
@@ -331,9 +339,6 @@ class FileWriteToolkit(BaseToolkit):
isinstance(row, list) for row in content
):
# Content is a table (List[List[str]])
- logger.debug(
- f"Processing content as table with {len(content)} rows"
- )
if content:
table = self._create_pdf_table(content)
story.append(table)
@@ -364,7 +369,6 @@ class FileWriteToolkit(BaseToolkit):
# Process content
lines = content.split('\n')
- logger.debug(f"Processing {len(lines)} lines of content")
# Parse all tables from the content first
tables = self._parse_markdown_table(lines)
@@ -396,8 +400,6 @@ class FileWriteToolkit(BaseToolkit):
)
if current_table_idx < len(tables):
- table_row_count = len(tables[current_table_idx])
- logger.debug(f"Adding table with {table_row_count} rows")
try:
table = self._create_pdf_table(
tables[current_table_idx]
@@ -530,10 +532,8 @@ class FileWriteToolkit(BaseToolkit):
addMapping(font_name, 0, 1, font_name) # italic
addMapping(font_name, 1, 0, font_name) # bold
addMapping(font_name, 1, 1, font_name) # bold italic
- logger.debug(f"Registered Chinese font: {font_path}")
return font_name
- except Exception as e:
- logger.debug(f"Failed to register font {font_path}: {e}")
+ except Exception:
continue
# Fallback to Helvetica if no Chinese font found
@@ -559,38 +559,29 @@ class FileWriteToolkit(BaseToolkit):
# Check for table (Markdown-style)
if self._is_table_row(line):
- logger.debug(f"Found table line: {line}")
-
if not in_table:
in_table = True
current_table_data = []
- logger.debug("Starting new table")
# Skip separator lines (e.g., |---|---|)
if self._is_table_separator(line):
- logger.debug("Skipping separator line")
continue
# Parse table row
cells = self._parse_table_row(line)
if cells:
current_table_data.append(cells)
- logger.debug(f"Added table row: {cells}")
continue
# If we were in a table and now we're not, finalize the table
if in_table:
if current_table_data:
- row_count = len(current_table_data)
- logger.debug(f"Finalizing table with {row_count} rows")
tables.append(current_table_data)
current_table_data = []
in_table = False
# Add any remaining table
if in_table and current_table_data:
- row_count = len(current_table_data)
- logger.debug(f"Adding final table with {row_count} rows")
tables.append(current_table_data)
return tables
@@ -646,7 +637,7 @@ class FileWriteToolkit(BaseToolkit):
return cells
- def _create_pdf_table(self, table_data: List[List[str]]) -> "Table":
+ def _create_pdf_table(self, table_data: List[List[str]]):
r"""Create a formatted table for PDF.
Args:
@@ -656,40 +647,153 @@ class FileWriteToolkit(BaseToolkit):
Table: A formatted reportlab Table object.
"""
from reportlab.lib import colors
- from reportlab.platypus import Table, TableStyle
+ from reportlab.lib.pagesizes import A4
+ from reportlab.lib.styles import ParagraphStyle
+ from reportlab.platypus import Paragraph, Table, TableStyle
try:
# Get Chinese font for table
chinese_font = self._register_chinese_font()
- # Debug: Log table data
- logger.debug(f"Creating table with {len(table_data)} rows")
- for i, row in enumerate(table_data):
- logger.debug(f"Row {i}: {row}")
+ # Calculate available width (A4 width minus margins)
+ page_width = A4[0] # A4 width in points
+ margins = 144 # left + right margins (72 each)
+ available_width = page_width - margins
+
+ # Calculate column widths and font size based on content
+ if table_data:
+ num_columns = len(table_data[0])
+
+ # Calculate max content length for each column
+ max_lengths = [0] * num_columns
+ max_cell_length = 0
+ for row in table_data:
+ for i, cell in enumerate(row):
+ if i < len(max_lengths):
+ cell_length = len(str(cell))
+ max_lengths[i] = max(max_lengths[i], cell_length)
+ max_cell_length = max(max_cell_length, cell_length)
+
+ # Dynamic font size calculation based on columns and content
+ # Base font sizes
+ base_header_font = 9
+ base_body_font = 8
+
+ # Calculate font size factor based on columns and content
+ column_factors = {10: 0.6, 8: 0.7, 6: 0.8, 4: 0.9}
+ font_size_factor = next(
+ (
+ factor
+ for cols, factor in column_factors.items()
+ if num_columns > cols
+ ),
+ 1.0,
+ )
+
+ # Further adjust if max cell content is very long
+ if max_cell_length > 30:
+ font_size_factor *= 0.8
+ elif max_cell_length > 20:
+ font_size_factor *= 0.9
+
+ header_font_size = max(
+ 5, int(base_header_font * font_size_factor)
+ )
+ body_font_size = max(5, int(base_body_font * font_size_factor))
+
+ # Calculate minimum column width based on font size
+ min_col_width = max(30, 40 * font_size_factor)
+
+ # Distribute width proportionally with minimum width
+ total_length = sum(max_lengths)
+ if total_length > 0:
+ # Calculate proportional widths
+ proportional_widths = [
+ (length / total_length) * available_width
+ for length in max_lengths
+ ]
+
+ # Ensure minimum width and adjust if necessary
+ col_widths = []
+ total_width = 0
+ for width in proportional_widths:
+ adjusted_width = max(min_col_width, width)
+ col_widths.append(adjusted_width)
+ total_width += adjusted_width
+
+ # Scale down if total exceeds available width
+ if total_width > available_width:
+ scale_factor = available_width / total_width
+ col_widths = [w * scale_factor for w in col_widths]
+ else:
+ col_widths = [available_width / num_columns] * num_columns
+
+ # Adjust padding based on font size
+ h_padding = max(2, int(6 * font_size_factor))
+ v_padding = max(2, int(4 * font_size_factor))
+ else:
+ col_widths = None
+ header_font_size = 9
+ body_font_size = 8
+ h_padding = 6
+ v_padding = 4
+
+ # Create paragraph styles for wrapping text
+ header_style = ParagraphStyle(
+ 'TableHeader',
+ fontName=chinese_font,
+ fontSize=header_font_size,
+ textColor=colors.whitesmoke,
+ alignment=0, # LEFT alignment
+ leading=header_font_size * 1.2,
+ )
- # Create table
- table = Table(table_data)
+ body_style = ParagraphStyle(
+ 'TableBody',
+ fontName=chinese_font,
+ fontSize=body_font_size,
+ textColor=colors.black,
+ alignment=0, # LEFT alignment
+ leading=body_font_size * 1.2,
+ )
+
+ # Convert table data to Paragraph objects for text wrapping
+ wrapped_data = []
+ for row_idx, row in enumerate(table_data):
+ wrapped_row = []
+ for cell in row:
+ cell_text = str(cell)
+ # Use header style for first row, body style for others
+ style = header_style if row_idx == 0 else body_style
+ # Escape special characters for XML
+ cell_text = (
+ cell_text.replace('&', '&amp;')
+ .replace('<', '&lt;')
+ .replace('>', '&gt;')
+ )
+ para = Paragraph(cell_text, style)
+ wrapped_row.append(para)
+ wrapped_data.append(wrapped_row)
- # Style the table with Chinese font support
+ # Create table with wrapped data
+ table = Table(wrapped_data, colWidths=col_widths, repeatRows=1)
+
+ # Style the table with dynamic formatting
table.setStyle(
TableStyle(
[
('BACKGROUND', (0, 0), (-1, 0), colors.grey),
- ('TEXTCOLOR', (0, 0), (-1, 0), colors.whitesmoke),
- ('ALIGN', (0, 0), (-1, -1), 'CENTER'),
- ('FONTNAME', (0, 0), (-1, 0), chinese_font),
- ('FONTSIZE', (0, 0), (-1, 0), 10),
- ('BOTTOMPADDING', (0, 0), (-1, 0), 12),
- ('BACKGROUND', (0, 1), (-1, -1), colors.beige),
- ('FONTNAME', (0, 1), (-1, -1), chinese_font),
- ('FONTSIZE', (0, 1), (-1, -1), 9),
- ('GRID', (0, 0), (-1, -1), 1, colors.black),
- ('VALIGN', (0, 0), (-1, -1), 'MIDDLE'),
+ ('BACKGROUND', (0, 1), (-1, -1), colors.white),
+ ('GRID', (0, 0), (-1, -1), 0.5, colors.black),
+ ('VALIGN', (0, 0), (-1, -1), 'TOP'),
+ ('LEFTPADDING', (0, 0), (-1, -1), h_padding),
+ ('RIGHTPADDING', (0, 0), (-1, -1), h_padding),
+ ('TOPPADDING', (0, 0), (-1, -1), v_padding),
+ ('BOTTOMPADDING', (0, 0), (-1, -1), v_padding),
]
)
)
- logger.debug("Table created successfully")
return table
except Exception as e:
@@ -708,18 +812,20 @@ class FileWriteToolkit(BaseToolkit):
Returns:
str: Text with HTML formatting.
"""
- # Bold text (check double markers first)
- text = re.sub(r'\*\*(.*?)\*\*', r'<b>\1</b>', text)
- text = re.sub(r'__(.*?)__', r'<b>\1</b>', text)
-
- # Italic text (single markers after double markers)
- text = re.sub(
- r'(?<!\*)\*(?!\*)(.*?)(?<!\*)\*(?!\*)', r'<i>\1</i>', text
- )
- text = re.sub(r'(?<!_)_(?!_)(.*?)(?<!_)_(?!_)', r'<i>\1</i>', text)
+ # Define conversion patterns
+ conversions = [
+ (r'\*\*(.*?)\*\*', r'<b>\1</b>'), # Bold with **
+ (r'__(.*?)__', r'<b>\1</b>'), # Bold with __
+ (
+ r'(?<!\*)\*(?!\*)(.*?)(?<!\*)\*(?!\*)',
+ r'<i>\1</i>',
+ ), # Italic with *
+ (r'(?<!_)_(?!_)(.*?)(?<!_)_(?!_)', r'<i>\1</i>'), # Italic with _
+ (r'`(.*?)`', r'<font name="Courier">\1</font>'), # Inline code
+ ]
- # Code (inline)
- text = re.sub(r'`(.*?)`', r'<font name="Courier">\1</font>', text)
+ for pattern, replacement in conversions:
+ text = re.sub(pattern, replacement, text)
return text
@@ -745,7 +851,6 @@ class FileWriteToolkit(BaseToolkit):
else:
writer = csv.writer(f)
writer.writerows(content)
- logger.debug(f"Wrote CSV to {file_path} with {encoding} encoding")
def _write_json_file(
self,
@@ -774,52 +879,19 @@ class FileWriteToolkit(BaseToolkit):
else:
# If not string, dump as JSON
json.dump(content, f, ensure_ascii=False)
- logger.debug(f"Wrote JSON to {file_path} with {encoding} encoding")
-
- def _write_yaml_file(
- self,
- file_path: Path,
- content: str,
- encoding: str = "utf-8",
- ) -> None:
- r"""Write YAML content to a file.
-
- Args:
- file_path (Path): The target file path.
- content (str): The YAML content as a string.
- encoding (str): Character encoding to use. (default: :obj:`utf-8`)
- """
- with file_path.open("w", encoding=encoding) as f:
- f.write(content)
- logger.debug(f"Wrote YAML to {file_path} with {encoding} encoding")
-
- def _write_html_file(
- self, file_path: Path, content: str, encoding: str = "utf-8"
- ) -> None:
- r"""Write text content to an HTML file.
-
- Args:
- file_path (Path): The target file path.
- content (str): The HTML content to write.
- encoding (str): Character encoding to use. (default: :obj:`utf-8`)
- """
- with file_path.open("w", encoding=encoding) as f:
- f.write(content)
- logger.debug(f"Wrote HTML to {file_path} with {encoding} encoding")
- def _write_markdown_file(
+ def _write_simple_text_file(
self, file_path: Path, content: str, encoding: str = "utf-8"
) -> None:
- r"""Write text content to a Markdown file.
+ r"""Write text content to a file (used for HTML, Markdown, YAML, etc.).
Args:
file_path (Path): The target file path.
- content (str): The Markdown content to write.
+ content (str): The content to write.
encoding (str): Character encoding to use. (default: :obj:`utf-8`)
"""
with file_path.open("w", encoding=encoding) as f:
f.write(content)
- logger.debug(f"Wrote Markdown to {file_path} with {encoding} encoding")
def write_to_file(
self,
@@ -861,10 +933,10 @@ class FileWriteToolkit(BaseToolkit):
extension = file_path.suffix.lower()
- # If no extension is provided, use the default format
+ # If no extension is provided, use markdown as default
if extension == "":
- file_path = file_path.with_suffix(DEFAULT_FORMAT)
- extension = DEFAULT_FORMAT
+ file_path = file_path.with_suffix('.md')
+ extension = '.md'
try:
# Get encoding or use default
@@ -884,16 +956,15 @@ class FileWriteToolkit(BaseToolkit):
content, # type: ignore[arg-type]
encoding=file_encoding,
)
- elif extension in [".yml", ".yaml"]:
- self._write_yaml_file(
- file_path, str(content), encoding=file_encoding
- )
- elif extension in [".html", ".htm"]:
- self._write_html_file(
- file_path, str(content), encoding=file_encoding
- )
- elif extension in [".md", ".markdown"]:
- self._write_markdown_file(
+ elif extension in [
+ ".yml",
+ ".yaml",
+ ".html",
+ ".htm",
+ ".md",
+ ".markdown",
+ ]:
+ self._write_simple_text_file(
file_path, str(content), encoding=file_encoding
)
else:
@@ -924,19 +995,3 @@ class FileWriteToolkit(BaseToolkit):
return [
FunctionTool(self.write_to_file),
]
-
- def _sanitize_filename(self, filename: str) -> str:
- r"""Sanitize a filename by replacing any character that is not
- alphanumeric, a dot (.), hyphen (-), or underscore (_) with an
- underscore (_).
-
- Args:
- filename (str): The original filename which may contain spaces or
- special characters.
-
- Returns:
- str: The sanitized filename with disallowed characters replaced by
- underscores.
- """
- safe = re.sub(r'[^\w\-.]', '_', filename)
- return safe
diff --git a/docs/conf.py b/docs/conf.py
index 44e50012a..c33f72501 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -27,7 +27,7 @@ sys.path.insert(0, os.path.abspath('..'))
project = 'CAMEL'
copyright = '2024, CAMEL-AI.org'
author = 'CAMEL-AI.org'
-release = '0.2.71a6'
+release = '0.2.71a7'
html_favicon = (
'https://raw.githubusercontent.com/camel-ai/camel/master/misc/favicon.png'
diff --git a/examples/workforce/eigent.py b/examples/workforce/eigent.py
index 5a9cb8efa..9ef1e9224 100644
--- a/examples/workforce/eigent.py
+++ b/examples/workforce/eigent.py
@@ -150,6 +150,7 @@ def search_agent_factory(
"switch_tab",
"enter",
"get_som_screenshot",
+ "visit_page",
]
web_toolkit_custom = HybridBrowserToolkit(
headless=False,
@@ -177,6 +178,10 @@ def search_agent_factory(
decision and action you take. Your message must include a short title
and a one-sentence description. This is a mandatory part of your
workflow.
+
+ You MUST use the `append_note` tool to record your
+ findings, make sure the note is very detailed and include all the
+ information you have gathered.
### Web Search Workflow
1. **Open Browser**: You MUST start by using the `open_browser` tool to
@@ -191,6 +196,9 @@ def search_agent_factory(
to a page. Once on a page, use browser tools to read content, scrape
information, and navigate to other linked pages to gather all
necessary data. This avoids errors from using incorrect URLs.
+ 5. **Note Taking**: You MUST use the `append_note` tool to record your
+ findings, make sure the note is very detailed and include all the
+ information you have gathered.
### Core Principles
- For each decision you make and action you take, you must send a message
@@ -260,6 +268,7 @@ def document_agent_factory(
*ExcelToolkit().get_tools(),
NoteTakingToolkit().read_note,
SearchToolkit().search_exa,
+ *TerminalToolkit().get_tools(),
]
system_message = """You are a Document Processing Assistant specialized in
@@ -346,10 +355,16 @@ def multi_modal_agent_factory(model: BaseModelBackend, task_id: str):
*VideoDownloaderToolkit().get_tools(),
*AudioAnalysisToolkit().get_tools(),
*ImageAnalysisToolkit().get_tools(),
- *OpenAIImageToolkit().get_tools(),
+ *OpenAIImageToolkit(
+ model="dall-e-3",
+ response_format="b64_json",
+ size="1024x1024",
+ quality="standard",
+ ).get_tools(),
send_message_to_user,
HumanToolkit().ask_human_via_console,
SearchToolkit().search_exa,
+ *TerminalToolkit().get_tools(),
]
system_message = """You are a Multi-Modal Processing Assistant specialized
@@ -481,6 +496,7 @@ operations.
send_message_to_user,
HumanToolkit().ask_human_via_console,
SearchToolkit().search_exa,
+ *TerminalToolkit().get_tools(),
],
)
@@ -498,7 +514,7 @@ async def main():
# Create a single model backend for all agents
model_backend = ModelFactory.create(
model_platform=ModelPlatformType.OPENAI,
- model_type=ModelType.GPT_4_1,
+ model_type=ModelType.GPT_4_1_MINI,
# model_config_dict={
# "max_tokens": 32768,
# },
@@ -506,7 +522,7 @@ async def main():
model_backend_reason = ModelFactory.create(
model_platform=ModelPlatformType.OPENAI,
- model_type=ModelType.GPT_4_1,
+ model_type=ModelType.GPT_4_1_MINI,
# model_config_dict={
# "max_tokens": 32768,
# },
diff --git a/pyproject.toml b/pyproject.toml
index 7cfeb86b6..15878a53f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
[project]
name = "camel-ai"
-version = "0.2.71a6"
+version = "0.2.71a7"
description = "Communicative Agents for AI Society Study"
authors = [{ name = "CAMEL-AI.org" }]
requires-python = ">=3.10,<3.13"
diff --git a/uv.lock b/uv.lock
index b5c9ec5a2..018c367b8 100644
--- a/uv.lock
+++ b/uv.lock
@@ -647,7 +647,7 @@ wheels = [
[[package]]
name = "camel-ai"
-version = "0.2.71a6"
+version = "0.2.71a7"
source = { editable = "." }
dependencies = [
{ name = "colorama" },
@@ -5309,7 +5309,7 @@ wheels = [
[[package]]
name = "posthog"
-version = "6.0.2"
+version = "6.0.3"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "backoff" },
@@ -5319,9 +5319,9 @@ dependencies = [
{ name = "six" },
{ name = "typing-extensions" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/d9/10/37ea988b3ae73cbfd1f2d5e523cca31cecfcc40cbd0de6511f40462fdb78/posthog-6.0.2.tar.gz", hash = "sha256:94a28e65d7a2d1b2952e53a1b97fa4d6504b8d7e4c197c57f653621e55b549eb", size = 88141, upload-time = "2025-07-02T19:21:50.306Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/39/a2/1b68562124b0d0e615fa8431cc88c84b3db6526275c2c19a419579a49277/posthog-6.0.3.tar.gz", hash = "sha256:9005abb341af8fedd9d82ca0359b3d35a9537555cdc9881bfb469f7c0b4b0ec5", size = 91861, upload-time = "2025-07-07T07:14:08.21Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/85/2c/0c5dbbf9bc30401ae2a1b6b52b8abc19e4060cf28c3288ae9d962e65e3ad/posthog-6.0.2-py3-none-any.whl", hash = "sha256:756cc9adad9e42961454f8ac391b92a2f70ebb6607d29b0c568de08e5d8f1b18", size = 104946, upload-time = "2025-07-02T19:21:48.77Z" },
+ { url = "https://files.pythonhosted.org/packages/ca/f1/a8d86245d41c8686f7d828a4959bdf483e8ac331b249b48b8c61fc884a1c/posthog-6.0.3-py3-none-any.whl", hash = "sha256:4b808c907f3623216a9362d91fdafce8e2f57a8387fb3020475c62ec809be56d", size = 108978, upload-time = "2025-07-07T07:14:06.451Z" },
]
[[package]]