Building AI agents, atomically
fix(chat_history): support nested multimodal content in get_history()
KennyVaneetvelde72ce85595843
diff --git a/atomic-agents/atomic_agents/context/chat_history.py b/atomic-agents/atomic_agents/context/chat_history.pyindex 13a18a8..23f88e4 100644--- a/atomic-agents/atomic_agents/context/chat_history.py+++ b/atomic-agents/atomic_agents/context/chat_history.py@@ -97,64 +97,87 @@ class ChatHistory:either a single JSON string or a mixed array of JSON and multimodal objects.Note:- This method supports multimodal content by keeping multimodal objects- separate while generating cohesive JSON for text-based fields.+ This method supports multimodal content at any nesting depth by+ recursively extracting multimodal objects and using Pydantic's+ model_dump_json(exclude=...) for proper serialization of remaining fields."""history = []for message in self.history:input_content = message.content+ multimodal_objects, exclude_spec = self._extract_multimodal_info(input_content)- # Check if content has any multimodal fields- multimodal_objects = []- has_multimodal = False-- # Extract multimodal content first- for field_name, field in input_content.__class__.model_fields.items():- field_value = getattr(input_content, field_name)-- if isinstance(field_value, list):- for item in field_value:- if isinstance(item, INSTRUCTOR_MULTIMODAL_TYPES):- multimodal_objects.append(item)- has_multimodal = True- elif isinstance(field_value, INSTRUCTOR_MULTIMODAL_TYPES):- multimodal_objects.append(field_value)- has_multimodal = True-- if has_multimodal:- # For multimodal content: create mixed array with JSON + multimodal objects+ if multimodal_objects:processed_content = []-- # Add single cohesive JSON for all non-multimodal fields- non_multimodal_data = {}- for field_name, field in input_content.__class__.model_fields.items():- field_value = getattr(input_content, field_name)-- if isinstance(field_value, list):- # Only include non-multimodal items from lists- non_multimodal_items = [- item for item in field_value if not isinstance(item, INSTRUCTOR_MULTIMODAL_TYPES)- ]- if non_multimodal_items:- non_multimodal_data[field_name] = non_multimodal_items- elif not isinstance(field_value, INSTRUCTOR_MULTIMODAL_TYPES):- non_multimodal_data[field_name] = field_value-- # Add single JSON string if there are non-multimodal fields- if non_multimodal_data:- processed_content.append(json.dumps(non_multimodal_data, ensure_ascii=False))-- # Add all multimodal objects+ content_json = input_content.model_dump_json(exclude=exclude_spec)+ if content_json and content_json != "{}":+ processed_content.append(content_json)processed_content.extend(multimodal_objects)-history.append({"role": message.role, "content": processed_content})else:- # No multimodal content: generate single cohesive JSON stringcontent_json = input_content.model_dump_json()history.append({"role": message.role, "content": content_json})return history+ @staticmethod+ def _extract_multimodal_info(obj):+ """+ Recursively extract multimodal objects and build a Pydantic-compatible exclude spec.++ Walks the object tree to find all Instructor multimodal types (Image, Audio, PDF)+ at any nesting depth, collecting them into a flat list and building an exclude+ specification that can be passed to model_dump_json(exclude=...).++ Args:+ obj: The object to inspect (BaseIOSchema, list, dict, or primitive).++ Returns:+ tuple: (multimodal_objects, exclude_spec) where:+ - multimodal_objects: flat list of all multimodal objects found+ - exclude_spec: Pydantic exclude dict, True (exclude entirely), or None+ """+ if isinstance(obj, INSTRUCTOR_MULTIMODAL_TYPES):+ return [obj], True++ if hasattr(obj, "__class__") and hasattr(obj.__class__, "model_fields"):+ all_objects = []+ exclude = {}+ for field_name in obj.__class__.model_fields:+ if hasattr(obj, field_name):+ field_value = getattr(obj, field_name)+ objects, sub_exclude = ChatHistory._extract_multimodal_info(field_value)+ if objects:+ all_objects.extend(objects)+ exclude[field_name] = sub_exclude+ return all_objects, (exclude if exclude else None)++ if isinstance(obj, list):+ all_objects = []+ exclude = {}+ for i, item in enumerate(obj):+ objects, sub_exclude = ChatHistory._extract_multimodal_info(item)+ if objects:+ all_objects.extend(objects)+ exclude[i] = sub_exclude+ if not all_objects:+ return [], None+ # If every item in the list is fully multimodal, exclude the entire field+ if len(exclude) == len(obj) and all(v is True for v in exclude.values()):+ return all_objects, True+ return all_objects, exclude++ if isinstance(obj, dict):+ all_objects = []+ exclude = {}+ for k, v in obj.items():+ objects, sub_exclude = ChatHistory._extract_multimodal_info(v)+ if objects:+ all_objects.extend(objects)+ exclude[k] = sub_exclude+ return all_objects, (exclude if exclude else None)++ return [], None+def copy(self) -> "ChatHistory":"""Creates a copy of the chat history.diff --git a/atomic-agents/tests/context/test_chat_history.py b/atomic-agents/tests/context/test_chat_history.pyindex 91d3f77..2f850c9 100644--- a/atomic-agents/tests/context/test_chat_history.py+++ b/atomic-agents/tests/context/test_chat_history.py@@ -538,3 +538,185 @@ def test_process_multimodal_paths_comprehensive():assert loaded_content.images[0].source == Path("test/sample.jpg")assert isinstance(loaded_content.pdfs[0].source, Path)assert loaded_content.pdfs[0].source == Path("test/doc.pdf")+++def test_get_history_nested_pydantic_with_toplevel_multimodal(history):+ """Issue #208: nested Pydantic model + top-level multimodal causes json.dumps TypeError"""++ class ContextInfo(BaseIOSchema):+ """Nested context info."""++ label: str = Field(..., description="Label")+ value: str = Field(..., description="Value")++ class AgentInput(BaseIOSchema):+ """Input with multimodal and nested schema."""++ instruction: str = Field(..., description="Instruction text")+ images: List[instructor.Image] = Field(..., description="Images")+ context: ContextInfo = Field(..., description="Nested context")++ mock_image = instructor.Image(source="test_url", media_type="image/jpeg", detail="low")+ context = ContextInfo(label="example", value="nested")+ content = AgentInput(instruction="Do something", images=[mock_image], context=context)++ history.add_message("user", content)+ result = history.get_history()++ assert len(result) == 1+ assert result[0]["role"] == "user"+ assert isinstance(result[0]["content"], list)++ json_part = json.loads(result[0]["content"][0])+ assert json_part["instruction"] == "Do something"+ assert json_part["context"] == {"label": "example", "value": "nested"}+ assert "images" not in json_part+ assert result[0]["content"][1] == mock_image+++def test_get_history_deeply_nested_multimodal_only(history):+ """Issue #141: multimodal inside nested schema with no top-level multimodal"""++ class Document(BaseIOSchema):+ """PDF document with owner."""++ pdf: instructor.multimodal.PDF = Field(..., description="The PDF data")+ owner: str = Field(..., description="The PDF owner")++ class InputSchema(BaseIOSchema):+ """A list of documents to analyze."""++ documents: List[Document] = Field(..., description="List of documents")+ instruction: str = Field(..., description="What to do")++ mock_pdf = instructor.multimodal.PDF(source="test_pdf_url", media_type="application/pdf", detail="low")+ content = InputSchema(+ documents=[Document(pdf=mock_pdf, owner="Alice")],+ instruction="Analyze these",+ )++ history.add_message("user", content)+ result = history.get_history()++ assert len(result) == 1+ assert isinstance(result[0]["content"], list)++ json_part = json.loads(result[0]["content"][0])+ assert json_part["instruction"] == "Analyze these"+ assert json_part["documents"] == [{"owner": "Alice"}]+ assert result[0]["content"][1] == mock_pdf+++def test_get_history_mixed_nested_and_toplevel_multimodal(history):+ """Both nested and top-level multimodal content"""++ class Attachment(BaseIOSchema):+ """An attachment with an image."""++ image: instructor.Image = Field(..., description="Attached image")+ caption: str = Field(..., description="Caption")++ class MessageInput(BaseIOSchema):+ """Message with both nested and top-level multimodal."""++ text: str = Field(..., description="Message text")+ inline_image: instructor.Image = Field(..., description="Inline image")+ attachment: Attachment = Field(..., description="An attachment")++ img1 = instructor.Image(source="inline_url", media_type="image/jpeg", detail="low")+ img2 = instructor.Image(source="attached_url", media_type="image/png", detail="low")+ content = MessageInput(+ text="Check this out",+ inline_image=img1,+ attachment=Attachment(image=img2, caption="See here"),+ )++ history.add_message("user", content)+ result = history.get_history()++ assert len(result) == 1+ assert isinstance(result[0]["content"], list)++ json_part = json.loads(result[0]["content"][0])+ assert json_part["text"] == "Check this out"+ assert json_part["attachment"] == {"caption": "See here"}+ assert "inline_image" not in json_part+ assert img1 in result[0]["content"]+ assert img2 in result[0]["content"]+++def test_get_history_list_of_nested_schemas_with_multimodal(history):+ """Multiple nested schemas each containing multimodal objects"""++ class Document(BaseIOSchema):+ """A document with PDF."""++ pdf: instructor.multimodal.PDF = Field(..., description="The PDF")+ title: str = Field(..., description="Document title")++ class BatchInput(BaseIOSchema):+ """Batch of documents."""++ documents: List[Document] = Field(..., description="Documents to process")++ pdf1 = instructor.multimodal.PDF(source="doc1.pdf", media_type="application/pdf", detail="low")+ pdf2 = instructor.multimodal.PDF(source="doc2.pdf", media_type="application/pdf", detail="low")+ content = BatchInput(+ documents=[+ Document(pdf=pdf1, title="First"),+ Document(pdf=pdf2, title="Second"),+ ]+ )++ history.add_message("user", content)+ result = history.get_history()++ assert len(result) == 1+ assert isinstance(result[0]["content"], list)++ json_part = json.loads(result[0]["content"][0])+ assert json_part["documents"] == [{"title": "First"}, {"title": "Second"}]+ assert pdf1 in result[0]["content"]+ assert pdf2 in result[0]["content"]+++def test_get_history_only_multimodal_fields(history):+ """Schema where ALL fields are multimodal - JSON should be omitted"""++ class ImagesOnly(BaseIOSchema):+ """Only images."""++ images: List[instructor.Image] = Field(..., description="Images")++ img1 = instructor.Image(source="url1", media_type="image/jpeg", detail="low")+ img2 = instructor.Image(source="url2", media_type="image/jpeg", detail="low")+ content = ImagesOnly(images=[img1, img2])++ history.add_message("user", content)+ result = history.get_history()++ assert len(result) == 1+ assert isinstance(result[0]["content"], list)+ # No JSON string should be present since all fields are multimodal+ assert all(not isinstance(item, str) for item in result[0]["content"])+ assert img1 in result[0]["content"]+ assert img2 in result[0]["content"]+++def test_get_history_no_multimodal_unchanged(history):+ """Non-multimodal schemas should work exactly as before"""++ class SimpleInput(BaseIOSchema):+ """Simple input."""++ text: str = Field(..., description="Text")+ count: int = Field(..., description="Count")++ content = SimpleInput(text="hello", count=42)+ history.add_message("user", content)+ result = history.get_history()++ assert len(result) == 1+ assert result[0]["role"] == "user"+ assert isinstance(result[0]["content"], str)+ assert json.loads(result[0]["content"]) == {"text": "hello", "count": 42}diff --git a/atomic-examples/nested-multimodal/README.md b/atomic-examples/nested-multimodal/README.mdnew file mode 100644index 0000000..eaf95d0--- /dev/null+++ b/atomic-examples/nested-multimodal/README.md@@ -0,0 +1,68 @@+# Nested Multimodal Example++This example demonstrates how to use the Atomic Agents framework with **nested multimodal content** — images and PDFs inside nested Pydantic schemas, not just at the top level.++This showcases the fixes for:+- [#208](https://github.com/BrainBlend-AI/atomic-agents/issues/208): ChatHistory crashes with `TypeError` when schemas have both multimodal fields and nested Pydantic models+- [#141](https://github.com/BrainBlend-AI/atomic-agents/issues/141): AgentMemory doesn't support multimodal data inside nested schemas++## Features++1. **Nested Multimodal Schemas**: Images embedded inside nested Pydantic models (e.g., `Document.image`)+2. **Mixed Content**: Top-level multimodal fields combined with nested Pydantic context objects+3. **End-to-End Verification**: Verifies the chat history format is correct before making the LLM call++## Getting Started++1. Navigate to the nested-multimodal directory:++ ```bash+ cd atomic-agents/atomic-examples/nested-multimodal+ ```++2. Install dependencies using uv:++ ```bash+ uv sync+ ```++3. Set up environment variables:++ Create a `.env` file with:+ ```env+ OPENAI_API_KEY=your_openai_api_key+ ```++4. Run the example:++ ```bash+ uv run python nested_multimodal/main.py+ ```++## Schema Design++The example uses nested schemas that would have previously caused errors:++```python+class AnalysisContext(BaseIOSchema):+ """Nested context — a plain Pydantic model alongside multimodal fields."""+ focus_area: str+ detail_level: str++class ImageWithContext(BaseIOSchema):+ """Image wrapped in a nested schema with metadata."""+ image: instructor.Image+ label: str++class AnalysisInput(BaseIOSchema):+ """Top-level input combining nested multimodal + nested context."""+ documents: List[ImageWithContext] # Images nested inside schemas+ context: AnalysisContext # Nested Pydantic model+ instruction: str+```++The framework recursively extracts `Image` objects from any nesting depth and serializes the remaining fields using Pydantic's `model_dump_json(exclude=...)`.++## License++This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.diff --git a/atomic-examples/nested-multimodal/nested_multimodal/main.py b/atomic-examples/nested-multimodal/nested_multimodal/main.pynew file mode 100644index 0000000..43f245c--- /dev/null+++ b/atomic-examples/nested-multimodal/nested_multimodal/main.py@@ -0,0 +1,179 @@+"""+Nested Multimodal Example+=========================++Demonstrates that Atomic Agents correctly handles multimodal content (images,+PDFs) inside nested Pydantic schemas — not just at the top level.++This example exercises the fixes for:+ - GitHub #208: nested Pydantic model + top-level multimodal → TypeError+ - GitHub #141: multimodal inside nested schemas invisible to ChatHistory+"""++import json+import os+from typing import List++import instructor+import openai+from dotenv import load_dotenv+from pydantic import Field++from atomic_agents import AtomicAgent, AgentConfig, BaseIOSchema+from atomic_agents.context import SystemPromptGenerator++load_dotenv()++# ---------------------------------------------------------------------------+# API key+# ---------------------------------------------------------------------------+API_KEY = ""+if not API_KEY:+ API_KEY = os.getenv("OPENAI_API_KEY")++if not API_KEY:+ raise ValueError(+ "API key is not set. Please set the API key as a static variable or in the environment variable OPENAI_API_KEY."+ )+++# ---------------------------------------------------------------------------+# Schemas — nested multimodal content+# ---------------------------------------------------------------------------+class AnalysisContext(BaseIOSchema):+ """Additional context for the analysis request."""++ focus_area: str = Field(..., description="What aspect to focus the analysis on")+ detail_level: str = Field(..., description="How detailed the analysis should be (brief / detailed)")+++class ImageWithContext(BaseIOSchema):+ """An image wrapped in a nested schema together with metadata."""++ image: instructor.Image = Field(..., description="The image to analyze")+ label: str = Field(..., description="A short human-readable label for this image")+++class AnalysisInput(BaseIOSchema):+ """Input schema that combines nested multimodal content with a nested Pydantic context object."""++ documents: List[ImageWithContext] = Field(..., description="Images to analyze, each with a label")+ context: AnalysisContext = Field(..., description="Analysis context and preferences")+ instruction: str = Field(..., description="What the agent should do with the images")+++class AnalysisOutput(BaseIOSchema):+ """Structured output from the image analysis."""++ summary: str = Field(..., description="Overall summary of all analyzed images")+ per_image: List[str] = Field(..., description="One description per image, in the same order as the input")+++# ---------------------------------------------------------------------------+# Agent+# ---------------------------------------------------------------------------+agent = AtomicAgent[AnalysisInput, AnalysisOutput](+ config=AgentConfig(+ client=instructor.from_openai(openai.OpenAI(api_key=API_KEY)),+ model="gpt-5-mini",+ model_api_parameters={"reasoning_effort": "low"},+ system_prompt_generator=SystemPromptGenerator(+ background=[+ "You are an image analysis assistant.",+ "You receive images wrapped inside document objects, each with a label.",+ "You also receive a context object that tells you what to focus on.",+ ],+ steps=[+ "1. Look at each image and its label.",+ "2. Analyze according to the focus_area and detail_level in the context.",+ "3. Write a per-image description and an overall summary.",+ ],+ output_instructions=[+ "Return a summary covering all images and a list of per-image descriptions.",+ ],+ ),+ )+)+++# ---------------------------------------------------------------------------+# Helpers+# ---------------------------------------------------------------------------+def verify_history_format(agent_instance: AtomicAgent) -> None:+ """Print the serialized chat history so we can confirm the fix works."""+ history = agent_instance.history.get_history()+ print("\n--- Chat history entries ---")+ for i, entry in enumerate(history):+ role = entry["role"]+ content = entry["content"]+ if isinstance(content, list):+ text_parts = [json.loads(c) if isinstance(c, str) else type(c).__name__ for c in content]+ print(f" [{i}] role={role} content (list with {len(content)} items):")+ for j, part in enumerate(text_parts):+ print(f" [{j}] {part}")+ else:+ print(f" [{i}] role={role} content={content[:120]}...")+ print("--- end ---\n")+++# ---------------------------------------------------------------------------+# Main+# ---------------------------------------------------------------------------+def main():+ print("=== Nested Multimodal Example ===\n")++ # Build the input — images nested inside ImageWithContext schemas+ script_dir = os.path.dirname(os.path.abspath(__file__))+ test_images_dir = os.path.join(os.path.dirname(script_dir), "test_images")+ image_path = os.path.join(test_images_dir, "nutrition_label_1.png")++ analysis_input = AnalysisInput(+ documents=[+ ImageWithContext(+ image=instructor.Image.from_path(image_path),+ label="Nutrition label photo",+ ),+ ],+ context=AnalysisContext(+ focus_area="nutritional content",+ detail_level="brief",+ ),+ instruction="Describe what you see in each image, paying attention to the focus area.",+ )++ # --- Verify the history format (no LLM call yet) -----------------------+ print("Step 1: Adding message to history and verifying serialization...\n")+ agent.history.add_message("user", analysis_input)+ verify_history_format(agent)++ # Confirm the nested Image was extracted and the nested AnalysisContext+ # was serialized properly (this is what Issues #208 / #141 broke).+ history = agent.history.get_history()+ assert isinstance(history[0]["content"], list), "Content should be a multimodal list"+ json_part = json.loads(history[0]["content"][0])+ assert "context" in json_part, "Nested AnalysisContext should be in the JSON"+ assert json_part["context"]["focus_area"] == "nutritional content"+ assert any(isinstance(item, instructor.Image) for item in history[0]["content"]), (+ "Image should be extracted into the content list"+ )+ print("Serialization OK — nested context preserved, nested image extracted.\n")++ # Reset history before the real run (the agent adds messages internally)+ agent.reset_history()++ # --- End-to-end LLM call ------------------------------------------------+ print("Step 2: Running the agent end-to-end...\n")+ result = agent.run(analysis_input)++ print("Agent response:")+ print(f" Summary : {result.summary}")+ for i, desc in enumerate(result.per_image, 1):+ print(f" Image {i}: {desc}")++ # Show the full history after the run+ verify_history_format(agent)+ print("Done — nested multimodal schemas work end-to-end!")+++if __name__ == "__main__":+ main()diff --git a/atomic-examples/nested-multimodal/pyproject.toml b/atomic-examples/nested-multimodal/pyproject.tomlnew file mode 100644index 0000000..c6c610d--- /dev/null+++ b/atomic-examples/nested-multimodal/pyproject.toml@@ -0,0 +1,25 @@+[build-system]+requires = ["hatchling"]+build-backend = "hatchling.build"++[tool.hatch.build.targets.wheel]+packages = ["nested_multimodal"]++[project]+name = "nested-multimodal"+version = "1.0.0"+description = "Nested multimodal example demonstrating images/PDFs inside nested Pydantic schemas"+readme = "README.md"+authors = [+ { name = "Kenny Vaneetvelde", email = "[email protected]" }+]+requires-python = ">=3.12"+dependencies = [+ "atomic-agents",+ "instructor==1.13.0",+ "openai>=2.0.0,<3.0.0",+ "python-dotenv>=1.0.0,<2.0.0",+]++[tool.uv.sources]+atomic-agents = { workspace = true }diff --git a/atomic-examples/nested-multimodal/test_images/nutrition_label_1.png b/atomic-examples/nested-multimodal/test_images/nutrition_label_1.pngnew file mode 100644index 0000000..fdd7379Binary files /dev/null and b/atomic-examples/nested-multimodal/test_images/nutrition_label_1.png differdiff --git a/uv.lock b/uv.lockindex 27774d2..7bddc0e 100644--- a/uv.lock+++ b/uv.lock@@ -19,6 +19,7 @@ members = ["example-mcp-server","fastapi-memory","hooks-example",+ "nested-multimodal","orchestration-agent","progressive-disclosure","quickstart",@@ -1456,6 +1457,7 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/f8/0a/a3871375c7b9727edaeeea994bfff7c63ff7804c9829c19309ba2e058807/greenlet-3.3.0-cp312-cp312-macosx_11_0_universal2.whl", hash = "sha256:b01548f6e0b9e9784a2c99c5651e5dc89ffcbe870bc5fb2e5ef864e9cc6b5dcb", size = 276379, upload-time = "2025-12-04T14:23:30.498Z" },{ url = "https://files.pythonhosted.org/packages/43/ab/7ebfe34dce8b87be0d11dae91acbf76f7b8246bf9d6b319c741f99fa59c6/greenlet-3.3.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:349345b770dc88f81506c6861d22a6ccd422207829d2c854ae2af8025af303e3", size = 597294, upload-time = "2025-12-04T14:50:06.847Z" },{ url = "https://files.pythonhosted.org/packages/a4/39/f1c8da50024feecd0793dbd5e08f526809b8ab5609224a2da40aad3a7641/greenlet-3.3.0-cp312-cp312-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:e8e18ed6995e9e2c0b4ed264d2cf89260ab3ac7e13555b8032b25a74c6d18655", size = 607742, upload-time = "2025-12-04T14:57:42.349Z" },+ { url = "https://files.pythonhosted.org/packages/77/cb/43692bcd5f7a0da6ec0ec6d58ee7cddb606d055ce94a62ac9b1aa481e969/greenlet-3.3.0-cp312-cp312-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:c024b1e5696626890038e34f76140ed1daf858e37496d33f2af57f06189e70d7", size = 622297, upload-time = "2025-12-04T15:07:13.552Z" },{ url = "https://files.pythonhosted.org/packages/75/b0/6bde0b1011a60782108c01de5913c588cf51a839174538d266de15e4bf4d/greenlet-3.3.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:047ab3df20ede6a57c35c14bf5200fcf04039d50f908270d3f9a7a82064f543b", size = 609885, upload-time = "2025-12-04T14:26:02.368Z" },{ url = "https://files.pythonhosted.org/packages/49/0e/49b46ac39f931f59f987b7cd9f34bfec8ef81d2a1e6e00682f55be5de9f4/greenlet-3.3.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:2d9ad37fc657b1102ec880e637cccf20191581f75c64087a549e66c57e1ceb53", size = 1567424, upload-time = "2025-12-04T15:04:23.757Z" },{ url = "https://files.pythonhosted.org/packages/05/f5/49a9ac2dff7f10091935def9165c90236d8f175afb27cbed38fb1d61ab6b/greenlet-3.3.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:83cd0e36932e0e7f36a64b732a6f60c2fc2df28c351bae79fbaf4f8092fe7614", size = 1636017, upload-time = "2025-12-04T14:27:29.688Z" },@@ -1463,6 +1465,7 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/02/2f/28592176381b9ab2cafa12829ba7b472d177f3acc35d8fbcf3673d966fff/greenlet-3.3.0-cp313-cp313-macosx_11_0_universal2.whl", hash = "sha256:a1e41a81c7e2825822f4e068c48cb2196002362619e2d70b148f20a831c00739", size = 275140, upload-time = "2025-12-04T14:23:01.282Z" },{ url = "https://files.pythonhosted.org/packages/2c/80/fbe937bf81e9fca98c981fe499e59a3f45df2a04da0baa5c2be0dca0d329/greenlet-3.3.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9f515a47d02da4d30caaa85b69474cec77b7929b2e936ff7fb853d42f4bf8808", size = 599219, upload-time = "2025-12-04T14:50:08.309Z" },{ url = "https://files.pythonhosted.org/packages/c2/ff/7c985128f0514271b8268476af89aee6866df5eec04ac17dcfbc676213df/greenlet-3.3.0-cp313-cp313-manylinux_2_24_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:7d2d9fd66bfadf230b385fdc90426fcd6eb64db54b40c495b72ac0feb5766c54", size = 610211, upload-time = "2025-12-04T14:57:43.968Z" },+ { url = "https://files.pythonhosted.org/packages/79/07/c47a82d881319ec18a4510bb30463ed6891f2ad2c1901ed5ec23d3de351f/greenlet-3.3.0-cp313-cp313-manylinux_2_24_s390x.manylinux_2_28_s390x.whl", hash = "sha256:30a6e28487a790417d036088b3bcb3f3ac7d8babaa7d0139edbaddebf3af9492", size = 624311, upload-time = "2025-12-04T15:07:14.697Z" },{ url = "https://files.pythonhosted.org/packages/fd/8e/424b8c6e78bd9837d14ff7df01a9829fc883ba2ab4ea787d4f848435f23f/greenlet-3.3.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:087ea5e004437321508a8d6f20efc4cfec5e3c30118e1417ea96ed1d93950527", size = 612833, upload-time = "2025-12-04T14:26:03.669Z" },{ url = "https://files.pythonhosted.org/packages/b5/ba/56699ff9b7c76ca12f1cdc27a886d0f81f2189c3455ff9f65246780f713d/greenlet-3.3.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ab97cf74045343f6c60a39913fa59710e4bd26a536ce7ab2397adf8b27e67c39", size = 1567256, upload-time = "2025-12-04T15:04:25.276Z" },{ url = "https://files.pythonhosted.org/packages/1e/37/f31136132967982d698c71a281a8901daf1a8fbab935dce7c0cf15f942cc/greenlet-3.3.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:5375d2e23184629112ca1ea89a53389dddbffcf417dad40125713d88eb5f96e8", size = 1636483, upload-time = "2025-12-04T14:27:30.804Z" },@@ -2387,6 +2390,25 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/1d/f6/6d61a023d758f488e36638076e8a4ec4447a2cdf86938cf6c60cf1c860e6/myst_parser-2.0.0-py3-none-any.whl", hash = "sha256:7c36344ae39c8e740dad7fdabf5aa6fc4897a813083c6cc9990044eb93656b14", size = 77158, upload-time = "2023-06-13T16:30:27.697Z" },]+[[package]]+name = "nested-multimodal"+version = "1.0.0"+source = { editable = "atomic-examples/nested-multimodal" }+dependencies = [+ { name = "atomic-agents" },+ { name = "instructor" },+ { name = "openai" },+ { name = "python-dotenv" },+]++[package.metadata]+requires-dist = [+ { name = "atomic-agents", editable = "." },+ { name = "instructor", specifier = "==1.13.0" },+ { name = "openai", specifier = ">=2.0.0,<3.0.0" },+ { name = "python-dotenv", specifier = ">=1.0.0,<2.0.0" },+]+[[package]]name = "nodeenv"version = "1.9.1"