fix(composio): align v3 execute path and honor configured entity_id (#322)
This commit is contained in:
parent
a403b5f5b1
commit
23b0f360c2
6 changed files with 86 additions and 32 deletions
|
|
@ -583,16 +583,20 @@ pub async fn run(
|
|||
tracing::info!(backend = mem.name(), "Memory initialized");
|
||||
|
||||
// ── Tools (including memory tools) ────────────────────────────
|
||||
let composio_key = if config.composio.enabled {
|
||||
config.composio.api_key.as_deref()
|
||||
let (composio_key, composio_entity_id) = if config.composio.enabled {
|
||||
(
|
||||
config.composio.api_key.as_deref(),
|
||||
Some(config.composio.entity_id.as_str()),
|
||||
)
|
||||
} else {
|
||||
None
|
||||
(None, None)
|
||||
};
|
||||
let tools_registry = tools::all_tools_with_runtime(
|
||||
&security,
|
||||
runtime,
|
||||
mem.clone(),
|
||||
composio_key,
|
||||
composio_entity_id,
|
||||
&config.browser,
|
||||
&config.http_request,
|
||||
&config.workspace_dir,
|
||||
|
|
@ -670,7 +674,7 @@ pub async fn run(
|
|||
if config.composio.enabled {
|
||||
tool_descs.push((
|
||||
"composio",
|
||||
"Execute actions on 1000+ apps via Composio (Gmail, Notion, GitHub, Slack, etc.). Use action='list' to discover, 'execute' to run, 'connect' to OAuth.",
|
||||
"Execute actions on 1000+ apps via Composio (Gmail, Notion, GitHub, Slack, etc.). Use action='list' to discover, 'execute' to run (optionally with connected_account_id), 'connect' to OAuth.",
|
||||
));
|
||||
}
|
||||
tool_descs.push((
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue