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

Function test_explicit_skill_call

examples/test_chart_generator.py:101–114  ·  view source on GitHub ↗

Test explicit skill invocation

()

Source from the content-addressed store, hash-verified

99 print()
100
101def test_explicit_skill_call():
102 """Test explicit skill invocation"""
103 print("=" * 60)
104 print("Test 5: Explicit Skill Call")
105 print("=" * 60)
106
107 agent = Agent.create("agent.acl")
108 session = agent.session(".", builtin_skills=True)
109
110 # Register the chart-generator skill if not already registered
111 result = session.send("/chart-generator Show sales trend: Q1=100, Q2=120, Q3=150, Q4=180")
112
113 print(result.text)
114 print()
115
116if __name__ == "__main__":
117 print("\n" + "=" * 60)

Callers 1

Calls 3

createMethod · 0.45
sessionMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected