“We’ve seen no evidence of that and very frankly, my view is that with regards to reconciliation, unless they’re convinced that the United States is going to win and that they’re going to be defeated, I think it’s very difficult to proceed with a reconciliation that’s going to be meaningful,” he said.

Mr. Obama, speaking later after the Group of 20 meeting in Toronto, noted that as the Afghanistan war approached its 10th anniversary, it was the longest foreign war in American history, and that “ultimately as was true in Iraq, so will be true in Afghanistan, we will have to have a political solution.”

As for Pakistan’s effort to broker talks, Mr. Obama added: “I think it’s too early to tell. I think we have to view these efforts with skepticism but also with openness. The Taliban is a blend of hard-core ideologues, tribal leaders, kids that basically sign up because it’s the best job available to them. Not all of them are going to be thinking the same way about the Afghan government, about the future of Afghanistan. And so we’re going to have to sort through how these talks take place.”

The president avoided any direct comment on whether the Haqqani network, the Taliban element reportedly proposed by Pakistan as part of a deal, could become part of Afghanistan’s future leadership. But he said that “conversations between the Afghan government and the Pakistani government, building trust between those two governments, are a useful step.”

The comments Sunday were the administration’s first public response to a report of Pakistan’s deal-brokering efforts last week in The New York Times.