This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type SwarmStepResult<TOOLS extends Record<string, CoreTool>> = StepResult<TOOLS> & { agent: Agent }; | |
| type SwarmChunk = Extract< | |
| TextStreamPart<any>, | |
| { | |
| type: "text-delta" | "reasoning" | "tool-call" | "tool-call-streaming-start" | "tool-call-delta" | "tool-result"; | |
| } | |
| > & { agent: Agent }; | |
| export function streamSwarm<CONTEXT = any>({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[allow(dead_code)] | |
| #[derive(Named)] | |
| struct RandomStrategy { | |
| random_move: RandomMove, | |
| } | |
| impl Strategy for RandomStrategy { | |
| fn play_for_favoured_move(&mut self, _favoured_move: Move) -> Move { | |
| return self.random_move.get(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension Argo.Decodable where Self.DecodedType == Self, Self: OperaDecodable { | |
| static func decode(json: AnyObject) throws -> Self { | |
| let decoded = decode(JSON.parse(json)) | |
| switch decoded { | |
| case .Success(let value): | |
| return value | |
| case .Failure(let error): | |
| throw error | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pod::Spec.new do |s| | |
| s.name = 'MCSwipeTableViewCell' | |
| s.version = '1.1.1' | |
| s.author = { 'Ali Karagoz' => '[email protected]' } | |
| s.homepage = 'https://github.com/alikaragoz/MCSwipeTableViewCell' | |
| s.summary = 'Mailbox app style UITableViewCell.' | |
| s.license = 'MIT' | |
| s.source = { :git => 'https://github.com/mtnbarreto/MCSwipeTableViewCell.git', :branch => 'preventGesture' } | |
| s.source_files = 'MCSwipeTableViewCell' | |
| s.platform = :ios |