Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions examples/lead-agent/backend-rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,12 @@ async fn score_leads(
println!("[DEBUG] Parsed JSON string result");
parsed
}
Err(_) => {
println!("[DEBUG] Result is not JSON string, using as-is");
Err(e) => {
println!("[DEBUG] Failed to parse JSON string: {}", e);
println!("[DEBUG] Result string length: {}", result_str.len());
println!("[DEBUG] Result string preview (first 500 chars): {}",
result_str.chars().take(500).collect::<String>());
// If parsing fails, return the raw string as a JSON value
result
}
}
Expand Down
6,690 changes: 3,345 additions & 3,345 deletions examples/lead-agent/frontend/package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion examples/lead-agent/lead-score-flow/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
.env
__pycache__/
5 changes: 1 addition & 4 deletions examples/lead-agent/lead-score-flow/runagent.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,5 @@
}
]
},
"env_vars": {
"OPENAI_API_KEY": "",
"SERPER_API_KEY": ""
}
"agent_id": "89aef000-0000-0000-0000-000000000000"
}
2 changes: 1 addition & 1 deletion examples/lead-agent/runagent_sdk/python/test_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from runagent import RunAgentClient

client = RunAgentClient(
agent_id="48d831b5-b090-40ae-bef3-83ba5be61583",
agent_id="89aef000-0000-0000-0000-000000000000",
entrypoint_tag="lead_score_flow",
local=False
)
Expand Down
3 changes: 2 additions & 1 deletion examples/recipe_creator/agents/runagent.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
"tag": "recipe_stream"
}
]
}
},
"agent_id": "76aef000-0000-0000-0000-000000000000"
}
4 changes: 2 additions & 2 deletions examples/recipe_creator/sdk/python/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def test_non_streaming():
print("-" * 50)

client = RunAgentClient(
agent_id="ea9267bf-ce87-4717-a896-923539b77dab",
agent_id="76aef000-0000-0000-0000-000000000000",
entrypoint_tag="recipe_create",
local=False
)
Expand All @@ -47,7 +47,7 @@ def test_streaming():
print("-" * 50)

client = RunAgentClient(
agent_id="ea9267bf-ce87-4717-a896-923539b77dab",
agent_id="76aef000-0000-0000-0000-000000000000",
entrypoint_tag="recipe_stream",
local=False
)
Expand Down
8 changes: 8 additions & 0 deletions runagent-rust/runagent/src/client/runagent_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ impl RunAgentClient {
// Return the raw string for now
return Ok(output_data.clone());
}
// If it's a JSON string, try to parse it first
if let Ok(parsed) = serde_json::from_str::<Value>(content_str) {
return self.serializer.deserialize_object(parsed);
}
}
return self.serializer.deserialize_object(output_data.clone());
}
Expand All @@ -268,6 +272,10 @@ impl RunAgentClient {
// Return the raw string for now
return Ok(output_data.clone());
}
// If it's a JSON string, try to parse it first
if let Ok(parsed) = serde_json::from_str::<Value>(content_str) {
return self.serializer.deserialize_object(parsed);
}
}
return self.serializer.deserialize_object(output_data.clone());
}
Expand Down
2 changes: 1 addition & 1 deletion runagent-rust/runagent/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub const ENV_LOCAL_CACHE_DIRECTORY: &str = "RUNAGENT_CACHE_DIR";
pub const ENV_RUNAGENT_LOGGING_LEVEL: &str = "RUNAGENT_LOGGING_LEVEL";

/// Default base URL
pub const DEFAULT_BASE_URL: &str = "http://20.84.81.110:8335/";
pub const DEFAULT_BASE_URL: &str = "https://backend.run-agent.ai/";

/// Agent config file name
pub const AGENT_CONFIG_FILE_NAME: &str = "runagent.config.json";
Expand Down
1 change: 0 additions & 1 deletion runagent/utils/gitignore.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def __init__(self, root_path: Path):
'*.egg-info/',
'.installed.cfg',
'*.egg',
'.env',
'.venv/',
'venv/',
'env/',
Expand Down
2 changes: 1 addition & 1 deletion templates/agno/default/runagent.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
}
]
},
"agent_id": "00000000-0000-0000-0000-000000000000"
"agent_id": "abc4f000-0000-0000-0000-000000000000"
}

4 changes: 2 additions & 2 deletions test_scripts/python/client_test_agno.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# from runagent import RunAgentClient

# ra = RunAgentClient(
# agent_id="71b31b58-c2d6-49ab-b564-d72b1a449df7",
# agent_id="55ddf000-0000-0000-0000-000000000000",
# entrypoint_tag="agno_print_response",
# local=False
# )
Expand All @@ -17,7 +17,7 @@
from runagent import RunAgentClient

ra = RunAgentClient(
agent_id="c12d3486-cbf6-4d3a-b58b-e5a9c0dfe311",
agent_id="abc4f000-0000-0000-0000-000000000000",
entrypoint_tag="agno_print_response_stream",
local=False
)
Expand Down