@@ -266,44 +266,13 @@ run_test() {
266266import os
267267print(f'AGENTEX_API_BASE_URL: {os.environ.get(\" AGENTEX_API_BASE_URL\" , \" NOT SET\" )}')
268268try:
269+ import agentex; print(agentex.__version__)
269270 import httpx
270271 response = httpx.get('http://localhost:5003/agents', timeout=10)
271272 print(f'✅ HTTP request successful: {response.status_code}')
272273 print(f'Response: {response.text}')
273274except Exception as e:
274275 print(f'❌ HTTP request failed: {e}')
275-
276- print('\\ n🔍 Testing AgentEx SDK send_message...')
277- try:
278- from agentex import Agentex
279- from agentex.types.agent_rpc_params import ParamsSendMessageRequest
280- from agentex.types import TextContentParam
281-
282- client = Agentex(base_url='http://localhost:5003')
283- print(f'✅ AgentEx client created successfully')
284-
285- # Make the same request as the failing test
286- response = client.agents.send_message(
287- agent_name='s000-hello-acp',
288- params=ParamsSendMessageRequest(
289- content=TextContentParam(
290- author='user',
291- content='Hello, Agent! How are you?',
292- type='text',
293- )
294- ),
295- )
296- print(f'✅ SDK send_message successful')
297- print(f'Response result: {response.result}')
298- if response.result:
299- print(f'Result length: {len(response.result)}')
300- if len(response.result) > 0:
301- print(f'First message content: {response.result[0].content}')
302-
303- except Exception as e:
304- print(f'❌ AgentEx SDK send_message failed: {e}')
305- import traceback
306- traceback.print_exc()
307276"
308277
309278 # Run the tests
0 commit comments