MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_basic_chart

Function test_basic_chart

examples/test_chart_generator.py:11–27  ·  view source on GitHub ↗

Test basic chart generation

()

Source from the content-addressed store, hash-verified

9from a3s_code import Agent, SessionOptions
10
11def test_basic_chart():
12 """Test basic chart generation"""
13 print("=" * 60)
14 print("Test 1: Basic Line Chart")
15 print("=" * 60)
16
17 agent = Agent.create("agent.acl")
18 session = agent.session(".", builtin_skills=True)
19
20 result = session.send("""
21 Create a line chart showing quarterly sales:
22 Q1: 120, Q2: 150, Q3: 180, Q4: 220
23 Use vis-chart format.
24 """)
25
26 print(result.text)
27 print()
28
29def test_data_file_chart():
30 """Test chart generation from data file"""

Callers 1

Calls 3

createMethod · 0.45
sessionMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected