feat: add robust XML output support throughout the agentic framework (#841)

pull/849/head
Pavan Kumar 3 weeks ago
parent a2d0e50feb
commit fc06897b4e

@ -3,4 +3,4 @@ from swarms.utils.history_output_formatter import (
)
# Use the OutputType for type annotations
output_type: OutputType
output_type: OutputType # OutputType now includes 'xml'

@ -121,7 +121,7 @@ class SwarmRouter:
shared_memory_system (Any, optional): Shared memory system for agents. Defaults to None.
rules (str, optional): Rules to inject into every agent. Defaults to None.
documents (List[str], optional): List of document file paths to use. Defaults to empty list.
output_type (str, optional): Output format type. Defaults to "string".
output_type (str, optional): Output format type. Defaults to "string". Supported: 'str', 'string', 'list', 'json', 'dict', 'yaml', 'xml'.
Attributes:
name (str): Name identifier for the SwarmRouter instance
@ -136,7 +136,7 @@ class SwarmRouter:
shared_memory_system (Any): Shared memory system for agents
rules (str): Rules injected into every agent
documents (List[str]): List of document file paths
output_type (str): Output format type
output_type (str): Output format type. Supported: 'str', 'string', 'list', 'json', 'dict', 'yaml', 'xml'.
logs (List[SwarmLog]): List of execution logs
swarm: The instantiated swarm object

Loading…
Cancel
Save