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
10 changes: 0 additions & 10 deletions python/src/cairo_coder/core/rag_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,6 @@ def _is_reasoning_output(self, outputs: dict[str, Any]) -> bool:
return any(k.startswith("Thought") for k in outputs if isinstance(k, str))


class LangsmithTracingCallback(BaseCallback):
@traceable()
def on_lm_start(self, call_id: str, instance: Any, inputs: dict[str, Any]) -> None:
pass

@traceable()
def on_lm_end(self, call_id: str, outputs: dict[str, Any], exception: Exception | None) -> None:
pass


@dataclass
class RagPipelineConfig:
"""Configuration for RAG Pipeline."""
Expand Down
3 changes: 1 addition & 2 deletions python/src/cairo_coder/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
from cairo_coder.core.config import VectorStoreConfig
from cairo_coder.core.rag_pipeline import (
AgentLoggingCallback,
LangsmithTracingCallback,
RagPipeline,
)
from cairo_coder.core.types import Message, Role
Expand Down Expand Up @@ -172,7 +171,7 @@ def __init__(
# TODO: This is the place where we should select the proper LLM configuration.
# TODO: For now we just Hard-code DSPY - GEMINI
dspy.configure(lm=dspy.LM("gemini/gemini-2.5-flash", max_tokens=30000), adapter=BAMLAdapter())
dspy.configure(callbacks=[AgentLoggingCallback(), LangsmithTracingCallback()])
dspy.configure(callbacks=[AgentLoggingCallback()])
dspy.configure(track_usage=True)

def _setup_routes(self):
Expand Down