This commit is contained in:
Dhanji Prasanna
2025-09-26 21:38:01 +10:00
parent dd20e0bb01
commit 5ef4a74468
3 changed files with 4 additions and 2 deletions

View File

@@ -228,3 +228,5 @@ fn display_context_progress(agent: &Agent) {
progress_bar, percentage, context.used_tokens, context.total_tokens
);
}

View File

@@ -565,7 +565,7 @@ impl Agent {
let provider = self.providers.get(None)?;
let system_prompt = if provider.has_native_tool_calling() {
// For native tool calling providers, use a more explicit system prompt
"You are G3, a general-purpose AI agent. Your goal is to analyze and solve problems by writing code.
"You are G3, a general-purpose AI agent. Your goal is to analyze and solve problems by writing code. The current directory always contains a project that the user is working on and likely referring to.
You have access to tools. When you need to accomplish a task, you MUST use the appropriate tool immediately. Do not just describe what you would do - actually use the tools.

View File

@@ -316,7 +316,7 @@ impl AnthropicProvider {
match serde_json::from_str::<AnthropicStreamEvent>(data) {
Ok(event) => {
debug!("Parsed event: {:?}", event);
debug!("Parsed event type: {}, event: {:?}", event.event_type, event);
match event.event_type.as_str() {
"content_block_start" => {
debug!("Received content_block_start event: {:?}", event);