Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
ed1dbd1
Add ALTK Agent with tool validation and comprehensive tests
Nov 13, 2025
dfce983
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 13, 2025
d732664
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 13, 2025
7ac153c
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Nov 13, 2025
e4a8a10
minor fix to execute_tool that was left out.
Nov 13, 2025
017f60f
Fixes following coderabbitai comments.
Nov 13, 2025
e693f74
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 13, 2025
7df715b
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 13, 2025
bf861ab
Merge branch 'main' into pr/10587
edwinjosechittilappilly Nov 13, 2025
87d0d27
Update component_index.json
edwinjosechittilappilly Nov 13, 2025
9d06c37
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 13, 2025
f0c5799
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 13, 2025
6354622
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Nov 13, 2025
7b778ce
Add custom message to dict conversion in ValidatedTool
edwinjosechittilappilly Nov 13, 2025
f6c20c2
Merge branch 'fix_base_message_conversion' into pr/10587
edwinjosechittilappilly Nov 13, 2025
b2fdccf
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 13, 2025
627eef1
Merge branch 'main' into altk_agent_clean_pr
edwinjosechittilappilly Nov 13, 2025
7699f11
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 13, 2025
d199aca
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 13, 2025
483af42
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Nov 13, 2025
077ebf6
Merge branch 'main' into pr/10587
edwinjosechittilappilly Nov 13, 2025
8064072
Add Notion integration components to index
edwinjosechittilappilly Nov 13, 2025
15ebdd0
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 13, 2025
8809833
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 13, 2025
6dd0501
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Nov 13, 2025
8e92f44
Merge branch 'main' into altk_agent_clean_pr
edwinjosechittilappilly Nov 13, 2025
da77b5d
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 13, 2025
d6368cf
Merge branch 'main' into altk_agent_clean_pr
edwinjosechittilappilly Nov 13, 2025
d33b9e2
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 13, 2025
56e8ab2
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 13, 2025
86f0e02
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Nov 13, 2025
432fe57
Merge branch 'main' into altk_agent_clean_pr
edwinjosechittilappilly Nov 14, 2025
5595c18
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 14, 2025
272b295
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 14, 2025
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
Prev Previous commit
Next Next commit
minor fix to execute_tool that was left out.
  • Loading branch information
Koren Lazar committed Nov 13, 2025
commit e4a8a102042b9328ccc10ba999b2a23a1870771b
22 changes: 10 additions & 12 deletions src/lfx/src/lfx/base/agents/altk_base_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,16 @@ def _run(self, *args, **kwargs) -> str:

def _execute_tool(self, *args, **kwargs) -> str:
"""Execute the wrapped tool with compatibility across LC versions."""
# First try with config (for newer LangChain versions)
try:
if "config" not in kwargs:
kwargs["config"] = {}
return self.wrapped_tool.run(*args, **kwargs)
except (TypeError, AttributeError) as e:
if "config" in str(e) or "unexpected keyword argument" in str(e):
# Remove config and try again for older versions
kwargs.pop("config", None)
return self.wrapped_tool.run(*args, **kwargs)
# If run() doesn't exist or other error, re-raise
raise
# BaseTool.run() expects tool_input as first argument
if args:
# Use first arg as tool_input, pass remaining args
tool_input = args[0]
return self.wrapped_tool.run(tool_input, *args[1:])
if kwargs:
# Use kwargs dict as tool_input
return self.wrapped_tool.run(kwargs)
# No arguments - pass empty dict as tool_input
return self.wrapped_tool.run({})

def _get_altk_llm_object(self, *, use_output_val: bool = True) -> Any:
"""Extract the underlying LLM and map it to an ALTK client object."""
Expand Down