minor
This commit is contained in:
@@ -228,3 +228,5 @@ fn display_context_progress(agent: &Agent) {
|
||||
progress_bar, percentage, context.used_tokens, context.total_tokens
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user