MCPcopy Index your code
hub / github.com/AI45Lab/Code / test_multiple_charts

Function test_multiple_charts

examples/test_chart_generator.py:60–77  ·  view source on GitHub ↗

Test generating multiple charts

()

Source from the content-addressed store, hash-verified

58 print()
59
60def test_multiple_charts():
61 """Test generating multiple charts"""
62 print("=" * 60)
63 print("Test 3: Multiple Charts")
64 print("=" * 60)
65
66 agent = Agent.create("agent.acl")
67 session = agent.session(".", builtin_skills=True)
68
69 result = session.send("""
70 Create two charts using vis-chart format:
71
72 1. Line chart: Monthly revenue (Jan: 45k, Feb: 52k, Mar: 48k, Apr: 61k)
73 2. Pie chart: Browser share (Chrome: 65%, Firefox: 15%, Safari: 12%, Edge: 8%)
74 """)
75
76 print(result.text)
77 print()
78
79def test_chart_type_selection():
80 """Test automatic chart type selection"""

Callers 1

Calls 3

createMethod · 0.45
sessionMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected