turbo_promptable 0.0.1 copy "turbo_promptable: ^0.0.1" to clipboard
turbo_promptable: ^0.0.1 copied to clipboard

Object-Oriented Prompting framework for defining AI agent prompts, roles, workflows, and tools as type-safe Dart objects.

example/example.dart

import 'package:turbo_promptable/turbo_promptable.dart';

void main() {
  // Create a team structure using MetaDataDto
  final team = TeamDto(
    areas: [
      AreaDto(
        roles: [
          RoleDto(
            expertise: ExpertiseDto(
              field: 'Backend',
              specialization: 'API Development',
              experience: '5 years',
            ),
          ),
        ],
      ),
    ],
  );

  final xml = team.toXml();
  // ignore: avoid_print
  print(xml);
}
1
likes
70
points
11
downloads

Publisher

unverified uploader

Weekly Downloads

Object-Oriented Prompting framework for defining AI agent prompts, roles, workflows, and tools as type-safe Dart objects.

Homepage
Repository (GitHub)
View/report issues

Topics

#prompts #agents #serialization

Documentation

API reference

License

MIT (license)

Dependencies

json_annotation, turbo_response, turbo_serializable

More

Packages that depend on turbo_promptable