Commit Graph

6 Commits

Author SHA1 Message Date
hanishkvc 8700d522a5 SimpleSallap:SimpleMCP:ToolCalls beyond initial go
Define a typealias for HttpHeaders and use it where ever needed.
Inturn map this to email.message.Message and dict for now.
If and when python evolves Http Headers type into better one,
need to replace in only one place.

Add a ToolManager class which
* maintains the list of tool calls and inturn allows any given
  tool call to be executed and response returned along with needed
  meta data
* generate the overall tool calls meta data
* add ToolCallResponseEx which maintains full TCOutResponse for
  use by tc_handle callers

Avoid duplicating handling of some of the basic needed http header
entries.

Move checking for any dependencies before enabling a tool call into
respective tc??? module.
* for now this also demotes the logic from the previous fine grained
  per tool call based dependency check to a more global dep check at
  the respective module level
2025-12-06 22:38:10 +05:30
hanishkvc cb1d91999d SimpleSallap:SimpleMCP:FileMagic switch to TCOutResponse 2025-12-06 18:21:52 +05:30
hanishkvc 66038f99cf SimpleSallap:SimpleMCP:TCWeb:XMLFiltered initial go wrt new flow
Also remember to picks the tagDropREs from passed args object and
not from got http header.

Even TCHtmlText updated to get the tags to drop from passed args
object and not got http header. And inturn allow ai to pass this
optional arg, as it sees fit in co-ordination with user.
2025-12-06 17:49:08 +05:30
hanishkvc 5bf608dedd SimpleSallap:SimpleMCP:TCWeb:HtmlText updated for new flow
Rather initial go at the new flow, things require to be tweaked
later wrt final valid runnable flow
2025-12-06 17:47:07 +05:30
hanishkvc b17cd18bc5 SimpleSallap:SimpleMCP:TCWeb:Update TCUrlRaw + Helper
Now generic handle_urlreq and handle_urlraw updated to work with the
new ToolCall flow
2025-12-06 17:45:52 +05:30
hanishkvc cbb632eec0 SimpleSallap:SimpleMCP:TCWeb: Duplicate webmagic starting point
To help with switching to tool call class++ based flow
2025-12-06 17:31:23 +05:30