Files
sdk/dist/agent.js
zeekay 1a19f15912 feat: Unified multi-language Hanzo SDK
- Consolidated Python, JavaScript, Rust, and Go SDKs
- Standard directory structure (src/py, src/js, src/rs, src/go)
- Real implementations from existing SDKs (not stubs)
- Comprehensive test framework with CI/CD matrix
- Dual distribution support (pip and npm)
- Language parity for all core commands
- Smart routing based on language strengths
2025-09-15 12:44:41 -05:00

31 lines
784 B
JavaScript

"use strict";
/**
* Agent framework
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.Agent = void 0;
class Agent {
constructor(options) {
this.name = options.name;
this.model = options.model || 'gpt-4';
this.systemPrompt = options.systemPrompt;
this.tools = options.tools || [];
}
async run(task) {
// Implementation would execute the agent
return `Task '${task}' completed by ${this.name}`;
}
addTool(tool) {
this.tools.push(tool);
}
toJSON() {
return {
name: this.name,
model: this.model,
systemPrompt: this.systemPrompt,
tools: this.tools
};
}
}
exports.Agent = Agent;
//# sourceMappingURL=agent.js.map