Skip to content

Add warning regarding function calling and self-hosted models - #6

Merged
pavangudiwada merged 3 commits into
masterfrom
function-calling-docs
May 31, 2024
Merged

pavangudiwada merged 3 commits into
masterfrom
function-calling-docs

Conversation

@aantn

@aantn aantn commented May 31, 2024

Copy link
Copy Markdown
Collaborator

No description provided.

@aantn
aantn requested review from arikalon1 and pavangudiwada May 31, 2024 14:44

@pavangudiwada pavangudiwada left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pavangudiwada
pavangudiwada merged commit 4f20364 into master May 31, 2024
@pavangudiwada
pavangudiwada deleted the function-calling-docs branch May 31, 2024 14:48
goyamegh added a commit to goyamegh/holmesgpt that referenced this pull request Mar 9, 2026
- Rename OTEL_AWS_SERVICE → HOLMES_AWS_OSIS_SERVICE with backwards-compat
  fallback (Comment HolmesGPT#10, svrnm)
- Align OTEL_DEBUG with OTEL spec OTEL_LOG_LEVEL=debug with backwards-compat
  fallback (Comment HolmesGPT#9, svrnm)
- Add ml-commons AgentTracer.java GitHub permalink (Comment HolmesGPT#3, kylehounslow)
- Document needs_aws_auth() as single source of truth with consumer list
  (Comment HolmesGPT#4, kylehounslow)
- Clarify otel_logging.py: logs NOT exported via OTLP, naming avoids
  shadowing builtin logging (Comment HolmesGPT#5, kylehounslow)
- Explain experimental/ placement: API evolving, removable via try/except
  no-op fallbacks (Comment HolmesGPT#6, kylehounslow)
- Clarify server.py middleware: tracing/metrics init in init_otel() above,
  middleware only handles per-request spans (Comment HolmesGPT#7, kylehounslow)
- Split env var docs into Standard OTEL / Holmes-Specific tables, add
  missing vars, add OSIS hyperlink (Comments HolmesGPT#1, HolmesGPT#9, HolmesGPT#10)
- Fix no-op tracer fallback in server-agui.py for when OTEL is unavailable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Megha Goyal <goyamegh@amazon.com>
@claude claude Bot mentioned this pull request Mar 15, 2026
aantn pushed a commit that referenced this pull request Mar 21, 2026
Address 5 CodeRabbit review comments from PR #1811:

Issue #3 - Cache key inadequacy: create_tool_executor now stores a cache
key (tags, enable_all) alongside the executor and validates it on cache
hit. Callers with different parameters get a fresh executor.

Issue #4/#5 - Change detection misses added/removed toolsets:
refresh_toolsets_and_get_changes now compares name sets between old and
new toolset lists, reporting additions and removals alongside status
transitions. refresh_tool_executor always updates the cached executor
(not just when status changes exist).

Issue #6 - Race condition: Added threading.Lock around all reads and
writes of _cached_tool_executor. Added Config.cached_tool_executor
property for thread-safe external access. Updated server.py to use it.

Issue #7 - Cold-cache refresh: refresh_tool_executor now uses
FORCE_REFRESH on cold start instead of ENABLED, ensuring live
prerequisite checks rather than stale disk cache.

https://claude.ai/code/session_01Qr7wtBgYGnh1G6Bq2wPp79
Signed-off-by: Claude <noreply@anthropic.com>
aantn pushed a commit that referenced this pull request Jun 5, 2026
Live rerun with pytest -s confirms Opus 4.6 makes 0 dispatch_agent calls
on eval 272 (trace + cross-lookup). Tool #6 elasticsearch_search dumps
63,320 chars of trace data into parent context directly. That payload
is the dominant cost driver and rides along through every subsequent
turn.

This explains the −5% saving on 272 in iter 0: the dispatch_agent
description nominally covers this case but Opus does not act on it.
Next iteration: sharpen the description; if Opus still ignores it,
move to Option C (toolset surgery — hide elasticsearch_search from
parent registry when subagents_enabled=True).

Signed-off-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants